1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

help with marquee. text stop on mouseover-help

Discussion in 'HTML & Website Design' started by indyonline, Dec 3, 2007.

  1. #1
    Hello. I was wondering if anybody new what I need to add to this code to make the text stop scrolling on mouseover and start again on mouseout.
    Thanks.


    <div
    align="center"> <marquee bgcolor="#000080" scrollamount="2"
    direction="up" loop="true" width="225" height="300" > <center>
    <font color="#ffffff" size="+1"><strong> THIS
    IS A COOL WAY<br> TO MAKE YOUR TEXT<br> SCROLL UPWARDS<br> <br>
    IT IS EASY AND FAST LOADING </strong></font> </center> </marquee></div>
    SEMrush
     
    indyonline, Dec 3, 2007 IP
    SEMrush
  2. indyonline

    indyonline Prominent Member

    Messages:
    4,627
    Likes Received:
    249
    Best Answers:
    2
    Trophy Points:
    335
    #2
    Any body have any ideas on how I can do this?
     
    indyonline, Dec 3, 2007 IP
  3. kewlchat

    kewlchat Well-Known Member

    Messages:
    1,779
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    110
    #3
    <marquee onmouseover="this.stop();" onmouseout="this.start();">
    my text here
    </marquee>

    Or like this <marquee onmouseover="this.setAttribute('scrollamount', 0, 0);" onmouseout="this.setAttribute('scrollamount', 6, 0);">
    my text here
    </marquee>

    Or for yours I went ahead and added it and testd it and it works :)
    <div
    align="center"> <marquee bgcolor="#000080" scrollamount="2"
    direction="up" loop="true" width="225" height="300" onmouseover="this.setAttribute('scrollamount', 0, 0);" onmouseout="this.setAttribute('scrollamount', 6, 0);" > <center>
    <font color="#ffffff" size="+1"><strong> THIS
    IS A COOL WAY<br> TO MAKE YOUR TEXT<br> SCROLL UPWARDS<br> <br>
    IT IS EASY AND FAST LOADING </strong></font> </center> </marquee></div>


    should work in ie and fire fox but prob not opra.. and javascript must be enabled most peoples is..

    hope that was helpfull :p
     
    kewlchat, Dec 3, 2007 IP
  4. indyonline

    indyonline Prominent Member

    Messages:
    4,627
    Likes Received:
    249
    Best Answers:
    2
    Trophy Points:
    335
    #4
    excellent. thank you it works now.
     
    indyonline, Dec 3, 2007 IP
  5. pallyweb

    pallyweb Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    thanks,,,,,,,,,,,,nice work
     
    pallyweb, Jan 7, 2010 IP
  6. mankatha

    mankatha Greenhorn

    Messages:
    76
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #6
    This is nice code.. But i actually want to add testimonials in my website...when i mouse over that text should stop running and i access the link too..
     
    mankatha, Jan 15, 2012 IP
  7. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    94
    Best Answers:
    7
    Trophy Points:
    0
    #7
    Nice code?!! Almost ALL of that markup was deprecated in 1999! And the marquee tag has NEVER been a part of the HTML spec! But I would suspect most DP'ers think it's both new and modern.
     
    drhowarddrfine, Jan 15, 2012 IP
  8. mmerlinn

    mmerlinn Notable Member

    Messages:
    1,897
    Likes Received:
    218
    Best Answers:
    5
    Trophy Points:
    240
    #8
    If you are going to use MARQUEE, you might as well add BLINK to the code.
     
    mmerlinn, Jan 15, 2012 IP