All the scripts that I found on dynamic drive and elsewhere about hiding the link display on status bar have a problem. Onmouseover they work fine, the link is hidden. HOWEVER, if you click on the link without releasing it, the link displays. This is happening only on first time you do it. After that it will not display.
I tried event.CLICK but it will always display the link. Here is the code that I am using (pretty useless since you can display the link in status bar). Can someone please help?
<script>
function hidestatus(){
window.status=''
return true
}
if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=hidestatus
document.onmouseout=hidestatus
</script>
Why would you mess with the status bar in the first place?
__________________ Vladdy | KL "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"
Purpose of the script is to hide links, right? I am using in an intranet where right click and view source have been disabled. Most of thee links are activeX, and I don't want for people to see it.
__________________ Vladdy | KL "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"
You do not understand client side scripting and client side security.
Whatever you are trying to protect with those silly scripts does not hide anything from a knowledgeable person and does nothing but annoy the rest of the users, because it takes away the browsing tools they are used to.
You need to define what your security risks are and take care of them on the server side. It does not really matter if it is intranet or internet. The only thing that you control on the intranet is the browser choice. The fact that you are attempting to implement those features says that you can not trust the users inside and security needs to be taken seriously.
__________________ Vladdy | KL "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"
Originally posted by Garadon document.onmouseover=hidestatus
document.onmouseout=hidestatus
document.onmousedown=hidestatus
document.onmouseup=hidestatus
document.onmouseclick=hidestatus
it works for me too, except that when you click the first time and hold it, the full link is displayed. After that there are no problems. It is just the first time.
<!-- Begin
function url() {
hidden = open('http://www.yourwebsite.com/','NewWindow','top=0,left=0,width=1020,height=710,status=no,resizable=yes,scrollbars=yes');
}
// any of the above window parameters can be changed,
// but if you want the link to remain hidden do not
// change 'status=no'
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
Quote:
Originally posted by Lionel Purpose of the script is to hide links, right? I am using in an intranet where right click and view source have been disabled. Most of thee links are activeX, and I don't want for people to see it.
thanks egquen2000, but that would not work for me as the window is the opener from a VB program.
And to all the clowns out there, this is being used in a totally controlled cybercafe environment where the windows shell has been taken over by another shell. Registry has been edited and even 'save as' has been disabled. plus many more protection. And that html page is not accessible to the outside world.
So before trying to be smart and unhelpful, you might want to open up your horizons a bit and stop behaving as morons, calling what you do not know 'silly scripts' or placing stupid links.
Originally posted by Lionel thanks egquen2000, but that would not work for me as the window is the opener from a VB program.
And to all the clowns out there, this is being used in a totally controlled cybercafe environment where the windows shell has been taken over by another shell. Registry has been edited and even 'save as' has been disabled. plus many more protection. And that html page is not accessible to the outside world.
So before trying to be smart and unhelpful, you might want to open up your horizons a bit and stop behaving as morons, calling what you do not know 'silly scripts' or placing stupid links.
If you managed to control all you say you have.
Why haven't you completely disabled the status bar thru the registry?
.....Willy
BTW: Insulting the very people you are asking to help you