Pagina Principala Dizainuri Forum Contacte RSS 2.0
   
[ Mesaje · Utilizatori · Regulile site-ului · Cautare · RSS ]
  • Page 1 of 1
  • 1
Около курсора мышка
AdminDate: Sunday, 14.06.2009, 23:41 | Message # 1
Lieutenant
Group: Administrators
Messages: 42
Reputation: 0
Status: Offline
вставляем скрипт между <head> и </head>
Code
<html>
<head>
<title>Курсор картинкой</title>
<script language="JavaScript">
var Netscape=(navigator.appName.indexOf("Netscape") != -1);
function Move(e) {
if (!document.getElementById) return;
obj=document.getElementById("mouse");
if (Netscape)
event=e;
if (event.pageX) { // Netscape...
xpointer=event.pageX;
ypointer=event.pageY;
}
else if (event.x) { // Internet Explorer...
xpointer=event.x;
ypointer=event.y;
}
obj.style.left=xpointer - 55;
obj.style.top=ypointer - 55;
}
function Setup() {
if (!document.getElementById) return;
if (Netscape)
document.captureEvents(Event.MOUSEMOVE);
document.onmousemove=Move;
}
</script>
</head>
<body onLoad="Setup();" style="cursor:crosshair">
<div ID="mouse" style="position:absolute; left:50; top:50;">
<img src="http://www.scriptic.ru/img/mause.gif" width="50" height="50" alt="" border="0">
</div>
</body>
</html>

 
  • Page 1 of 1
  • 1
Search:

Website builderuCoz