JJ1271903292
JJ1271903292
关注数: 2
粉丝数: 5
发帖数: 51
关注贴吧数: 36
转贴:〔限时免费送〕极客学院30天VIP 开始你在极客学院的旅程来自:http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fe.jikexueyuan.com%2Finvite%2Findex.html%3FZnJvbV9jb2RlPVE3TUpLVCZ1bmFtZT1xcV81OGd3N3g2biZjaGFubmVsPWludml0ZV9wY19iZHRi&urlrefer=bef768a5fccc1d124e564aef22f35a42
大家看一下这个cj 大家觉的多少rmb.,心塞
谁有jQuery和HTMl5的视频,求地址,谢了
求大神看看这个任意运动的框架,哪里错了啊 <!doctype html> <html> <head> <meta charset="utf-8"> <title>无标题文档</title> <style> div {width:200px; height:200px; background:red; border:10px solid black; margin:10px; } </style> <script> window.onload=function() { var odiv=document.getElementById(*div1*) odiv.onmuoseover=function() { startMove(this ,*height*, 400 ) } odiv.onmouseout=function() { startMove(this, *height*, 200) } } function getStyle(obj, name) { if(obj.currentStyle) { return obj.currentStyle[name]; } else { return getComputedStyle(obj, false)[name]; } }; function startMove(obj, attr, Itarget) { clearInterval(obj.timer); obj.timer=setInterval(function(){ var cur=parseInt(getStyle(obj, attr)); var speed=(Itarget-cur)/5; speed=speed>0?Math.ceil(speed):Math.floor(speed); if(Itarget==cur) { clearInterval(obj.timer) } else { obj.style[attr]=cur+speed+*px*; } },30); } </script> </head> <body> <div id="div1"></div> </body> </html>
1
下一页