switch menu item

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

switch menu item

Post by Maz »

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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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?
John
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

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: Select all

if(userIsMember) aI("text=MEMBER AREA;showmenu=memberarea;status=member area;");
should do it.

Cheers,

Kevin
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Jeepers - that's one-in-a-row :!:
John
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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 :!:
John
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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
John
Post Reply