spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / dhtml / column11
Developer News
Google Chrome Playing Catch-Up on Extensions
Open Solutions Alliance Gets New Leadership
Red Hat Spacewalk Expands Linux Management
Logo

The DHTML Lab Jigsaw Puzzle, Part IV: Cross-Browser
the miscellaneous support functions


The last functions in our main script are all either unchanged or have had if...else statements added with already discussed browser-specific code inserted. But since we are going through the complete script, they are reproduced here for reference and comparison. The one exception is allDone().

Tidying Up

Since we are tracking auto-solves, the very first thing allDone() does, before performing the clean-up statements, is check to see if an auto-solve is in progress. If one is, it is cancelled by clearing the timer (flashTimer) that calls visToggle() and enables looping back to solve(). Then isSolved is set to false to reflect the change, and allDone() proceeds.

If the puzzle is completely solved, the mousedown capture is released for Navigator, to be re-enabled, as we have seen, only when the mouse passes over the image or the puzzle is once again broken.

The Toggle Buttons

Before we reproduce the complete code, let's take a quick look at the drag script.


Produced by Peter Belesis and

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

webref The latest from WebReference.com Browse >
Popular JavaScript Framework Libraries: An Overview - Part 3 · Accessing Your MySQL Database from the Web with PHP · Working with the DOM Stylesheets Collection
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
MS Access and MySQL · Cisco AutoQoS: VoIP QoS for Mere Mortals · While VoIP Adoption Explodes in Enterprise, Carrier Spending Lags

All Rights Reserved. Legal Notices.
Created: Dec. 17, 1997
Revised: Jan. 18, 1998

URL: http://www.webreference.com/dhtml/column11/puzzCBmisc.html