Rotator without link

OscarG

Seasoned Veteran
Joined
Jul 13, 2010
Messages
3,043
Reaction score
0
FP$
709
Is there a code that has a rotator without link? Like the text changes per refresh?
 
What type of rotator?

A javascript rotator that each refresh loads a new image.

Or like text that refreshes..
 
Possibly javascript but it must rotate text WITHOUT a link per page load.
 
Oh I see, okay let me toy around with some code for a bit and come up with something.


This should do it. Just change the Your Text Here to what you want and you can add more lines if you want but the last line can not have a comma at the end.
Code:
<script type="text/javascript" >
var myquotes = new Array(
	'Your Text Here',
	'Your Text Here',
	'Your Text Here',
        'Your Text Here' // Leave the last quote without a comma at the end
	);

function rotatequote()
{
	thequote = myquotes.shift(); //Pull the top one
	myquotes.push(thequote); //And add it back to the end
	
	document.getElementById('quotetext').innerHTML = thequote;
	// This rotates the quote every 10 seconds.
	// Replace 10000 with (the number of seconds you want) * 1000
	t=setTimeout("rotatequote()",10000);
}

// Start the first rotation.
rotatequote();
</script>
 
Back
Top Bottom