image tag for arrow.gif doesn't show

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
carolwess
Beginner
Beginner
Posts: 4
Joined: Thu Oct 30, 2003 7:18 pm

image tag for arrow.gif doesn't show

Post by carolwess »

Newbie here....

In the menu_data.js, the arrow is listed as subimage="arrow.gif". I would like to keep the arrow with all my other images in the image folder. On my web page I simply list it as src="images/imagename.jpg" and it works. How do I do this same thing in the js source file? Can't seem to figure it out.....Thanks in advance.

C
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

The syntax there would be exactly the same as in your HTML...

Code: Select all

subimage="images/arrow.gif"
However, a better way to do this, especially if you site is more than one level deep, is to use server-relative addressing. That way you don't have to resort to ../images or ../../images junk all over the place. Assuming /images/ is at the root level of your site, it would then be...

Code: Select all

subimage="/images/arrow.gif"
Now it stays the same regardless of what level the menu is on.

The same thing holds true for the JS menu calls.
John
carolwess
Beginner
Beginner
Posts: 4
Joined: Thu Oct 30, 2003 7:18 pm

Post by carolwess »

Hey John....I'm afraid it was a bit sillier than that. I had rebuilt an arrow image in photoshop and changed the file extension. Consider my hand slapped. <laughingAtSelf> :roll:
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Jeez - ya just can't take some folks anywhere... :lol:
John
Post Reply