/    Sign up×
Community /Pin to ProfileBookmark

Status Bar messages

HI i want to display messages on the status bar when page opens but don’t know how to. can anyone help? i found many different codes but none work.

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@Mr_JOct 12.2005 — Take a look at the few examples here.


www.huntingground.freeserve.co.uk/webplus/statbar/intro.htm
Copy linkTweet thisAlerts:
@CAT_web_designOct 12.2005 — [B]This one rotates messages:[/B]

[code=html]<SCRIPT LANGUAGE='JavaScript'>
<!--

// ***********************************************
// AUTHOR: WWW.CGISCRIPT.NET, LLC
// URL: http://www.cgiscript.net
// Use the script, just leave this message intact.
// Download your FREE CGI/Perl Scripts today!
// ( http://www.cgiscript.net/scripts.htm )
// ***********************************************

var default1 = "WWW.CGISCRIPT.NET, LLC - Webmaster Resourse Network"; // only shown once at page load
var text1 = "FREE JavaScripts at CGISCRIPT.NET";
var text2 = "FREE CGI Scripts at CGISCRIPT.NET";
var text3 = "FREE Site Templates at CGISCRIPT.NET";
var changeRate = 2000; // 1000 = 1 second
var messageNumber = 0;

function changeStatus() {
if (messageNumber == 0) {
window.status=default1;
}
else if (messageNumber == 1) {
window.status=text1;
}
else if (messageNumber == 2) {
window.status=text2;
}
else if (messageNumber == 3) {
window.status=text3;
messageNumber = 0;
}

messageNumber++;
setTimeout("changeStatus();",changeRate);

}

changeStatus(); // leave here to run right away

// -->
</SCRIPT>[/code]


[B]And This one has static text:[/B]

[code=html]<SCRIPT language="JavaScript">

<!--
// ***********************************************
// AUTHOR: WWW.CGISCRIPT.NET, LLC
// URL: http://www.cgiscript.net
// Use the script, just leave this message intact.
// Download your FREE CGI/Perl Scripts today!
// ( http://www.cgiscript.net/scripts.htm )
// ***********************************************
status_text();function status_text()
{window.status="Type your text here";setTimeout("status_text()",1);}

-->
</SCRIPT>[/code]



Add either of these to the <HEAD> section of your document...
Copy linkTweet thisAlerts:
@KorOct 12.2005 — Try:
[code=php]
<script type="text/JavaScript">
onload = function(){
window.status='Hello World!';
return true;
}
</script>
[/code]


But it will works for sure only on IE . The latest version of Moz anf FF will not allow that. In fact Status bar is an useful tool to see the link's URL, not to send messages, so you better try to use another place to put your messages. As a user I would like to have my status bar free from messages and false addresses.

Anyway... who will look below the page to get a message?
Copy linkTweet thisAlerts:
@herodote92Oct 12.2005 — Ehm... me. I'm happy when I get something there different from "Ready."
Copy linkTweet thisAlerts:
@KorOct 12.2005 — he he ?
×

Success!

Help @Esmaeiluk 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.3,
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,
)...