/    Sign up×
Community /Pin to ProfileBookmark

satus bar message

i want the staus bar to say s n o w b o a r d i n g all the time, evan if you go over a lnk, the code below works fine for normal links, but it don’t work on Hot spots, how can i chnage it to work? or can u give me another code?

[CODE]
<script language=”javascript”>
window.defaultStatus=”s n o w b o a r d i n g”;
</script>
<script type=”text/javascript”>
function setLinks() {
for (i=0; i<document.links.length; i++) {
document.links[i].onmouseover = function () {
window.status=””;
return true;
}
}
}
window.onload = setLinks;
</script>
[/CODE]

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@JonaOct 25.2003 — [i]Originally posted by rabbitboy [/i]

[B][B]ut it doesn't work on Hot spots, how can I change it to work?[/B][/QUOTE]




[font=arial][color=maroon]Hot spots?[/color][/font]



[b][J]ona[/b]
Copy linkTweet thisAlerts:
@AdamGundryOct 26.2003 — Assuming that by hotspots you mean <area> tags, note that you must include the href attribute within the area tag (according to the JS 1.3 docs). Otherwise, that code should work, because <area> tags appear in the links array.

Be aware that overwriting the browser's default behaviour may not be a good idea because it annoys users and disorients them. Personally, I have customised my browser so that scripts cannot change my status bar. ?

Adam
Copy linkTweet thisAlerts:
@JonaOct 27.2003 — [i]Originally posted by AdamGundry [/i]

[B]I have customised my browser so that scripts cannot change my status bar. ?[/B][/QUOTE]


[font=arial][color=maroon]Sweet! Mozilla, right? How'd ya do it? ?[/color][/font]

[b][J]ona[/b]
Copy linkTweet thisAlerts:
@AdamGundryOct 27.2003 — Ok, maybe "customised" is a little to strong a word. On the Advanced > Scripts & Plugins section of the Preferences dialog, all you need to do is uncheck "change the status bar text".

Adam
Copy linkTweet thisAlerts:
@JonaOct 27.2003 — [font=arial][color=maroon]Thanks, I need to explore the options of Moz...[/color][/font]

[b][J]ona[/b]
×

Success!

Help @rabbitboy 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.5,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...