Click to See Complete Forum and Search --> : Disable IE Status Bar


gdh
10-08-2003, 02:08 PM
need to disable the Status Bar in Internet Explorer or have it always display a static line of text. I'm new to javascript but found a suggestion listed below and put it in the <head> section:

<script LANFUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT>
function hidestatus() {
window.status='SOME TEXT';
return true;
}
document.captureEvents(Event.MOUSEOUT | Event.MOUSEOVER)

document.onmouseout=hidestatus;
document.onmouseover=hidestatus;
</script>

The captureEvents command gives an error. The status bar does change to 'SOME TEXT' when I move the cursor away from a link but shows the link value when the cursor is over the link. The menus are built with javascript and when the cursor is over one the status bar says "javascript:top.location='http://www.etc.htm' Some of our links include a username and password and that's why we need to hide them. Any help would be appreciated.

Thanks

pyro
10-08-2003, 02:25 PM
Originally posted by gdh
Some of our links include a username and password and that's why we need to hide them.Users could just view the source or disable JavaScript to get them, then...

gdh
10-08-2003, 02:33 PM
Maybe so but i'm not the boss so I stiil have to figure out how to do it. Any ideas?

pyro
10-08-2003, 02:40 PM
You could try throwing a function like this in the <head>:

<script type="text/javascript">
function setLinks() {
for (i in document.links) {
document.links[i].onmouseover = function() { window.status = ""; return true; }
}
}
onload = setLinks;
</script>

Charles
10-08-2003, 02:41 PM
<script type="text/javascript">
<!--
onload = function () {for (var i=0; i<document.links.length; i++) {document.links[i].onmouseover = function () {window.status=''; return true;}}}
// -->
</script>

Hey, it's a good thing to have people wrongly thinking that their sites are secure.

gdh
10-08-2003, 02:53 PM
Thanks, but that didn't change anything. When the page loads, the status bar says "Building Menu", then "Menu Ready for Use". After that, any link I put the mouse over displays the link. If I move it away from the link, my desired text displays. Is there maybe another event I'm not aware of to tell me when the mouse is over a link?

Charles
10-08-2003, 03:00 PM
Make sure that there are no other "onload" handlers being used.

gdh
10-08-2003, 03:29 PM
Thanks for your help, but with the last example I get an error on page. I made sure it was type in correctly. I did a view source and only see the very short index.htm file that starts the site. The link information that has the passwords in it is loaded from other files does not display. So if I can get this to work it might accomplish what we need.