层的滑动效果js 我想实现这样一个效果:子层向左滑动,一次滑动一定距离(如:70px;),超出父层的部分隐藏。最好是有源代码,多谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 http://topic.csdn.net/u/20090902/22/4be98add-ec5e-4bfc-adbf-8eda22331fbf.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns=" http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="textml; charset=utf-8" /><title>无标题文档</title></head><body><div id="main" style="width:300px; overflow:hidden; position:absolute; background-color:#00FFFF; left:100px; top:100px; height:100px; border:1px solid red"> <div id="child" style="width:30%;position:relative;left:200px;height:100%;background-color:#00FF66"></div></div><script type="text/javascript"><!--var Tween = { Quad: { easeOut: function(t,b,c,d){ return -c *(t/=d)*(t-2) + b; } }}var div = document.getElementById('child');var b=200,c=-300,d=300,t=0;function Run(){ div.style.left = Math.ceil(Tween.Quad.easeOut(t,b,c,d)) + "px"; if(t<d){ t++; setTimeout(Run, 10); }}Run();//--></script></body></html> http://www.baidu.com<a href="www.baidu.com">试试看,别当真</a> js参数的理解. Extjs和Weblogic是否有兼容问题? 问一个falsh播放的问题 如何用JavaScript控制table动态插入行 |zyciis| 怎么我也搞不好的问题 如何让一个图片动态加载一张图片,而原有的gif图片不定格 谢谢 网址复制给好友 数值的传递,将JavaSrcipt中的值传到Scriplet中来。 IE窗口最小化以后,如有新增贴子,IE窗口闪烁,如何实现? javascript实现Frame查找? 文本框只能输入数字的代码谁有? 如何自定义ie右键菜单进行测试 请各位帮下忙.我需要得到序号那一列的ID数字..谢谢.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="textml; charset=utf-8" />
<title>无标题文档</title>
</head><body>
<div id="main" style="width:300px; overflow:hidden; position:absolute; background-color:#00FFFF; left:100px; top:100px; height:100px; border:1px solid red">
<div id="child" style="width:30%;position:relative;left:200px;height:100%;background-color:#00FF66"></div>
</div>
<script type="text/javascript">
<!--
var Tween = {
Quad: {
easeOut: function(t,b,c,d){
return -c *(t/=d)*(t-2) + b;
}
}
}
var div = document.getElementById('child');
var b=200,c=-300,d=300,t=0;
function Run(){
div.style.left = Math.ceil(Tween.Quad.easeOut(t,b,c,d)) + "px";
if(t<d){ t++; setTimeout(Run, 10); }
}
Run();
//-->
</script>
</body>
</html>