neskaya
Follow [ bookmark livejournal facebook twitter rss stumbleupon ]
Log in to download layouts, skins, and emoticons. Register?

Designs

Web Templates
LJ Layouts
phpBB3 Skins

Graphics

Avatars
Textures
Buttons
Emoticons
Pixels
Fonts

Misc & Fun

Quizzes
Tutorials
Interactive

Community

Forums
Rotation

Site

FAQ & Contact
Links

Affiliates

Komet Tails
Smile Scan
Dragonrain

Javascript Tutorial: Button Rotation Script

So you want to implement your own button rotation - or banner rotation! In the old days, people used to do it with CGI. Nowadays, a lot of people do it with PHP or with complex programs. But you can do it in a much more simple way with Javascript. If you want a button rotation on your site like the one I have, then you can follow the directions below. It's really simple!

First, save this script (right click and save as): rotation.js

Follow the directions in the script / code to make the appropriate edits inside. You can open .js files with WordPad. Then upload it to your server.

Now, put this code where you want the rotation to display:

<script type="text/javascript" src="http://YOURURL/rotation.js"></script>

And you have a button rotation. Edit the .js file with updates. It's that simple!