mouseout(function(){$("#PetBody").fadeTo("300",1)});$("#PetMsg").hover(function(){$("#PetMsg").fadeTo("100",1)});var _petmove=false;var isPetmove=false;var _petx,_pety;$("#WeatherPet").mousedown(function(e){_petmove=true;_petx=e.pageX-parseInt($("#WeatherPet").css("left"));_pety=e.pageY-parseInt($("#WeatherPet").css("top"))});$(document).mousemove(function(e){if(_petmove){var x=e.pageX-_petx;var y=e.pageY-_pety;var wx=$(window).width()-$('#WeatherPet').width();var dy=$(document).height()-$('#WeatherPet').height();if(x>=0&&x<=wx&&y>0&&y<=dy){$("#WeatherPet").css({top:y,left:x});isPetmove=true}}}).mouseup(function(){_petmove=false});$("#WeatherPet").unbind('contextmenu').bind("contextmenu",function(e){return false;}).mousedown(function(e){if(e.which==3){showMessage("<a href=\"http://t.xidie.

Prev | Next
Pg.: 1 2 3


Back to home | File page

Subscribe | Register | Login | N