Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:48

Question about pageimage parameter


Poster: Marc_J
Dated: Tuesday April 5 2005 - 17:40:47 BST

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 :)


Poster: Ruth
Dated: Tuesday April 5 2005 - 19:48:28 BST

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


Poster: Marc_J
Dated: Tuesday April 5 2005 - 19:58:30 BST

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