25 March 2009

Make Random Photo In Blog

Setelah hari kemarin saya posting tentang Kumpulan Foto Bugil Adiknya Miyabi HOT dan Download Video Porno Bokep Bugil 3gp Gratis Laris, maka hari ini saya akan update Make Random Photo In Blog.

So the picture is not only that, but it can only show a picture the other in accordance with the desire us. more details see the image porfile I always change-ubah.Untuk the questions the same post here oom yes. more code can be seen below.

Go edit the HTML page and then check the box Expand Widget Templates. then search the code below:
<b:if cond='data:photo.url != ""'>
<a expr:href='data:userUrl'> <img class = 'profile-img' expr: alt = 'data: photo.alt' expr: height = 'data: photo.height' expr: src = 'data: photo.url 'expr: width =' data: photo.width'/></ a>

Replace the code that is printed on thick with the javascript code below:

<script>
var pic, alt;
pic = new Array;
pic [0] = "PHOTO-URL";
pic [1] = "PHOTO-URL";

alt = new Array;
alt [0] = "My Photo";
alt [1] = "My Photo";

var now = new Date ();
var seed = now.getTime ()% 0xffffffff;

function rand (n) (
seed = (0 × 015a4e35 * seed)% 0 × 7fffffff;
return (seed>> 16)% n;
)

var num = rand (2);

document.write ( "<a href='http://www.blogger.com/profile/XXX'> <img alt =" "alt + [num] +" 'border ='0' class = 'profile-img 'height ='80' src = ' "+ pic [num] +"' width ='60'/></ a> ");
</ script>

Notice the code marked with bold. PHOTO-Replace URL with the URL of an image you own, and then on the code var num = rand (2);, 2 digits represent the number of arrays that we created. In the example above means that there is an array of 2, 0 and 1. And replace the XXX with the code number 20 (for New Blogger), which is on the blogger profile each time.

Add a little if you want to modify the 6 different code image can be seen below

<script>
var pic, alt;
pic = new Array;
pic [0] = "PHOTO-URL";
pic [1] = "PHOTO-URL";
pic [2] = "PHOTO-URL";
pic [3] = "PHOTO-URL";
pic [4] = "PHOTO-URL";
pic [5] = "PHOTO-URL";

alt = new Array;
alt [0] = "My Photo";
alt [1] = "My Photo";
alt [2] = "My Photo";
alt [3] = "My Photo";
alt [4] = "My Photo";
alt [5] = "My Photo";

var now = new Date ();
var seed = now.getTime ()% 0xffffffff;

function rand (n) (
seed = (0 × 015a4e35 * seed)% 0 × 7fffffff;
return (seed>> 16)% n;
)

var num = rand (6);

document.write ( "<a href='http://www.blogger.com/profile/XXX'> <img alt =" "alt + [num] +" 'border ='0' class = 'profile-img 'height ='80' src = ' "+ pic [num] +"' width ='60'/></ a> ");
</ script>

No comments:

Post a Comment