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: Thursday February 8 2018 - 06:02:13

If statement


Poster: Maz
Dated: Saturday February 21 2004 - 18:24:03 GMT

I'm not very good at php and js, instead of going through php (like login), can I have an if statement to show menu item if a div style is present in the content as a simple workaround?

If I can do that what would it look like?

Thanks
maz


Poster: Maz
Dated: Saturday February 21 2004 - 18:57:50 GMT

I just realized these pages need pagematch if I want them highlighted in the menu.

Can I do an, if pagematch include with(milonic=new menuname("rate")){
?

Now I don't understand pagematch, because it doesn't match an item on the menu. The menu says type=1 but the selection takes you to id=*

url=/type/type=1;pagematch=includes /type/id=*;

then it would go something like, if pagematch includes show with(milonic

Does this make any sense?

Maybe Kevin knows what I'm talking about?

Thanks,
maz


Poster: kevin3442
Dated: Monday February 23 2004 - 17:27:07 GMT

maz wrote:...Maybe Kevin knows what I'm talking about?...

I'm afraid I don't follow... :? Sorry. We'll get there though.

Kevin


Poster: Maz
Dated: Monday February 23 2004 - 19:13:11 GMT

Thanks Kevin,

I decided not to go there and take an easy way out.

maz