|
uCoz Community Archives Locked Refresh page - Automatic change picture (My home page script) |
Refresh page - Automatic change picture |
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
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 |
NICE THANKS
|
| |||
| |||