Results 1 to 4 of 4

Thread: Memory Scroller info

  1. #1
    Join Date
    Jul 2005
    Location
    Montreal, Quebec, Canada
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Memory Scroller info

    Script: Memory Scroller
    http://www.dynamicdrive.com/dynamici...ryscroller.htm

    Hi all !
    I've put the memory scroller script in a file .js and it's fine but i want to be able to change the text of the scroller in the html file not fixing it in the .js 'cause i want to reuse the script.

    [HTML]
    var memorycontent='<nobr><span .....'
    <script type="text/javascript" language="JavaScript1.2" src="js/scroller1.js">
    </script>



    Thanks !

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    The script sets a cookie called "lastscrollerpos" containing the position. You can edit this.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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

    Use this in the body then:
    Code:
    <script type="text/javascript">
    var memorycontent='<nobr><span .....'
    </script>
    <script type="text/javascript" src="js/scroller1.js"></script>
    Don't forget to remove:

    var memorycontent='<nobr><span .....'

    from the script.
    - John
    ________________________

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

  4. #4
    Join Date
    Jul 2005
    Location
    Montreal, Quebec, Canada
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks John, it's working great !
    and i'll put some php in it to do a english and french scroller.

    bye !

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
  •