?
Solved

Pause <marquee>

Posted on 2006-11-23
2
Medium Priority
?
2,102 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:Martin Cotterill
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 2000 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:Martin Cotterill
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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

649 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