Results 1 to 5 of 5

Thread: Marquee Memory Question

  1. #1
    Join Date
    Feb 2008
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Marquee Memory Question

    Hey guys! I'm completely brand new to HTML/Javascript or anything else coding related. Most of the solutions I've come up with are through googling questions and coming up with answers. I'm 100% positive that my code is junky and not well done, but I'm trying to find an answer to a question I've been having.

    I have an executive dashboard that I maintain for a company. At the top, I have a ticker that displays our metric movements from the previous actual to the current actual. It works great. The only problem I have is that when a user leaves the site and comes back, the ticker starts over rather than picking up where the user left off (the dashboard has drilldown capability so there is a lot of back and forth, thus resetting the ticker each time).

    Here is my code in the Marquee:

    <script language="JavaScript">
    function function1(){
    document.all.myMarquee.stop();
    }
    function function2(){
    document.all.myMarquee.start();
    }
    </script>
    <MARQUEE direction="left" id="myMarquee" width="100%" scrollamount="2.3" class="ms-imglibmenuarea" scrolldelay="30"><b><img src="http://sharepoint.companyname.com/sites/council/documents/Shared%20Documents/StockDown.gif"/>*Client Satisfaction | Last: 45.4% | Change: <FONT COLOR="ee0000">-2.2%</font>MARQUEE></strong></tr>
    <input type="button" value="Start Ticker" onClick="function2();"/>
    <input type="button" value="Stop Ticker" onClick="function1();">

    I'm sorry, I KNOW that is a mess. What you see here is just ONE item in the Marquee....I edited out all the others, but there are like 13 other items within the scrolling marquee across the top of the page. Is there anything I can put in there to make it remember where the user left off so that it doesn't start over when they come back to the page?

  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

    Unless the marquee tag can be queried and set as to its position/progress, I think you would need something like so:

    http://www.dynamicdrive.com/dynamici...ryscroller.htm

    Even if the marquee tag could be dealt with as I outline, you would also need a cookie to store and retrieve the position/progress information.

    As marquee started out as IE only, I'm fairly sure that even if these more 'esoteric' values of the marquee may be get and set, they probably would only be available in IE. Most other browsers do now support marquee, but with a much more limited set of options/capabilities than is found in IE.
    - John
    ________________________

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

  3. #3
    Join Date
    Feb 2008
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks! I'll give it a shot and post back what happens!

    Much appreciated!
    -Hum

  4. #4
    Join Date
    Feb 2008
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Perfect solution! It even scrolls smoother!

    Thanks so much, jscheuer1!!
    -Hum

  5. #5
    Join Date
    Oct 2007
    Location
    Florida, USA
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi.

    Im just experiencing the Marquee tag.
    So far, I'm not very disappointed, I mean it's nice and very simple, no javascript, no css which imply less time to load the page which is appreciated.

    However, I have some interrogations:
    1) It creates a blank part between the end and the beginning, that is not very nice for pictures .... the behavior="alternate" would fix it, BUT it doesnt work in Firefox.
    2) I tested the marquee tag and right now it sounds to work in IE 6+, and Firefox .
    I couldnt test it in any others browsers like Netscape, Opera, Safari ....

    You can take a look on this page: http://www.electriduct.com/test/vincent/help.html

    This link is probably the closest I am looking for though its vertical ...
    http://home.comcast.net/~jscheuer1/s...ical_slide.htm


    But I just wonder if all this effort worth it ??? I mean , even though with the div, css and javascript, I know that for some tricky browsers it will still not work, so why not just leave the marquee, at least its not so much work ??

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
  •