Reply
Trying to mapping a background image. Code listed
Old 07-03-2007, 11:33 AM Trying to mapping a background image. Code listed
Novice Talker

Posts: 12
Name: Tim
How would i map this image without distroying the layout of the code. The background has an image that I have in it and trying to use the map way to link it. I dont want the whole image linked. Without the spacer the layout becomes destroyed... <use map="#2"> with correct wont work for the background image only a true image like img="yadayada" seesm to work for me. But when i change things around it throws it off again i feel like im missing something.. I have cut out the code of what the spacer is holding up maybe someone will see my mistake or what im missing .... thanks everyone.. Timmay

Code is below...


<td>
<table width="589" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="572" valign="top"> <iframe iframe id="datamain" src="../photos_1.html" width=572 height=427 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=auto name="photos_main"></iframe>
</td>
<td width="17"><img src="../photos/photo_graphic_4.jpg" width="17" height="427"></td>
</tr>
</table>
</td>
</tr>
<tr style="visibility: visible">
<td>
(!!IMAGE IM TRYING TO MAP!!)<table width="589" height="44" border="0" cellpadding="0" cellspacing="0" background="../photos/photo_graphic_3.jpg">
<tr>
<td>
<table width="100%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td><img src="images/spacer.gif" width="21" height="21"></td>
</tr>
otimmayo is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 07-03-2007, 07:41 PM Re: Trying to mapping a background image. Code listed
LadynRed's Avatar
Super Moderator

Posts: 6,353
Location: Tennessee
You have to code it AS an image map and define the hotspots on the image in order to get what you want:
http://www.w3schools.com/tags/tag_map.asp
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-05-2007, 01:26 PM Re: Trying to mapping a background image. Code listed
Novice Talker

Posts: 12
Name: Tim
I know how to map an image. Its when I try and covert from background to an image it throws everything off alignment. and no the everything is the correct size. Thats why I gave the code in my first post. It appears fine as a background but i now need to map a link to it. But again when i do it the img way everything becomes offline.
otimmayo is offline
Reply With Quote
View Public Profile
 
Old 07-05-2007, 02:26 PM Re: Trying to mapping a background image. Code listed
LadynRed's Avatar
Super Moderator

Posts: 6,353
Location: Tennessee
You code didn't include an imagemap code.

You're putting the IMAGE into the same table cell as the nested table, so you're going to get a cell that's as wide as the image PLUS the width of the table you've nested inside it.

Here's a suggestion, dump the nasty iframe and tables and learn to do it without tables . You will be happier in the end.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-06-2007, 03:28 PM Re: Trying to mapping a background image. Code listed
Learning Newbie's Avatar
Moderator

Posts: 4,880
Name: John Alexander
You can only make an image map with an image. A background image isn't an image.
__________________
4 ways to improve the lives of the "bottom billion"

"HEY YOU KIDS GET OFF MY LAWN!" -John McCain
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 07-06-2007, 04:24 PM Re: Trying to mapping a background image. Code listed
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
otimmayo, if you want some tableless code as LNR is talking about that actually works, feel free to borrow it from a client's site I just built:

www.sustainabilitycoaching.ca

You won't need the Javascript code (it opens a PDF brochure in a new window), and you'll have to change the coordinates obviously, but the rest of it should help.
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Reply     « Reply to Trying to mapping a background image. Code listed
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14081 seconds with 13 queries