• Page 1 of 1
  • 1
Refresh page - Automatic change picture
Mkiller
Posts: 41
Reputation: 0

Message # 1 | 10:24 AM
In Control Panal » Customize design » Editing templates » Top part of the website
Paste this:
Code
<script>
  function goRand() {
var num = 9;
myImages = new Array();
myImages[0] = "http://tibiame-rulez.ucoz.com/headers/headermaster/headers-1.png";
myImages[1] = "http://tibiame-rulez.ucoz.com/headers/headermaster/headers-2.png";
myImages[2] = "http://tibiame-rulez.ucoz.com/headers/headermaster/headers-3.png";
myImages[3] = "http://tibiame-rulez.ucoz.com/headers/headermaster/headers-4.png";
myImages[4] = "http://tibiame-rulez.ucoz.com/headers/headermaster/headers-5.png";
myImages[5] = "http://tibiame-rulez.ucoz.com/headers/headermaster/headers-6.png";
myImages[6] = "http://tibiame-rulez.ucoz.com/headers/headermaster/headers-7.png";
myImages[7] = "http://tibiame-rulez.ucoz.com/headers/headermaster/headers-8.png";
myImages[8] = "http://tibiame-rulez.ucoz.com/headers/headermaster/headers-9.png";
myImages[9] = "http://tibiame-rulez.ucoz.com/headers/headermaster/headers-10.png";

rand = Math.floor(Math.random() * num);
current_image = myImages[rand];
}
</script>

And in page which you want show the images in
Paste this:

Code
<script>
goRand();
document.write("<img src=\"" + current_image + "\">")
</script>

var num = 9; is pics number, make it more or less as pics you have in list
myImages[0] this is pic link and number: +1 every image link you add (Copy it at next link and [1], [2], .... Etc

megalosnikos
Posts: 2
Reputation: 0

Message # 2 | 4:54 PM
NICE THANKS
Mkiller
Posts: 41
Reputation: 0

Message # 3 | 5:51 PM
You'r welcome biggrin
Hope you like it and worked
  • Page 1 of 1
  • 1
Search: