/    Sign up×
Community /Pin to ProfileBookmark

Javascript Functions

Hi, I’m not very good with JavaScript, but I can kind of get by… but I’m definitely a noob… anyway…

this.addClassName(link, hasSubMenu ? this.subHoverClass : this.hoverClass);

in the line above – what does the [B][COLOR=”Red”]?[/COLOR][/B] and [B][COLOR=”Red”]:[/COLOR][/B] do? if you were to read that in plain english, how would you say it?

does that question even make sense?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@HoboScriptAug 08.2008 — Hi, I'm not very good with JavaScript, but I can kind of get by... but I'm definitely a noob... anyway...

this.addClassName(link, hasSubMenu ? this.subHoverClass : this.hoverClass);

in the line above - what does the [B][COLOR="Red"]?[/COLOR][/B] and [B][COLOR="Red"]:[/COLOR][/B] do? if you were to read that in plain english, how would you say it?

does that question even make sense?[/QUOTE]


It's a conditional tertiary.

In plain english... If this has a sub menu then use this sub hover class, else use this hover class.
Copy linkTweet thisAlerts:
@dtm32236authorAug 08.2008 — oh - that's right... i remember that (it's been a while)

you just helped me so much more than you know...

because of that simple response - in about 30 seconds, I just solved a problem that I've been working on since noon (it's now almost 4:30 here)

thanks a lot!
Copy linkTweet thisAlerts:
@HoboScriptAug 08.2008 — Oh stop. You're making me blush.
×

Success!

Help @dtm32236 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...