spacer

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

home / experts / dhtml / column2
Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?

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.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

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

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business

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

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