解决方案 »
- 为什么只检查标题的合法性,不检查内容?~~~
- ext获取treePanel的所有叶节点用什么方法,api上没有
- JS写的六子棋
- 请教,mvc中把页面转化成部分视图后,原来页面从action取得数据,现在从那里取?
- 如何利用脚本判断一个页面是否获得了焦点
- js 获取 textarea 中的 “真实内容”
- 什么情况下会出现“此文件来自于其它计算机,可能被阻止以帮助保护该计算机”?
- 我从来都没有看过的一段Javascript代码,来看看。(线上等)
- js可否实现两个同时激活的IE窗口?
- 高分!!!谁有动态生成树形菜单的源码?(数据是从数据库提取的)
- removeChild问题。。
- function document.onreadystatechange报错
<SCRIPT language=javascript>
lastScrollY=0;
function heartBeat(){
var diffY;
if (document.documentElement && document.documentElement.scrollTop)
diffY = document.documentElement.scrollTop;
else if (document.body)
diffY = document.body.scrollTop
else
{/*Netscape stuff*/}
//alert(diffY);
percent=.1*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.getElementById("lovexin12").style.top=parseInt(document.getElementById("lovexin12").style.top)+percent+"px"; lastScrollY=lastScrollY+percent;
//alert(lastScrollY);
} suspendcode12=" <DIV id=\"lovexin12\" style='left:22px;POSITION:absolute;TOP:100px;z-index:100'>";
var recontent=' <table align="left" style="margin-left:22px;width:90px" border="0" cellpadding=0 cellspacing=0 height="32">' +
' <tr>' +
' <td style="padding:0;font-size:13px" height="32" > <table style="width:90px" border="0" cellspacing="0" cellpadding="0" height="1">' +
' <tr>' +
' <td style="padding:0;font-size:13px; background:none" height="20"> <a href="http://www.dshyuan.com/plus/guestbook.php" > <img src="http://www.dshyuan.com/plus/js/notebook.gif" border="0" > </a> </td>' +
' </tr>' +
' <!--end-->' +
' </table> </td>' +
' </tr>' +
' </table> </td>' +
' </tr>' +
' </table>' + document.write(suspendcode12);
document.write(recontent);
document.write(" </div>");
window.setInterval("heartBeat()",1);
function far_close()
{
document.getElementById("lovexin12").innerHTML="";
} function setfrme()
{
var tr=document.getElementById("lovexin12");
var twidth=tr.clientWidth;
var theight=tr.clientHeight;
var fr=document.getElementById("frame55la");
fr.width=twidth-1;
fr.height=theight-30;
}
//setfrme()
</SCRIPT>
var recontent=' <table align="left" style="margin-left:22px;width:90px" border="0" cellpadding=0 cellspacing=0 height="32">' +
' <tr>' +
' <td style="padding:0;font-size:13px" height="32" > <table style="width:90px" border="0" cellspacing="0" cellpadding="0" height="1">' +
' <tr>' +
' <td style="padding:0;font-size:13px; background:none" height="20"> <a href="http://www.dshyuan.com/plus/guestbook.php" > <img src="http://www.dshyuan.com/plus/js/notebook.gif" border="0" > </a> </td>' +
' </tr>' +
' <!--end-->' +
' </table> </td>' +
' </tr>' +
' </table> </td>' +
' </tr>' +
' </table>'