[求一个特效]求chinaren的点击标题栏的箭头,下面的内容层向上慢慢移动,最终隐藏 打开chinaren,右键查看源代码,自己分析. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 具体功能,请楼主自行调试,<script language="javascript" type="text/javascript"> var s = 0; var ts = null; function gogo() { ts = window.setInterval("showIt()", 300); } function showIt() { s++; if (s > 6) { window.clearInterval(ts); return false; } var pnode = document.getElementById("pn"); var ndiv = document.createElement("DIV"); ndiv.setAttribute("id", 'id'+s); ndiv.style.background = '#FFCC00'; ndiv.style.border = 1+'px'; ndiv.innerText = 'content'+s; ndiv.onmouseover = function () { this.style.background = '#3399FF';} ndiv.onmouseout = function () { this.style.background = '#FFCC00';} pnode.appendChild(ndiv); }</script></HEAD><BODY><div id="pn" onclick="gogo();return true;" style="cursor:hand;background:#66CC00;width:60px;">功能一</div></BODY></HTML> 求解此js换取图片原理 如何实现关闭IE窗口前弹出提示? 为什么这段代码 在ie7.0下 不能向上滚动啊 高手帮忙! 弹出窗口后,点击标题栏或者拖动,窗口无响应 请教js过滤标签问题 用javascript实现添加<body>的事件句柄 中国城市两级连动(图片显示) frameset问题并求一限制文本框只可以输入2000-01-12的正则表达式 document.referrer为什么得不到上一页的地址? 怎么优化手机前端性能 关于form.submit()的问题 用JavaScript删除行,位置不对,帮我看看那写错了!
<script language="javascript" type="text/javascript">
var s = 0;
var ts = null; function gogo()
{
ts = window.setInterval("showIt()", 300);
} function showIt()
{
s++;
if (s > 6)
{
window.clearInterval(ts);
return false;
}
var pnode = document.getElementById("pn");
var ndiv = document.createElement("DIV");
ndiv.setAttribute("id", 'id'+s);
ndiv.style.background = '#FFCC00';
ndiv.style.border = 1+'px';
ndiv.innerText = 'content'+s;
ndiv.onmouseover = function () { this.style.background = '#3399FF';}
ndiv.onmouseout = function () { this.style.background = '#FFCC00';}
pnode.appendChild(ndiv);
}</script>
</HEAD><BODY>
<div id="pn" onclick="gogo();return true;" style="cursor:hand;background:#66CC00;width:60px;">功能一</div>
</BODY>
</HTML>