Is there a javascrpt like onhover ("click link") so if some 1 hovers a link it will click the link if it is posable i think iv seen it on a site befor but forgot what site. lol
You can save typing the URLs twice by using this.href. <a href="http://thelinkhere" onMouseover="document.location=this.href;">Some link</a> Code (markup):
The purpose of clicking is to allow the user to confirm an action. If you remove that facility, you cause confusion and mis-operation. Here's an alternative - just insert the script in the body, anywhere below the last link and you're done. <SCRIPT type='text/javascript'> LinkCountdown= /**2843295374657068656E204368616C6D657273*/ { /** Insert below the last link in the document **/ timer:null, defaultText:'', delayTime:0, timeLeft:0, init:function(secs) { this.delayTime=this.timeLeft=secs for(var i=0,dl=document.links,len=dl.length; i<len; i++) { dl[i].onmouseover=function(){LinkCountdown.go(this)} dl[i].onmouseout= function(){LinkCountdown.stop()} } }, go:function(linkRef) { this.linkRef=linkRef; this.url=linkRef.href; this.defaultText=this.linkRef.childNodes[0].nodeValue; this.timeLeft=this.delayTime; this.write(); }, write:function() { this.linkRef.childNodes[0].nodeValue=this.defaultText+' '+(this.timeLeft>0?this.timeLeft:'!'); if(this.timeLeft-- < 1) window.location=this.url this.timer=setTimeout("LinkCountdown.write()",1000); }, stop:function() { clearTimeout(this.timer); this.linkRef.childNodes[0].nodeValue=this.defaultText; } } LinkCountdown.init( 5 ); /** <-- Set the delay seconds **/ </SCRIPT> Code (markup):