Link Rotator

T his is a really cool effect to add to your page. Especially if you lack for space to show links to your pages. This script will keep rotating the links you reconfigure into the code. You can add or subtract any number of links to suit your site. You can also reconfigure how long each link stays visible until the next link is shown.

W e have tested the code in IE5.5, IE6, Netscape4.08 and Netscape7.0. This script worked well in all platforms tested with no variations observed.

D epending on your knowledge of HTML and java scripts, it is a two part copy and paste code that goes into the <HEAD> and <BODY> sections of your document.

W e will first show you the default sections of the code to be reconfigured and then the reconfigured sections for you to see how and where the modifications are made to work on your site. All the reconfigurations are done within the <HEAD> section of your document. If you are using an editor such as "Angelfire" that has a Basic Editor and an Advanced Editor, you need to be in the Advanced Editor for the simple reason that in the Basic Editor the text box is in the <BODY> section and the script will not work properly.

Default Section Of code

<head>
<title>Link Rotator Script</title>

<!-- BEGIN LINK ROTATOR SCRIPT -->
<!-- This script is courtesy of Bravenet Web Services. www.bravenet.com -->
<!-- Bravenet.com is the webs top rated site for FREE Webmaster Tools! -->

<script language="JavaScript">

<!-- This Part goes between the HEAD tags -->
function makeArray(q){
for(i=1 ; i < q ; i++){this[i]=0}}
w=1;

<<!-- This is where you set the number of links. -->
howmanysites=4;
Sites = new makeArray(howmanysites);
Sites[1] = "http://www.bravenet.com~Bravenet.com|Click for cool and FREE web services!";
Sites[2] = "http://www.notareallink.com~Your Link Here|Your link description here!";
Sites[3] = "http://www.notareallink.com~Another Link Here!|This is one COOL script!";
Sites[4] = "http://www.notareallink.com~The Last Link|But you can have as many as you want!";

function showSites() {
if (w > howmanysites) { w=1; };
var string=Sites[w] + "";
var split1=string.indexOf("~");
var split2=string.indexOf("|");
var url=string.substring(0,split1);
var name=string.substring(split1 + 1,split2);
var word=string.substring(split2 + 1,string.length);
document.form.url.value=url;
document.form.name.value=name;
document.form.word.value=word;
w+=1;
<!-- This is where you set the time between each link. The value now is 4000 for 4 seconds. -->
window.setTimeout('showSites()',4000);
}
function visitSite() {
window.location=document.form.url.value;
}
<!-- End HEAD TAG CODE -->

</script>
</head>

Reconfigured Section Of code

<head>
<title>Link Rotator Script</title>

<!-- BEGIN LINK ROTATOR SCRIPT -->
<!-- This script is courtesy of Bravenet Web Services. www.bravenet.com -->
<!-- Bravenet.com is the webs top rated site for FREE Webmaster Tools! -->

<script language="JavaScript">

<!-- This Part goes between the HEAD tags -->
function makeArray(q){
for(i=1 ; i < q ; i++){this[i]=0}}
w=1;

<<!-- This is where you set the number of links. -->
howmanysites=5;
Sites = new makeArray(howmanysites);
Sites[1] = "https://www.angelfire.com/ny5/consigliere/alphabetsearch.html~Click To Visit This Page|Alphabet Index";

Sites[2] = "https://www.angelfire.com/ny5/consigliere/navigation.html~Click To Visit This Page|Navigation Page";

Sites[3] = "https://www.angelfire.com/ny5/consigliere/utilities.html~Click To Visit This Page|Web Master Utilities";

Sites[4] = "https://www.angelfire.com/ny5/consigliere/awards.html~Click To Visit This Page|Apply For Our Award";

Sites[5] = "https://www.angelfire.com/ny5/consigliere/mailinglist.html~Click To Visit This Page|Sign Up For Our Mailing List";

function showSites() {
if (w > howmanysites) { w=1; };
var string=Sites[w] + "";
var split1=string.indexOf("~");
var split2=string.indexOf("|");
var url=string.substring(0,split1);
var name=string.substring(split1 + 1,split2);
var word=string.substring(split2 + 1,string.length);
document.form.url.value=url;
document.form.name.value=name;
document.form.word.value=word;
w+=1;
<!-- This is where you set the time between each link. The value now is 4000 for 4 seconds. -->
window.setTimeout('showSites()',5000);
}
function visitSite() {
window.location=document.form.url.value;
}
<!-- End HEAD TAG CODE -->

</script>
</head>

T here are just a few explanations we need to make on the different colors within our examples.

~    |   These two symbols needs to stay where they are within the script. DO NOT remove them. They are configured within the script. So as you can see you can add or subtract as many links as you want in this rotator and where we put our url's for our links and sayings you just change them to yours.

I f you would like to add this effect to your pages, just grab the below link and you are there. If you have any trouble with this feel free to contact us.
Get Code Here ]

[ Yahoo! ] options

Search Our Site By Individual letter

A ]  [ B ]  [ C ]  [ D ]  [ E ]  [ F ]  [ G ]  [ H ]  [ I ]  [ J-K ]  [ L ] 
M ]  [ N-O ]  [ P-Q ]  [ R ]  [ S ]  [ T ]  [ U-V ]  [ W ]  [ X-Y-Z ] 

Little Tips Directory

Page 1  ] [ Page 2 ] [ Page 3 ] [ Page 4 ] [ Page 5  ] [ Page 6  ] [ Page 7  ]

Index Page 1 ] [ Index Page 2 ] [ Index Page 3 ] [ Index Page 4 ] [ Index Page 5 ]
Index Page 6 ] [ Index Page 7 ] [ Index Page 8 ] [ Index Page 9 ] [ Index Page 10 ]
Index Page 11 ] [ Index Page 12 ] [ Index Page 13 ]

News Letter Archives ] [ Navigation Page ] [ Archives Of Published Material ]
Link To Us ] [ Alphabet Index ] [ Feedback ] [ On Line Support ] [ FAQ ]
Webmaster Utilities ] [ Casino ] [ Banner Exchange ] [  Advanced Site Search ]

  

If you are part of the ever growing number of webmasters who enjoy sharing your knowledge with others on web design, join The Consigliere Ltd. web ring to broaden your scope of exposure.
Join Today

This Site Was Built And Is Maintained Exclusively by
The Webmaster @ Consigliere Ltd.

Copyright © Consigliere Ltd., All Rights Reserved. 2001-