Main Content

Updates
To Do List
You
Health and Beauty
Reads
Jenni
Quizzes
Tutorials
The Domain
Dollmakers
Link Star-Girl.org
Question?
Plug Your Site
Index/Blog

Extra

Change The Skin
Jenni Fanlisting
Star-Girl.org Fanlisting
Webdesign Question?
Report An Error
MT Blog Archives
Nov-Apr 04 Archives
Feb-Nov 03 Archives

Sites and Projects

Shining Top Sites
Creme De La Femme
Starshine Boards
Starstruck Zine

Starshine.la Login

Username

Password



Linkage




Etc.

refreshes today
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

Back | Forward

Advertised

Your Site Here?






All content and design is © Jennifer Brown 2005, unless otherwise stated. Please click *here* for more information.