spacer

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

home / experts / dhtml / column10
Developer News
Google to Shake Up Browsers With Own Launch
Mozilla's Ubquity Mashup: For The Masses?
iPhone Users Just Want to Have Fun
Logo

The DHTML Lab Jigsaw Puzzle, Part III: NN4
creating a low-bandwidth customizable puzzle in Navigator 4


This tutorial can be appreciated by users of any browser, any version. The in-line puzzle will work only in Netscape Navigator 4 or Internet Explorer 4, WIN95, Release.
The first Release version of Internet Explorer 4, for the Macintosh, does not support the CSS "clip" property, on which much of the puzzle is based.

The code discussed in this column is specific to Navigator 4. The code actually used in the puzzle is the cross-browser version, which will be discussed next column.

This time, our example uses art works by Picasso, another brilliant artist whose masterpieces lend themselves to demonstrating our technique.

All Picasso images (c) Museo Picasso Virtual, Texas A&M University.
Dr. Enrique Mallen, Director.
http://www.tamu.edu/mocl/picasso/
All rights reserved. Used by permission.

Prerequisites

In our previous two columns, "The DHTML Lab Jigsaw Puzzle, Part I", and "The DHTML Lab Jigsaw Puzzle, Part II", we discussed the coding concepts behind building the puzzle. At the same time, an Explorer 4 version was developed.

Knowledge of the concepts will be assumed for our present column and the emphasis will be on implementing them in Navigator 4.

The puzzle with the new images is reproduced below. Again, all the code used can be found on the final three pages of the column, and you may refer to it as the tutorial progresses.


Screenshot of Puzzle for non-DHTML browsers
The puzzle can be dragged by grabbing the image. This feature can be turned off with the labeled toggle button. Break the puzzle into as many pieces as you want. Break it again. Move the pieces into position to solve it. Stuck? Use the hint button. Fed up? Let the puzzle solve itself with the solve button. Load a new puzzle image and play with that one for a while. The images have not been pre-loaded, so you will have to wait for a download when you switch images. At any stage, an optional grid can be turned on and off to assist in piece placement. If the puzzle has a low piece count, the grid may slow the puzzle down on IE4. In NN4, after a puzzle drag or a new image load, the form buttons may not display properly. Scroll the puzzle off the screen and back on to fix, or in WIN95, select View-Refresh.

In This Column

We will discuss the Navigator code necessary for:

First, therefore, we must define the CSS elements that make up the puzzle.


Produced by Peter Belesis and



JupiterOnlineMedia

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

Solutions
Whitepapers and eBooks
Intel PDF: Virtualization Delivers Data Center Efficiency
Intel eBook: Managing the Evolving Data Center
Microsoft Article: BitLocker Brings Encryption to Windows Server 2008
Symantec eBook: The Guide to E-Mail Archiving and Management
Microsoft Article: RODCs Transform Branch Office Security
Go Parallel Article: James Reinders on the Intel Parallel Studio Beta Program
Avaya Article: Advancing the State of the Art in Customer Service
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
Avaya Article: Avaya AE Services Provide Rapid Telephony Integration with Facebook
Go Parallel Article: Getting Started with TBB on Windows
HP eBook: Storage Networking , Part 1
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Intel Seminar: Efficiencies in Hardware/Software Virtualization
HP Webcast: Disaster Recovery Planning
Go Parallel Video: Performance and Threading Tools for Game Developers
HP Video: StorageWorks EVA4400 and Oracle
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
IBM TCO eKIT: Your IT Budget is Under Attack, Get in Control
IBM Energy Efficiency eKIT: Learn How to Reduce Costs
30-Day Trial: SPAMfighter Exchange Module
Red Gate Download: SQL Toolbelt and free High-Performance SQL Code eBook
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
Microsoft Article: Silverlight Streaming--Free Video Hosting for All
Featured Algorithm: Intel Threading Building Blocks - parallel_reduce
HP Demo: StorageWorks EVA4400
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES
webref The latest from WebReference.com Browse >
The Partial Function Application in JavaScript · Creating Dynamic RSS Feeds with Ajax · Performance Optimizations for High Speed JavaScript
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Cablevision Deploys More Hotspots for Commuters · Dell Joins the Netbook Movement with its Inspiron Mini 9 · It's Official: Dell Enters the Netbook Fray

All Rights Reserved. Legal Notices.
Created: Nov. 27, 1997
Revised: Jan. 18, 1998

URL: http://www.webreference.com/dhtml/column10/