[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2105
  • Last Modified:

Pause <marquee>

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
Martin Cotterill
Asked:
Martin Cotterill
1 Solution
 
TimCotteeCommented:
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
 
Martin CotterillDabblerAuthor Commented:
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now