coppermine-gallery.com/forum

Support => cpg1.4 themes/skins/templates => cpg1.4.x Support => Older/other versions => cpg1.4 theme contributions => Topic started by: xplicit on July 16, 2006, 01:13:44 PM

Title: Prevent your statusbar from displaying your real urls
Post by: xplicit on July 16, 2006, 01:13:44 PM
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!
Title: Re: Prevent your statusbar from displaying your real urls
Post by: Fabrian on July 20, 2006, 03:58:50 AM
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.
Title: Re: Prevent your statusbar from displaying your real urls
Post by: Joachim Müller on July 20, 2006, 05:51:16 AM
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.