Solved

JavaScript Slideshow Break Delay

Posted on 2011-02-17
2
241 Views
Last Modified: 2012-05-11
Hello Experts,

I have a limitted javascript knowledge, but applying what i know and using my VBScript expirience, i've built a javascript slideshow with DIVs at https://www.mylocaladvantage.com/home.asp where if your mouse is not hovered within the recxtengal, the deal changes every 5 seconds.

My question is, when you click on a orange rectange at the bottom in order to skip to a specific deal, it takes a while.  How can I make it jump immidiately?

My assumption is that whn the orange rectangle is clicked, that event is queued, but does not execute until the timer stops and function ends.  If i'm correct, then how can i stop all process?  

Thanks.
0
Comment
Question by:APD_Toronto
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
imantas earned 500 total points
ID: 34922329
It looks like that you need to replace your links like this:
<a class="opacityit" href="javascript:secs=0;StopTheClock();InitializeTimer(1);">
  <img id="NO1" src="images/numbered_boxes.jpg" width="65" height="28" style.filter="alpha(opacity=100)" style="">
</a>

Open in new window


to the ones that would look like:
<a class="opacityit" href="javascript:(function() { secs = 0; slideNo = 1; StartTheTimer(); })();">
  <img id="NO1" src="images/numbered_boxes.jpg" width="65" height="28" style.filter="alpha(opacity=100)" style="">
</a>

Open in new window


Please not the "javascript:..." part changed.
Do this for all 10 links that should change the slide and maybe that'll help. It worked in Opera, not sure about the other browsers.
0
 

Author Closing Comment

by:APD_Toronto
ID: 34957402
sorry for tthe delay.  Thank you
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question