Hummell
02-26-2008, 02:53 PM
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?
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?