Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Only part of image links

Status
Not open for further replies.

MACnut

Programmer
Jul 20, 2001
9
US
I have a jpeg image in Dreamweaver that I put an absolute link on to link to another site. At first it worked fine but now only the bottom portion of the image links. I even took the image out, replaced it, linked it again and the same thing happend, very strange. Any ideas about how I can fix this?
Thanks!
 
Make sure the image is in the correct folder, try puttin the image in the same folder as the HTMl files and/or in the same GIF folder... I have not failed; I merely found 100,000 different ways of not succeding...
 
Yes, it is defiantly in the same folder, thank you for responding! I even tried putting a hotspot over the image hoping that that would make the entire image active but again only the bottom portion responded. I checked the HTML and the path was correct. Any other ideas?
Thanks!!
 
What is the URL of the site?? Or, the code you used to add the image to the HTML page?? I have not failed; I merely found 100,000 different ways of not succeding...
 
Well, I am fairly new at all of this and I just let Dreamweaver do the coding for me. I select the image and put in its link in the property box which has worked every other time for me perfectly. When I view the HTML this is what it says:

<a href=&quot; name=&quot;TheBridgeBoarder&quot; src=&quot;The Bridge Boarder.jpg&quot; width=&quot;238&quot; height=&quot;183&quot; border=&quot;0&quot; alt=&quot;Enter our site here&quot;></a>

I know very little about HTML unfortunatly but it seems right to me, what do you think?
Thanks, MACnut
 
This may not mean much, but why do you have spaces in the image file name?? src=&quot;The Bridge Boarder.jpg, is your image saved as 'The Bridge Boarder.jpg' or 'The_Bridge_Boarder.jpg'...look how the image name is...image names shouldn't have any spaces... I have not failed; I merely found 100,000 different ways of not succeding...
 
Good observation but it didn't change anything when I changed the spacing. Oh well, it is porbably one of those things that if you leave it alone for awhile it just starts working again:)
 
Hello, this may also not work, but it's another observation:
you have it like this now:
<a href=&quot; name=&quot;TheBridgeBoarder&quot; src=&quot;The Bridge Boarder.jpg&quot; width=&quot;238&quot; height=&quot;183&quot; border=&quot;0&quot; alt=&quot;Enter our site here&quot;></a>


try it like this:
<a href=&quot; src=&quot;TheBridgeBoarder.jpg&quot; name=&quot;TheBridgeBoarder&quot; width=&quot;238&quot; height=&quot;183&quot; border=&quot;0&quot; alt=&quot;Enter our site here&quot;></a>


If it helps, also try changing the name of the img from 'TheBridgeBoarder.jpg' to 'Boarder.jpg...ok?? I have not failed; I merely found 100,000 different ways of not succeding...
 
Have you figured it out yet?
Im haveing I think the same problem, and Im realy pulling my hair out.
The images and rollover codes all look ok when viewed from Dreamweaver but if you open the file from the C: or on a link the images go away
as well my old web sites from 2 weeks ago open fine, my luck that I left this job to 2 days before the client wants it
HELP IF YOU CAN
 
Well, I tried changing the scr and the name but that took the image out all together. I created a new page with the same image and link and it worked perfectly. On the page where it is a problem it is inside of a table, I wonder if that is causing problems. I am going to try to redo the page all together and see if that works. Thanks for your help!
 
Okay, it defiantly has something to do with the table. I just don't know how to arrange things where I want them without the tables and believe me I have tried. Any suggestions on why the link won't work inside of a table?
 
Hello MACnut!

Definitely table has nothing to break link to any image on your page!

As I see your problems are in the Source and Name attributes of image.
1) NAME attribute doesn't have to have &quot;.&quot; sign in it.
2) Name of picture doesn't have to have spaces in it (think about it when you save images! not later), so SRC attribute doesn't have to have spaces as well.

That's it.

P.S. Please believe, that if something doesn't work - it doesn't work because of our mistakes - try to find the mistake and fix it, but don't wait for nothing!

Good Luck!
 
Well, I changed the name to just Brideg which in itself removed the &quot;.&quot; It still doesn't work and the same image links perfectly when it isn't in a table. The strange things is that the link works perfectly but only the bottom third of the image acts as a link. Hummmm, I will keep trying, thanks for your input!
 
Can you let us know the URL of the page having the problem?

Cheers

John
 
Hi there,

Your image is 183 pixels high, the table cell is 231 pixels high but the table is only set up to 20 pixels. Try resetting the size of the table to the accumlated size of all the row (231+27 = 258) and see if that works.

Regards

John
 
I don't know why you have made it so hard.

Export the image from fireworks as a jpg.
open dreamweaver. make a table. Put the image in the table
Click on the image
Click windows then properties
fill out the link box.

Doesn't need to be a hotspot or complex table from fireworks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top