Warning: main(/home/.lurky/jenni/star-girl.org/skins/cookiecheck.php) [function.main]: failed to open stream: No such file or directory in /home/jenni/star-girl.org/pages/tutorials/program/imagerotation.php on line 1

Warning: main(/home/.lurky/jenni/star-girl.org/skins/cookiecheck.php) [function.main]: failed to open stream: No such file or directory in /home/jenni/star-girl.org/pages/tutorials/program/imagerotation.php on line 1

Warning: main() [function.include]: Failed opening '/home/.lurky/jenni/star-girl.org/skins/cookiecheck.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/jenni/star-girl.org/pages/tutorials/program/imagerotation.php on line 1

Warning: main() [function.include]: Failed opening '' for inclusion (include_path='.:/usr/local/lib/php') in /home/jenni/star-girl.org/pages/tutorials/program/imagerotation.php on line 2
Image Rotation


This is a useful code to use if you want to randomly rotate images, if you've created a button/banner exchange site or something, or you want a 'Random Link' thing on your site.

1. Copy and paste the following:



2. It looks confusing but it's simple really! Where it says var how_many_ads = 2, change 2 to how many images you have in your rotation.
3. Next, if you scroll down a bit you'll see this piece of code is repeated twice (but called 1 and 2):

ad +=1; if (ad==1) { url="URL GOES HERE"; alt="ALT TEXT"; banner="IMAGE URL HERE"; width="NUMBER"; height="NUMBER";

4. Fill out the information, replacing the words in capitals with your own. Do this for both, then copy and paste this bit of code straight after for however many images you have, amking sure to change the ad +=1; if (ad==1) { to 2, 3, 4, 5 etc.
5. Therefore, your finished code should look something like this.
6. Save and you're done :D
Warning: main() [function.include]: Failed opening '' for inclusion (include_path='.:/usr/local/lib/php') in /home/jenni/star-girl.org/pages/tutorials/program/imagerotation.php on line 53