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:42
Indicator for the currently clicked menu item (aka Checked)
Poster: screenmates
Dated: Saturday February 3 2007 - 1:20:51 GMT
How do I go about indicating the currently clicked menu item similar to Milonic's menu on their website:
DHTML Menu -> DHTML Menu Samples
On clicking any sample, the page loads and the submenu item now shows with two hyphens to its left indicating the currently selected item. I may use an checked image or make the menu item bold or convert it to a header item (unclickable) to indicate its selected status. I could not find any documentation on indicating the currently clicked item. I use PHP based menu and can use cookies (if that's the way it should be done) if someone could throw some idea how to go about it.
Please help...
Poster: Ruth
Dated: Saturday February 3 2007 - 2:13:09 GMT
Hi,
Well, the you are here thing is done with the menu parameter page'whatever', i.e. pageimage, pagebgcolor, pagebgimage and so on.
The reason for what looks like the two dots is that in the vertStyle you have coding for a page image
Code:
pageimage="/images/db_red.gif";
The style for the samples submenu, the one with all the samples listed is created using the copyOf method. This copies whatever style is listed using that style and including whatever is listed in the copyOf. So, in this case it copies the vertStyle,
Code:
sampleStyle=new copyOf(vertStyle)
sampleStyle.fontsize="60%"
sampleStyle.padding=1
sampleStyle.imageheight=1
sampleStyle.imagewidth=20
sampleStyle.fontsize="60%"
sampleStyle.padding=1
sampleStyle.imageheight=1
sampleStyle.imagewidth=20
then puts in the imageheight as 1 and width 20, this makes the original image which is 7 high by 13 wide look like those two dots. If you wanted you could just make yourself an image of two dots and make your submenu style have pageimage='whatever that image';
You might want to take a look in this forum at the Styling the menu posts. These are extremely basic and a quick read, but they might give you some ideas
http://www.milonic.com/forum/viewforum.php?f=14
Ruth