Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us















Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


To Imagemap or Not to Imagemap

To Imagemap or Not to Imagemap

Sometimes it's actually easier and more practical not to use an imagemap, but instead break the image up and put it in a Table with a border, cellpadding, and cellspacing set to 0.

Example #1

Regular Client-Side Imagemap:

Example #2

Image within a table:

htmlcode.gif (606 bytes)

<table border="0" cellpadding="0" cellspacing="0">
  
<TR>
<TD ROWSPAN=1 COLSPAN=1 WIDTH=98 HEIGHT=40>
	<A HREF="/Quadzilla/">
	<IMG SRC	= "../images/imap/Image2_1x1.jpg" 
		WIDTH	= 98 
		HEIGHT	= 40 
		BORDER	= 0 
		alt	= "Quadzilla Home"></A></TD>
<TD ROWSPAN=1 COLSPAN=1 WIDTH=88 HEIGHT=40>
	<A HREF="/Quadzilla/Tables/">
	<IMG SRC	= "../images/imap/Image2_1x2.jpg" 
		WIDTH	= 88 
		HEIGHT	= 40 
		BORDER	= 0 
		alt	= "Table Tutorial"></A></TD>
<TD ROWSPAN=1 COLSPAN=1 WIDTH=84 HEIGHT=40>
	<A HREF="/Quadzilla/StyleSheets/">
	<IMG SRC	= "../images/imap/Image2_1x3.jpg" 
		WIDTH	= 84 
		HEIGHT	= 40 
		BORDER	= 0 
		alt	= "StyleSheets"></A></TD>
<TD ROWSPAN=1 COLSPAN=1 WIDTH=88 HEIGHT=40>
	<A HREF="/Quadzilla/Tag_Ref/">
	<IMG SRC	= "../images/imap/Image2_1x4.jpg" 
		WIDTH	= 88 
		HEIGHT	= 40 
		BORDER	= 0 
		alt	= "Tag Reference"></A></TD>
<TD ROWSPAN=1 COLSPAN=1 WIDTH=102 HEIGHT=40>
	<A HREF="/Quadzilla/Cookies/">
	<IMG SRC	= "../images/imap/Image2_1x5.jpg" 
		WIDTH	= 102 
		HEIGHT	= 40 
		BORDER	= 0 
		alt	= "Cookies"></A></TD>
</TR>
</TABLE>

This Table has the images within a separated Table for easy viewing:

The source is the same except for:

htmlcode.gif (606 bytes)
<table border="1" cellpadding="2">

You may also want to try it without a table:

htmlcode.gif (606 bytes)

<IMG SRC="../images/imap/Image2.jpg" 
	WIDTH	= 460 
	HEIGHT	= 40 
	BORDER	= 0 
	USEMAP	= "#Image2">

<MAP NAME="Image2">
<AREA SHAPE=rect 
	COORDS="0,0,98,40" 
	HREF="/Quadzilla/" 
	alt="Quadzilla Home">
<AREA SHAPE=rect 
	COORDS="96,0,188,40" 
	HREF="/Quadzilla/Tables/" 
	alt="Table Tutorial">
<AREA SHAPE=rect 
	COORDS="186,0,274,40" 
	HREF="/Quadzilla/StyleSheets/" 
	alt="Style Sheets">
<AREA SHAPE=rect 
	COORDS="272,0,360,40" 
	HREF="/Quadzilla/Tag_Ref/" 
	alt="Tag Reference">
<AREA SHAPE=rect 
	COORDS="358,0,460,40" 
	HREF="/Quadzilla/Cookies/" 
	alt="Cookie Tutorial">
</MAP>

hr1.gif (1127 bytes)



Up to => Home / Quadzilla / Imagemaps




Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers