Results 1 to 7 of 7

Thread: Text defil not working under FF

  1. #1
    Join Date
    Apr 2005
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Text defil not working under FF

    Hello,
    I use an old script working fine under IE but not under Firefox.
    The purpose is to scroll text in the status bar.
    Any one to help me ??
    Many thanks

    <html>
    <head>

    <meta http-equiv="Content-Type"
    content="text/html; charset=iso-8859-1">
    <title>TEST</title>


    </head>
    <body onLoad="defil()" style="width:100%;overflow-x:hidden;overflow-y:scroll">

    <script>
    <!--
    var Texte="Hello on my site. "
    var long1=Texte.length
    var pos=-long1

    function defil() {
    var affiche=""
    pos=pos+1
    if (pos==long1) {
    pos=-pos
    }
    if (pos<0) {
    for (var i=1;i<=-pos;i++) {
    affiche = affiche + " "
    }
    affiche = affiche + Texte.substring(0,long1-i+1)
    }
    else {
    affiche = affiche + Texte.substring(pos,long1+pos)
    }
    window.status = affiche
    setTimeout("defil()",120)
    }

    // -->
    </script>

    </body>
    </html>

  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

    Works on FF1.0.2 for win here. Are you a Mac user?

  3. #3
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Is this a Dynamic Drive script? If so, please include a link to it on DD. Otherwise, I'll need to move it to the JavaScript category.

  4. #4
    Join Date
    Apr 2005
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    To jscheuer1:
    It does not work on my FF 1.0.2 under Windows for me.... Is there any FF parameter to set ?? Thanks for your answer.

    To ddadmin:
    No i did not find this script in DD. Excuse me for the mistake. Move it. Thanks

  5. #5
    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

    Tools - Options - Enable JavaScript (check box)

    For good measure, check the advanced settings for JavaScript. All except:

    "Hide the status bar"

    should be enabled.

    If that doesn't fix it, I don't know what to say except I copied your code exactly as you posted it, as a fresh page and it worked.

  6. #6
    Join Date
    Apr 2005
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok jscheuer1,
    Using your tips, i found that if i check "Change text on status bar", it works what ever "Hide the status bar" is checked or unchecked !!!
    Many thanks for the pointer.
    Regards
    Yves

  7. #7
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by yvesm
    Using your tips, i found that if i check "Change text on status bar", it works
    Perhaps this is a good point to interject then and say, "Don't fiddle with the status bar."

    The status bar displays information that some people find crutial. It shouldn't be treated as your toy. Modifying it is also unreliable, as you have discovered. Decent user agents will prevent you from making changes, and users don't tend to stare at their status bar so you're not likely to communicate anything, anyway.

    Mike

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
  •