Metachecker.net
|
FontsMadeEasy.com
|
RankChecker.net
Learn Java Script Today
|
Over 5000 Free Fonts
|
Tutorials
|
Javascript Forum
|
Other Javascript Resources
|
Cheat Sheet
JavaScript Basics
Inserting Javascript
Complete Tutorial
Advance DHTML Tutorial
Script archive
Advanced Tutorials
Alert Scripts
Animation
Audio
Background Effects
Banner Ads
Browser Window
Buttons
Button Forms
Calculcators
Calendars
Clocks & Dates
Cookies
Cursor Effects
DHMTL Games
DHTML Miscellaneous
Equivalents
Forms
Games
IE4+ Scripts
IE5+ Scripts
Image Effects
Image Miscellaneous
Links & Buttons
Math Related
Messages Miscellaneous
Miscellaneous
Mouse Tricks
Navigation
Page Details
Password Protection
Pulldown Menus
Random Stuff
Scrolling
Status Bar
Text Animation
User Detail
User Info
Window Control
Mouse Over Image Map - New Window
Move your mouse over the top and bottom half of the devil to see the example.
Insert into <HEAD>
Insert into <BODY>
<img src="IMAGE FILE" width=YOUR WIDTH height=YOUR HEIGHT usemap="#MAP NAME" border=0> <MAP NAME="MAP NAME"> <AREA SHAPE="rect" COORDS="#,#,#,#" href="" onClick="return false" onMouseOver="window.open('YOUR LINK', 'newWin1', 'toolbar=yes,location=yes,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,copyhistory=yes,width=635,height=260')"> <AREA SHAPE="rect" COORDS="#,#,#,#" href="" onClick="return false" onMouseOver="window.open('YOUR LINK', 'newWin2', 'toolbar=yes,location=yes,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,copyhistory=yes,width=635,height=260')"> </MAP>
Other Options
Move your mouse over the devil to see the example. OK, first here's a little help on Image Maps. This is my example. <img src="images/devil.gif" width=62 height=61 usemap="#devil" border=0> <MAP NAME="devil"> <AREA SHAPE="rect" COORDS="0,0,62,30" href="" onClick="return false" onMouseOver="window.open('jsmain.htm', 'newWin1', 'toolbar=yes,location=yes,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,copyhistory=yes,width=635,height=260')"> <AREA SHAPE="rect" COORDS="0,0,62,30" href="" onClick="return false" onMouseOver="window.open('jscount.htm', 'newWin2', 'toolbar=yes,location=yes,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,copyhistory=yes,width=635,height=260')"> </MAP> First thing to do is to change the basic information in uppercase. Next, the coordinates. The first set, "0,0,62,30", is the upper rectangle or the head. "0,0" is the upper left hand corner of the rectangle and ",62,30" is the lower right hand corner of the rectangle. Likewise with the second set of coordinates (feet), "0,30" - upper left, "62,61" lower right. The best way to get these coordinates is by loading the image in a graphics editor. I use Paint Shop Pro. Now for the script...just put it wherever you want in your page and change the uppercase info and the coordinates(#)! <img src="IMAGE FILE" width=YOUR WIDTH height=YOUR HEIGHT usemap="#MAP NAME" border=0> <MAP NAME="MAP NAME"> <AREA SHAPE="rect" COORDS="#,#,#,#" href="" onClick="return false" onMouseOver="window.open('YOUR LINK', 'newWin1', 'toolbar=yes,location=yes,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,copyhistory=yes,width=635,height=260')"> <AREA SHAPE="rect" COORDS="#,#,#,#" href="" onClick="return false" onMouseOver="window.open('YOUR LINK', 'newWin2', 'toolbar=yes,location=yes,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,copyhistory=yes,width=635,height=260')"> </MAP>