SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Evangelist
    Join Date
    Dec 2005
    Posts
    527
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    mqrquee start and stop

    want make a marquee that only on mouse over works

    some things like this :

    Code:
    <marquee  onload="this.stop()" onmouseout="this.stop()" onmouseover="this.start()">string</marquee>

    but it does not have onload event I dont want (can not) use body events (I can edit only one part of page that contain some dive and this marquee)


    how can I make it stop on start of page without using onload of body

  2. #2
    SitePoint Zealot
    Join Date
    Oct 2004
    Location
    Sydney, Australia
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't think you can stop a marquee? Because its not a valid/standard html tag the events you're relying on may not work in all browsers. You would probably be better off using a pure javascript implementation to get the functionality you require.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •