November 27th, 2005, 08:22 PM
var mnu="<table><tr><td><img src='webPageFiles/btn2.gif'></td></tr></table>";
The problem is that when the HTML code is changed, instead of the image that I want to appear (i.e. webPageFiles/btn2.gif) I get the box with the red x in it, therefore it would appear that my browser cannot locate the image. I have found that if I place the HTML file in the same directory as the image, so that I can remove the 'webPageFiles\' folder path from the image src attribute then the web-page works as I would like.
THANX in advance,
November 27th, 2005, 08:27 PM
make it img src='http://www.webPageFiles/btn2.gif or what ever the full address is, sometimes such things mess the whole work up.
\"The only truly secure system is one that is powered off, cast in a block of concrete and sealed in a lead-lined room with armed guards - and even then I have my doubts\".....Spaf
Everytime I learn a new thing, I discover how ignorant I am.- ... Black Cluster
November 27th, 2005, 09:14 PM
Thanx for your reply Black Cluster, but I have already tried using the full file path instead of the relative file path and that also didn't work.
November 28th, 2005, 01:41 PM
first point why are you using tables for none tabular data? grrrr!
anyways properly consturcted img tag looks like so...
as the img tag has no end tag you need to close it, and for full standards compliance make sure you always use your alt tags! But please remember alt tags are suppoused to be an alternative to the image (ie when it wont load). If you want to add in a tooltip use the title attribute.
<img src="./webPageFiles/btn2.gif" alt="Text about the Image" />
If that img tag doesn't work please reply with...
your dir layout as like so,
so can be sure have gotten the location of each file in relation to each other and the document root correct
as well as the location which the browser is looking for the image (rightclick on the red X and choose properties - what is the URL the browser is reporting?)
November 28th, 2005, 02:26 PM
thanx for that valhallen, it worked out great.
So I have no idea what is causing the problem, because if their was a problem with the desination then I would expect the browser to give me a 'page cannot be displayed' error.
Thanx in advance,
November 28th, 2005, 03:44 PM