Welcome to Dream.In.Code
Getting Help is Easy!

Join 107,663 Programmers for FREE! Ask your question and get quick answers from experts. There are 993 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Marquee, hor. scroller.

 
Reply to this topicStart new topic

Marquee, hor. scroller., Alter static marquee into scroller

Tenderbird
post 30 Jun, 2008 - 04:33 AM
Post #1


New D.I.C Head

*
Joined: 30 Jun, 2008
Posts: 1

Dear reader,

The code below is working but the text is fixed/static.
I want the printing now to be like a banner/marquee. From right to left with some controls as: behavior, scrollspeed, scrollamount, etc.

CODE
<script language="Javascript">

day  =  new Date()
hr   =  day.getSeconds()

if (hr == (" 0 "))
tag= ("Here we get the text for second ' 0' ")

// Here we put the texts for the seconds in between= '1' to '58' .

if (hr == (" 59 "))
tag= ("Here we get the text for second '59' ")

document.write ("<b>" + tag + "</b>")

</script>


Hopefully someone can help.
Tenderbird.WsF

User is offlineProfile CardPM

Go to the top of the page


Mike007
post 30 Jun, 2008 - 07:35 PM
Post #2


D.I.C Head

Group Icon
Joined: 30 Aug, 2007
Posts: 200



Dream Kudos: 75
My Contributions


You can simply use the marquee tag in HTML http://www.htmlcodetutorial.com/_MARQUEE.html. Or you can be use a div inside a div and set the overflow property of the parent div to hidden -- content that is too big to fit in the div will appear hidden -- and move the child div using javascript. This worked well for me when I needed vertical scroll. But marquee will work just fine in your case.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 8/29/08 10:18PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month