Question about pageimage parameter

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Marc_J
Advanced
Advanced
Posts: 12
Joined: Mon Apr 04, 2005 12:29 pm

Question about pageimage parameter

Post by Marc_J »

I set up a some style properties to help show which page users are currently on: -

pagecolor="#980C33";
pageimage='info_over.gif';


This is changing the text in the menu items to the correct colour, but only some items have an image (called 'info_up.gif') and I need this image replaced with 'info_over.gif' on these items only.

What I have does indeed replace the image when it needs to - but it also adds the 'info_over.gif' image to text only items when the URL matches.

Is there something else I should be doing? Perhaps explaining it better lol...I hope you understand what the problem is :)
Last edited by Marc_J on Tue Apr 05, 2005 7:56 pm, edited 1 time in total.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

I think you can specify the pageimage in the actual item instead of the global style. Try putting pagecolor="yourColor"; in the global style, the style you have created at the top of the menu_data.js file, and then in the items you want to have an image when it matches, put pageimage=whateverimage; into the aI string. Note there are no quotes when you put it in the aI string, unlike when you put it in the style. Since I'd have to upload something to the web to test that, I haven't tested it. Let me know if it works, OK?

Ruth
Marc_J
Advanced
Advanced
Posts: 12
Joined: Mon Apr 04, 2005 12:29 pm

Post by Marc_J »

Thanks, this works perfectly - and was so obvious I don't know why I didn't try it myself...
Post Reply