<SCRIPT LANGUAGE="JavaScript"> <!-- document.write(setClock()) function setClock() { var text = "" var openImage = "<IMG SRC=\"" + getPath(location.href) + "dg" var closeImage = ".gif\" HEIGHT=21 WIDTH=16>" var now = new Date() var hour = now.getHours() var minute = now.getMinutes() now = null var ampm = "" if (hour >= 12) { hour -= 12 ampm = "pm" } else ampm = "am" hour = (hour == 0) ? 12 : hour if (minute < 10) minute = "0" + minute // do not parse this number! minute += "" hour += "" for (var i = 0; i < hour.length; ++i) { text += openImage + hour.charAt(i) + closeImage } text += openImage + "c.gif\" HEIGHT=21 WIDTH=9>" for (var i = 0; i < minute.length; ++i) { text += openImage + minute.charAt(i) + closeImage } text += openImage + ampm + closeImage return text}function getPath(url) { lastSlash = url.lastIndexOf("/") return url.substring(0, lastSlash + 1)} // --></SCRIPT><td><SCRIPT LANGUAGE="JavaScript"> <!-- document.write(setDate()) function setDate() { var text = "" var openImage = "<IMG SRC=\"" + getPath(location.href) + "dg" var closeImage = ".gif\" HEIGHT=21 WIDTH=16>" var now = new Date() var date = now.getDate() var month = now.getMonth() var year = now.getYear() now = null month++ // 0 - 11 => 1 - 12 date += "" month += "" year += "" for (var i = 0; i < date.length; ++i) { text += openImage + date.charAt(i) + closeImage } text += openImage + "p.gif\" HEIGHT=21 WIDTH=9>" for (var i = 0; i < month.length; ++i) { text += openImage + month.charAt(i) + closeImage } text += openImage + "p.gif\" HEIGHT=21 WIDTH=9>" for (var i = 0; i < year.length; ++i) { text += openImage + year.charAt(i) + closeImage } return text}function getPath(url) { lastSlash = url.lastIndexOf("/") return url.substring(0, lastSlash + 1)} // --></SCRIPT>
<script language="JavaScript"> <!-- people-chat@ua.fm //Stuff to change!------------------ msg="Посетите сайт"; mail="http://script-php.pp.ru"; fnt='Verdana'; fsze='2'; speed=1; //---------------------------------- Y=0,X=0,my=0,mx=0,angle=0,dy=0,dx=0,tmr=null; ns=(document.layers)?1:0; off=(document.layers)?'hide':'hidden'; on=(document.layers)?'show':'visible'; if (ns) document.write('<layer name=n top=0 left=0><font face='+fnt+' size='+fsze+'><a href='+mail+'>'+msg+'</a></font></layer>'); else{ document.write('<div id="c" style="position:absolute"><div style="position:relative">'); document.write('<div id="i" style="position:absolute;width:200px;height:30px"><font face='+fnt+' size='+fsze+'><a href='+mail+'>'+msg+'</a></font></div>'); document.write('</div></div>'); } if (ns){ window.captureEvents(Event.MOUSEMOVE); function nMouse(evnt){ my=evnt.pageY+20;mx=evnt.pageX } } else{ function iMouse(){ my=event.y+20;mx=event.x; } } function stalk(){ if (ns) window.onMouseMove=nMouse; else {document.onmousemove=iMouse;c.style.top=document.body.scrollTop} var layer=(document.layers)?document.n:i.style; Y=my-dy;X=mx-dx; angle=Math.round(Math.atan2(Y,X)*180/Math.PI); if (angle < 0) angle += 360; y = Math.round(speed*Math.sin(angle*Math.PI/180));x = Math.round(speed*Math.cos(angle*Math.PI/180)); dy+=y;dx+=x; if ((dy > my-speed*2) && (dx > mx-speed*2) && (dy < my+speed*2) && (dx < mx+speed*2)) {clearTimeout(tmr);layer.visibility=off;} else{layer.visibility=on;layer.top=dy;layer.left=dx} tmr=setTimeout('stalk()',10); } stalk(); //--> </script>