PDA

View Full Version : I've got a small problem with creating a cool marquee script.


MvD
03-26-2003, 07:23 PM
Hi people! i've just joined this place in hope of finding a solution to one of my script related problems.

I want to create a Quote of the Day box on my forum! As my forum is a free one I am only allowed to insert code, no files. So could anyone make me a basic 600x150 ceneterd box in which i cold leave messages (quotes) that would change evry 24 hours.

Thanx people! MvD

joeframbach
03-27-2003, 01:25 PM
of course, you would have to update it every 24 hours:rolleyes: ...

<center>
<marquee height="600px" width="150px" loop="infinite" onMouseover="this.stop()" onMouseout="this.start"></marquee>
</center>

Tails
03-27-2003, 08:19 PM
There may be a better way. If you create an external script file with an array of quotes and use a different array number per date.

<script src="quote.js">
document.write('<marquee>'+Q[new Date.getDate()]+'</marquee>'
</script>


quote.js contains:

Q=new Array("quote1","quote2")