Prevent your statusbar from displaying your real urls Prevent your statusbar from displaying your real urls
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Prevent your statusbar from displaying your real urls

Started by xplicit, July 16, 2006, 01:13:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xplicit

Hi all!

For some reasons it can be handy to just hide the urls in the statusbar when your hovering over links and images.

I needed such code and found this little nifty script which works great.

All credits go to javascriptkit.com an example of what it does can be found at: http://www.javascriptkit.com/script/script2/hidestatus2.shtml

I found it so usefull that I decided to post it here

<script>

//Hide status bar msg II script- by javascriptkit.com
//Visit JavaScript Kit (http://javascriptkit.com) for script
//Credit must stay intact for use

function hidestatus(){
window.status=''
return true
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

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


Just paste it in the head part of your template.html

Enjoy!
Don't ask me: Can you do this .... or Give me that...or I need Quick help in PM's. I'm not Santaclaus so post your questions on the board so it will be in the benefit for everyone.

Fabrian

I don't completely understand the point of this patch.  If hovering over the link no longer shows on the status bar, you could just as easily copy and paste the link and see what you were trying to hide in the first place.

Joachim Müller

I agree that "stealing" the content of the status bar is very nineties: newbies don't pay attention to the status bar anyway, advanced users shy away from using the page because they fear to be lured into clicking silly ads.
However there might be some users who like the code contribution by xplicit, we appreciate the fact that he continuosly contributes. It's up to you (as a webmaster) to apply the hack or not. Instead of emptying the status bar, you could as well have other content displayed. With a bit of PHP code (the hack would then have to be applied to another page than template.html) you could even make this dynamic, i.e. make the status bar display the title of the link target or similar. Think of the hack as giving you an idea what is possible.