Results 1 to 3 of 3

Thread: adding onMouseover pause to IFrame ticker

  1. #1
    Join Date
    Feb 2007
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default adding onMouseover pause to IFrame ticker

    1) Script Title:
    <IFRAME> ticker
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...ame-ticker.htm
    3) Describe problem:
    How to add onMouseover pause to this script

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    On exfile.htm - add the red parts:

    Code:
    function rotate_content(){
    if(window.pause){
    setTimeout("rotate_content()",300);
    return;
    }
    get_total()
    contract_all()
    expand_one(curindex)
    curindex=(curindex<totalcontent-1)? curindex+1: 0
    setTimeout("rotate_content()",delay)
    }
    
    window.onload=rotate_content
    
    </script>
    
    <BODY bgColor=#FFFFE1 onmouseover="window.pause=1;" onmouseout="window.pause=0;">
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Feb 2007
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    It is working great, Thanks

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
  •