日期:2014-05-18  浏览次数:20776 次

这里不能运行高手帮我看看 谢谢
<!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= "text/html;   charset=gb2312 "   />
<title> 摄影作品欣赏 </title>
<style   type= "text/css ">
td{font-size:14px;   font-family: "宋体 ";   vertical-align:baseline;}
</style>
<script   type= "text/javascript ">
<!--
var   myData   =   document.getElementById( "myData1 ");
var   imgArray   =   Array(10);
for(var   i=0;i <10;i++)
{
imgArray[i]   =   new   Image();
imgArray[i].src   =   "../2.JavaScript内建对象应用/ "   +   i   +   ".jpg ";
}

function   goNext()
{
if(myData.recordset.AbsolutePosition   !=   myData.recordset.RecordCount)
{
myData.recordset.MoveNext();
}
else
{
myData.recordset.AbsolutePosition   =   1;
}
getPic(myData.recordset.AbsolutePosition);
}

function   goPre()
{
if(myData.recordset.AbsolutePosition   >   1)
{
myData.recordset.MovePrevious();
}
else
{
myData.recordset.AbsolutePosition   =   myData.recordset.RecordCount;
}
getPic(myData.recordset.AbsolutePosition);
}

function   getPic(Num)
{
document.getElementById( "theImg ")   =   imgArray[i].src;
}
//-->
</script>
</head>

<body   topmargin= "20px "   leftmargin= "20px ">
<object   id= "myData1 "   classid= "clsid:333C7BC4-460F-11D0-BC04-0080C7055A83 "   border= "0 "   width= "0 "   height= "0 ">
<param   name= "DataURL "   value= "data1.txt "   />
<param   name= "UseHeader "   value= "True "   />
</object>
<font   size= "8 "   face= "宋体 "> 本周最新摄影作品排行榜 </font>
<form>
<table   border= "1 "   width= "620px "     >
<tr>
<td   align= "center "   valign= "baseline "> 作品欣赏 </td>
<td   colspan= "2 "> &nbsp;&nbsp;&nbsp;&nbsp;
<input   type= "button "   value= "> > > "   onclick= "goNext(); "   /> &nbsp;&nbsp;&nbsp;
<input   type= "button "   value= " < < < "   onclicj= "goPre(); "   />
</td>
</tr>
<tr>
<td   rowspan= "5 "   width= "42 "   align= "center "   valign= "middle ">
<img   id= "theImg "   height= "140px "   width= "210px "   src= "../2.JavaScript内建对象应用/PIC/1.jpg "/>
</td>
<td>
编号: <input   id= "col1 "   type= "text "   disabled= "#myData1 "   datafld= "编号 &