Solved

Pause <marquee>

Posted on 2006-11-23
2
2,095 Views
Last Modified: 2012-06-27
Hi Experts all

I'm not sure if here or the Javascript section is the place to ask this, but, here goes.

I've been hunting around the web for a cross-browser marquee script that I can put in my external javascript script file without any success. However, I have since found out that  Firefox (and so I presume new Netscape's) support the <marquee> tag, so this will surfice.

I need to be able to pause the <marquee> tag when the user passes their mouse over the scrolling text and then continues the scroll when the mouse is moved away. Is this possible?

As I said, I have seen and tried various scripts from around the web without success as they don't work in the way I want - they either need to be placed inside the body tag of all of the pages (and this isn't practicible at this time) or run from an external script which is then called from each has to be placed on each page (again, not practicible). I need to use it from within an existing 'document.write' tag hence the use of <marquee>.

Any thoughts or scripts that will solve my dilemma?

Many thanks in advance for the help.

Warmest regards

Martin
0
Comment
Question by:Pantyboy
2 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 500 total points
ID: 18003099
Hi Pantyboy,

Something like this:

<marquee onmouseover="this.stop();" onmouseout="this.start();" direction=left scrollamount=5 width=100px>This is some text that should be scrolling across this section</marquee>


Tim Cottee
0
 
LVL 1

Author Comment

by:Pantyboy
ID: 18003113
Hi Tim

Many thanks for the super fast reply!

I knew I could rely on my friends at EE to come up with the answer.

Absolutely brilliant!!!

Once again, many thanks! You're a star!

Martin
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now