Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Mar 2004
    Location
    Australia
    Posts
    217
    Thanks
    0
    Thanked 1 Time in 1 Post

    Keeping position of marquee

    I have recently developed a website (www.killuke.com.au) and would like to save the position of the maquee at the bottom every time the page refreshes. Is there anyway this can be done?

    thanks

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    It theory is possible. The position X of the marquee can be captured as a global variable, let's say var marqX. The value of this variable at a certain time can be passed as paramater through the page location using onload or onrefresh event handler

    window.onrefresh=function(){location.href=location.href+'?'+marqX}

    Something, like , your case, if refresh when marquee "moved" with 200px
    http://www.killuke.com.au/index.html?200px

    Build a script which verify if there is a parameter in location and if so, pass that paramater (200 this example) as a start point for your marqee.
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #3
    Regular Coder
    Join Date
    Mar 2004
    Location
    Australia
    Posts
    217
    Thanks
    0
    Thanked 1 Time in 1 Post
    ok ty, will try something along those lines and get back to you


  •  

    Posting Permissions

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