Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

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
Trades: 0
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
 
 
Register now for full access!
Old 07-03-2007, 07:41 PM Re: Trying to mapping a background image. Code listed
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
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 !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

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
Trades: 0
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
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
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 !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

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
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
You can only make an image map with an image. A background image isn't an image.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
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,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
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.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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.24884 seconds with 12 queries