帮忙解决个问题
<P>在IE中打开提示缺少对象<BR><BR><%@ page import="java.util.*" pageEncoding="gb2312"%></P><P><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML Trasitional//EN"></P>
<P><html><BR><head><BR><title><BR>this is my forth ajax<BR></title><BR><script language="javascript" type="text/javascript"></P>
<P>function moveup(a)<BR>{<BR> var x=a.parentNode.parentNode;<BR> if(x.previousSibling)move(x,x.previousSibling);<BR>}</P>
<P>function movedown(b)<BR>{<BR> var y=b.parentNode.parentNode;<BR> if(y.nextSibling)move(y,y.nextSibling)move(y,y.nextSibling);<BR>}</P>
<P>function move(new,old)<BR>{<BR> var parent=new.parentNode;<BR> var t1=new.nextSibling;<BR> var t2=new.nextSibling;<BR> if(t1)parent.insertBefore(new,t2);<BR> else parent.appendChild(new);<BR> if(t2)parent.insertBefore(old,t1);<BR> else parent.appendChild(old);<BR>}<BR></script><BR></head><BR><body><BR><table border="1" id="table"><BR><tbody><BR><tr><BR><td>1</td><BR><td>2</td><BR><td><a href="javascript:void(0)" onclick="moveup(this)">上移</a></td><BR><td><a href="javascript:void(0)" onclick="movedown(this)">下移</a></td><BR></tr></P>
<P><tr><BR><td>2</td><BR><td>4</td><BR><td><a href="javascript:void(0)" onclick="moveup(this)">上移</a></td><BR><td><a href="javascript:void(0)" onclick="movedown(this)">下移</a></td><BR></tr></P>
<P><tr><BR><td>2</td><BR><td>3</td><BR><td><a href="javascript:void(0)" onclick="moveup(this)">上移</a></td><BR><td><a href="javascript:void(0)" onclick="movedown(this)">下移</a></td><BR></tr></P>
<P><tr><BR><td>4</td><BR><td>5</td><BR><td><a href="javascript:void(0)" onclick="moveup(this)">上移</a></td><BR><td><a href="javascript:void(0)" onclick="movedown(this)">下移</a></td><BR></tr></P>
<P><tr><BR><td>6</td><BR><td>7</td><BR><td><a href="javascript:void(0)" onclick="moveup(this)">上移</a></td><BR><td><a href="javascript:void(0)" onclick="movedown(this)">下移</a></td><BR></tr><BR></tbody><BR></table><BR></body><BR></html></P>
页:
[1]
