spacer

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

home / experts / dhtml / column2
Developer News
Mandrake Linux Founder Back, Virtually
Amazon: We're a Technology Company
Sun Expands MySQL With Closed Source
Logo

Low Bandwidth Rollovers:
creating a click effect for IE with a third image


If you are using Explorer 4, click on the image map below.

This pinch effect is, of course, created by clipping a third overlayed image whenever the mousedown and mouseup events fire over an AREA.

First, prepare a third image with the pinch effect:

Add the CSS element:

    #elMenuDown {
        position: absolute;
        visibility: hidden;
        top: 0;
        left: 0
    }

Add a new string variable for the third image you've created:

Add the function:

Insert your new image as a CSS element, nested in elMenu and after elMenuOver, dynamically with JavaScript:

And finally, modify the MAP's 7 links to include the two events:

Rollover with 1 (one) Image

You read that correctly. Just 1, but it's a cheat, in a way. If you're still with us, read on!

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 >
Working with the DOM Stylesheets Collection · Administering RBAC in PHP 5 CMS Framework · xref: Automatic Cross Referencing Script
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Combine BottomCount() with Other MDX Functions to Add Sophistication · Creating a Daemon with Python · The Coming Voice-over-WiMAX Revolution

All Rights Reserved. Legal Notices.
Created: 08/06/97
Revised: 10/16/97

URL: http://www.webreference.com/dhtml/column2/IEdown.html