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

switch menu item


Poster: Maz
Dated: Wednesday January 14 2004 - 20:45:54 GMT

Help, I changed userIsMember, now i don't want an else item, what do I do now?

if( userIsMember){ aI("text=MEMBER AREA;showmenu=memberarea;status=member area;"); }
else{('');}

Thanks,
maz


Poster: John
Dated: Wednesday January 14 2004 - 22:13:02 GMT

I'll take one of my famous (or infamous) guesses... drop the else{('');}. If the result is false it should just drop through to the next item in your code (I think).

How you is, hon?


Poster: kevin3442
Dated: Wednesday January 14 2004 - 22:46:44 GMT

jgillett wrote:
I'll take one of my famous (or infamous) guesses...

Excellent guess John! It'll drop through to the next line of code whether the conditional is true or false; if it's true, it'll execute the aI() function then continue to the next line, if it's false, it'll skip the aI() function and continue to the next line.

Maz, you can also drop the curly braces if you like:
Code:
if(userIsMember) aI("text=MEMBER AREA;showmenu=memberarea;status=member area;");

should do it.

Cheers,

Kevin


Poster: John
Dated: Wednesday January 14 2004 - 23:23:28 GMT

Jeepers - that's one-in-a-row :!:


Poster: Maz
Dated: Thursday January 15 2004 - 1:20:40 GMT

Good one John! :) Thank you Kevin :)

The sites going really well, I've been in US & UK time zones.

Might be time for a break, my birthday Saturday :D

Thanks for asking,
maz


Poster: John
Dated: Thursday January 15 2004 - 14:35:39 GMT

maz wrote:
The sites going really well, I've been in US & UK time zones.

Hey, good for you!
maz wrote:
Might be time for a break, my birthday Saturday

Congrats :!: I'll be polite and won't ask the obvious question... But if I can get rid of the sleepies you might find me on your doorstep. :D

As for a break, I agree. From all your posts here lately I know you've really been working hard on the site. Step back - have fun. You deserve it.

I'm coming up on 13 straight days (and nights) of working, and I'm pooped. We have Monday off, so that gives me a 4-day weekend. Me and the wolf are staying home and we're just going to waste the whole weekend - I can't wait :!:


Poster: Maz
Dated: Thursday January 15 2004 - 18:31:17 GMT

I greet a dog in dog talk by saying "Hi woofie", your dog would probably think I was talking about him :lol:

Let's just say this is my last chance at being a lass before the big O kicks in.

Have fun :D
maz


Poster: John
Dated: Thursday January 15 2004 - 23:18:15 GMT

maz wrote:
Let's just say this is my last chance at being a lass before the big O kicks in.

Got it (I think).

Have a great day :!: :D