View Single Post
  #4 (permalink)  
Old 12-07-2007, 06:46 PM
TeraTask's Avatar
TeraTask TeraTask is offline
PT Admin
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 3
Join Date: Jun 2007
Location: Reno, NV
Posts: 442
iTrader: (0)
TeraTask is a splendid one to beholdTeraTask is a splendid one to beholdTeraTask is a splendid one to beholdTeraTask is a splendid one to beholdTeraTask is a splendid one to beholdTeraTask is a splendid one to behold
I have moved this thread to the HTML forum and given it an appropriate title.

Now, about your question. You cannot apply an image map to a background image. If you need to have your body's background image clickable in only a certain area (the whole area would me an onClick for the BODY tag), then I'd suggest one of these options:

1) Place an <a> tag over the clickable part. For the body you could either use &nbsp; or a blank image.

2) Don't use the body background as a clickable element. Instead, take the part you want clickable and put it in an <a> tag and position it where you want.

3) If you want to get really advanced, you could check the onClick's event handler for where on the page a click occurred and then direct the user to the proper page if they have clicked within the desired zone. NOTE: I said this is advanced, so don't expect to be able to do it if you're not fully competent in javascript and fairly good at figuring out if you're within a closed object. NOTE: This has a disadvantage; namely, as javascript is used for navigation, the resulting page will not be indexed as a result. You could overcome this by placing a link somewhere else on your site to the target page.

__________________
Jeremy Miller
Content Farmer - Optimized Automated Blog Posting

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
The Following User Says Thank You to TeraTask For This Useful Post:
raptor5099 (12-09-2007)