Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Prevent your statusbar from displaying your real urls  (Read 6078 times)

0 Members and 1 Guest are viewing this topic.

xplicit

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 214
Prevent your statusbar from displaying your real urls
« 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

Code: [Select]
<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!
« Last Edit: July 16, 2006, 08:24:37 pm by GauGau »
Logged
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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 126
Re: Prevent your statusbar from displaying your real urls
« Reply #1 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Prevent your statusbar from displaying your real urls
« Reply #2 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 22 queries.