ایــــــــن عکــــــس میتـــونــــه لوگــــو یا عکـــس دیــــگری باشـــــه.دمــــــو http://lesanarabi.rozblog.com/page/aks
کد:
<script>// CREDITS:
// JavaScript animation: Catch me if you really can
// by Peter Gehrig
// Copyright (c) 2010 Peter Gehrig. All rights reserved.
// Permission given to use the script provided that this notice remains as is.
// Additional scripts can be found at .
// IMPORTANT:
// If you add this script to a script-library or script-archive
// you have to add a link to the webpage
// where this script will be running.
var x=0
var y=0
var xpos=0
var ypos=0
var xcenter
var ycenter
var windowheight
var windowheight
function cursortracker(e){
x = (!document.all) ? e.pageX : document.body.scrollLeft+event.clientX
y = (!document.all) ? e.pageY : document.body.scrollTop+event.clientY
}
function inite() {
windowheight=document.body.clientHeight
windowwidth=document.body.clientWidth
document.onmousemove=cursortracker;
xcenter=Math.round(windowwidth/2)
ycenter=Math.round(windowheight/2)
changeposition()
}
function changeposition() {
if (x>=(xcenter-60) && x<=xcenter) {
xpos=0
}
else if (x<=(xcenter+60) && x>=xcenter) {
xpos=windowwidth-60
}
else {
xpos=-1*(x-xcenter)+xcenter-100
}
if (y>=(ycenter-60) && y<=ycenter) {
ypos=ycenter+60
}
else if (y<=(ycenter+60) && y>=ycenter) {
ypos=ycenter-60
}
else {
ypos=-1*(y-ycenter)+ycenter-100
}
document.getElementById('catchmeimg').style.left=xpos
document.getElementById('catchmeimg').style.top=ypos
var timer=setTimeout("changeposition()",50)
}
window.onload=inite
</script>
<DIV id="catchmeimg" style="position:absolute;top:-1000px;left:-200px;z-index:1000"><img src="http://news.rzb.ir/user/Avatar/news/tina00.png"></DIV>

داداش

