提示无对象错误急死我了!
<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<%@taglib prefix="magnifier" uri="/funny"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Insert title here</title>
<style>
#data {
position: absolute; width ="500" height="300" padding : 5px;
z-index: 100;
cursor: hand;
}
</style>
</head>
<body>
<script language="JavaScript">
crossobj=document.getElementById("data");
document.onmousedown=initializedrag;
document.onmouseup=new Function("dragapproved=false");
function initializedrag(){
if(event.srcElement.id=="data"){
offsetx=event.clientX;
offsety=event.clientY;
tempx=parseInt(crossobj.style.left);
tempy=parseInt(crossobj.style.top);
dragapproved=true;
document.onmousemove=drag_drop;
}
}
function drag_drop(){
if(dragapproved){
crossobj.style.left=tempx+event.clientX-offsetx;
crossobj.style.top=tempy+event.clientY-offsety;
return false;
}
}
function show()
{
document.getElementById("main").style.display="none";
document.getElementById("main").style.visibility="hidden";
document.getElementById("data").style.display="block";
document.getElementById("data").style.visibility="visible";
}
function hide()
{
document.getElementById("main").style.display="block";
document.getElementById("data").style.visibility="hidden";
}
function goNextPage()
{
myTable1.nextPage();
}
function goPrePage()
{
myTable1.previousPage();
}
function goFirstPage()
{
myTable1.firstPage();
}
function goLastPage()
{
myTable1.lastPage();
}
</script>
<div id="main" style="visiblity: visible">
<input type="text" value="" />
<input type="button" value="click" onclick="show()" />
</div>
<div id="data" style="left:50;top:50;display:none">
移动栏
<OBJECT
ID="myData1" CLASSID="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83"
BORDER="0" WIDTH="0" HEIGHT="0">
<PARAM NAME="DataURL" value="data2.txt">
<PARAM NAME="UseHeader" VALUE="True">
</OBJECT>
<table id="outer_table" border=3 bordercolor="yellow">
<tr>
<td>
<table border=2 id="myTable1" DATASRC=#myData1 DATAPAGESIZE="2"
bordercolor="blue">
<thead>
<tr>
<td>公司名称</td>
<td>联系人姓名</td>
</tr>
</thead>
<tbody>
<tr height=25px valign="middle">
<td width="110">
<div DATAFLD="公司名称">
</td>
<td width="70">
<div DATAFLD="联系人姓名">
</td>
</tr>
</tbody>
</table>
<table align="center" border=2>
<tr>
<td align="center">
<input id="first" type="button" value=" 第一页 " onclick="goFirstPage()">
<input id="next" type="button" value=" 下一页 " onclick="goNextPage()">
<input id="previous" type="button" value=" 上一页 " onclick="goPrePage()">
<input id="last" type="button" value=" 最后一页 " onclick="goLastPage()">
</td>
</tr>
<tr>
<td align="center">
<input type="button" value=" 确认 " onclick="hide()" />
<input type="button" value=" 取消 " onclick="hide()" />
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</body>
</html>
提示行29列4 缺少对象的错误!