After the change above, the code worked. I went back to reading
about the
JavaScript standard, I thought that JavaScript was read like an
external CSS
file was read, where you would have to use the (../) part to link to
the
image if it was in a different folder one level above the current
folder.
(as the first line of code above is.) Is that not how JavaScript
works? When
it comes to linked images?
HI Brett,
Your directory structure is good. I usually use:
/ Root directory
-- /images
--/css
--/scripts
And you are correct that Javascript scripts should be linked as an
external file.
As for linking for images, I use relative paths (i.e. ../ ) while on
my local machine and change to absolute paths when uploading to the
web server
(i.e. /images/some_image.jpg ). The reason why is because even if you
move your HTML pages around, the path will always point to the image.
HTH,
Elle
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
*******************************************************************