Kód:
<center><img border="0"src="//jegvirag.gportal.hu/portal/jegvirag/image/gallery/1418895730_75.gif">
<style type="text/css">
#divCursor{
border-radius:30px;
background-color:#E82619;
width:80px;
height:18px;
font-family: "Verdana";
font-size: 7pt;
color:#ffffff;
}
</style>
<script type="text/javascript" language="JavaScript">
function checkBrowser(){
this.ver=navigator.appVersion
this.dom=document.getElementById?1:0
this.ie5=(this.ver.indexOf("MSIE 5")>-1 & this.dom)?1:0;
this.ie4=(document.all & !this.dom)?1:0;
this.ns5=(this.dom & parseInt(this.ver) >= 5) ?1:0;
this.ns4=(document.layers & !this.dom)?1:0;
this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
return this
}
bw=new checkBrowser()
fromLeft=10
fromTop=10
function cursorInit(){
oCursor=new makeCursorObj('divCursor')
scrolled=bw.ns4 || bw.ns5?"window.pageYOffset":"document.body.scrollTop"
if(bw.ns4)document.captureEvents(Event.MOUSEMOVE)
document.onmousemove=move;
}
function makeCursorObj(obj,nest){
nest=(!nest) ? '':'document.'+nest+'.'
this.css=bw.dom? document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+"document.layers." +obj):0;
this.moveIt=b_moveIt;
return this
}
function b_moveIt(x,y){this.x=x; this.y=y; this.css.left=this.x; this.css.top=this.y}
function move(e){
x=bw.ns4 || bw.ns5?e.pageX:event.x
y=bw.ns4 || bw.ns5?e.pageY:event.y
if(bw.ie4 || bw.ie5) y=y+eval(scrolled)
oCursor.moveIt(x+fromLeft,y+fromTop)
}
onload=cursorInit;
</script>
</head>
<div id="divCursor" >
<img border="0"src="//virgoncdesign.gportal.hu/portal/virgoncdesign/image/gallery/1422193199_73.gif" width="11" height="12" alt="">
<script type="text/javascript">
function tS(){ x=new Date(); x.setTime(x.getTime()); return x; }
function lZ(x){ return (x>9)?x:'0'+x; }
function tH(x){ if(x==0){ x=24; } return (x>24)?x-=24:x; }
function dT(){ if(fr==0){ fr=1; document.write('<span id="tP">'+eval(oT)+'<\/b><\/span>'); } tP.innerText=eval(oT); setTimeout('dT()',1000); }
var fr=0,oT = "lZ( tH(tS().getHours())) + ' : ' +lZ(tS().getMinutes())+ ' : '+lZ(tS().getSeconds())";</script>
<script type="text/javascript">dT();</script>
</div></center>