Solved

JavaScript Slideshow Break Delay

Posted on 2011-02-17
2
239 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Text too large in Chrome 17 59
Jquery 7 32
HTML or/and CSS codes to construct numbered paragraphs. 5 20
Ajax on ASP 2 36
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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 code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

756 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