PDA

View Full Version : Rotating Text



Richard
May 8th, 2003, 01:43 AM
Does anyone have a JS that rotates text on a page ? Like rotating images but different lines of text instead.

chrismiceli
May 8th, 2003, 03:50 AM
You mean by rotating text by like changing the text of something after a timeout or something? that isn't that hard to do. But can you verify my intent?

cheesebagpipe
May 8th, 2003, 06:09 AM
IE-only, and stupid:

<html>
<head>
<title>untitled</title>
<script>
spin.n=0;
function spin() {
spin.n = spin.n==3?0:++spin.n;
document.getElementById('rotate').style.filter='progid:DXImageTransform.Microsoft.BasicImage(rotatio n='+spin.n+')';
}
onload=function(){
setInterval('spin()',400);
}
</script>
</head>
<body>
<div id="rotate" style="position:absolute;left:100px;top:200px;font:200 48px 'comic sans ms';color:crimson;">
&#100;ick ! <img src="http://www.empereur.com/politics/nixon.gif" />
</div>
</body>
</html>

http://www.faqts.com/knowledge_base/view.phtml/aid/11119

junkmail
May 8th, 2003, 08:11 AM
http://www.javascriptkit.com/script/script2/spinmenu.shtml
Is that what you mean....?
Its kinda COOL....

You can edit and remove the links and call the function depending on the speed you want in a loop