Anyone know how to create Button Rotation?

Everything related to the visual and coding aspects of websites.
Post Reply
LadyDB
Posts: 147
Joined: Fri Mar 21, 2014 2:27 am
Contact:

Anyone know how to create Button Rotation?

Post by LadyDB »

This website has this feature where you fill out the form and it automatically adds your button to a rotation. Then you put the code on your website and it shows your button and others, with every refresh. IT's totally random.

Does anyone know how I can achieve this?

Thank you :)

http://www.thetcgs.org/exchange/
~ Lady DinoBug
neo
Posts: 200
Joined: Tue Jun 04, 2013 12:30 am
Location: USA
Contact:

Re: Anyone know how to create Button Rotation?

Post by neo »

I wish I knew how to help you :o(
I've always been under the impression that it's some kind of script.

Hope someone more knowledgeable replies!
VICTORY WITH EVERYTHING WE HAVE
Eimii
Time Traveler
Posts: 125
Joined: Mon May 12, 2014 10:57 pm
Location: North Dakota
Contact:

Re: Anyone know how to create Button Rotation?

Post by Eimii »

ive always been curious too. it does look like a script and i remember when most people back in the day would use those webring websites. lol.

at the bottom i do see a "powered by easy banner" and when i click it it takes me to phpwebscripts.com.

perhaps this is it? http://www.phpwebscripts.com/free-scrip ... anner.html
Mikari
Posts: 3159
Joined: Thu Jun 21, 2012 6:30 pm
Location: Coruscant
Contact:

Re: Anyone know how to create Button Rotation?

Post by Mikari »

I use java script for my rotation but the new sites need to be added manually, it's still pretty easy though.
LadyDB
Posts: 147
Joined: Fri Mar 21, 2014 2:27 am
Contact:

Re: Anyone know how to create Button Rotation?

Post by LadyDB »

Thanks everyone for replying. :)

Mikari, with your rotation...would I be able to give other people the code so they can put it on their site too? Or is it designed just to work on the main webite...I don't know much about this stuff, lol.
~ Lady DinoBug
Mikari
Posts: 3159
Joined: Thu Jun 21, 2012 6:30 pm
Location: Coruscant
Contact:

Re: Anyone know how to create Button Rotation?

Post by Mikari »

The code can be used on any site. It's just that one bold line and it looks just like the example above it. Snow also uses this same coding on her rotations with some modifications for the different picture styles. The JS file on the code has a document.write function with the html. It's a shortcut to make things easier for people really, a summary, since the actual code is still an iframe. The part that makes it rotate is the JS function:

var linksite = 84;
(this is the total # of sites)

function ranlink() { linksite = Math.floor((linksite)*Math.random()) + 1;
(this picks a site at random)

if (linksite==1) { document.getElementById("linksite").src = "li00.gif";
document.getElementById("findsite").href = "http://mikari.piratesboard.net/links/star.html"; }

(this switches the button when the page loads, there's a line of code like this for each site on the rotation.)

I can send you the files if you want, so you can have a closer look, and if any part of them works for what you have in mind, you can modify it and use it.
Post Reply