View Single Post
Old 06-03-2002, 11:18 PM  
michaelw
Confirmed User
 
Join Date: May 2002
Location: Calgary, Canada
Posts: 1,342
Heres a tip to save everyone who runs a CJ/TGP a LOT of bandwidth :)

So you guys all have status bar changes right? when a user moves their mouse over a link you have the onmouseover onmouseout status bar changes that end up becoming very redundant, and add to the size of your pages because each link code is twice as big.

Heres a way you can prevent all that extra BW usage

< script>
function statushide(){
window.status=''
return true
}

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

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

Put that into your <head> section of your html page. If you want the status bar to show nothing, leave it as ''. If you want it to show "Done". put in 'Done' - or change it to anything else you want . Remember to remove the spaces in < script> and < /script> - I had to post it that way because the board wouldnt show it without the space
__________________
<b><a href="http://www.hotlinkprotector.com"><font color="yellow">Hotlink Protector</font></a> - Protect all your file types from hotlinking the professional way. <br>
See a demo <a href="http://www.hotlinkprotector.com/demo.html"><font color="yellow">here</font></a>, and testimonials <a href="http://www.hotlinkprotector.com/testimonials.html"><font color="yellow">here</font></a><br>ICQ: 146423631

Last edited by michaelw; 06-03-2002 at 11:23 PM..
michaelw is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote