﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-学习笔迹-文章分类-收藏夹</title><link>http://www.blogjava.net/chenlb/category/21512.html</link><description>好记性不如烂笔头!</description><language>zh-cn</language><lastBuildDate>Sat, 20 Oct 2007 03:03:58 GMT</lastBuildDate><pubDate>Sat, 20 Oct 2007 03:03:58 GMT</pubDate><ttl>60</ttl><item><title>ip查询接口</title><link>http://www.blogjava.net/chenlb/articles/153924.html</link><dc:creator>流浪汗</dc:creator><author>流浪汗</author><pubDate>Thu, 18 Oct 2007 07:53:00 GMT</pubDate><guid>http://www.blogjava.net/chenlb/articles/153924.html</guid><wfw:comment>http://www.blogjava.net/chenlb/comments/153924.html</wfw:comment><comments>http://www.blogjava.net/chenlb/articles/153924.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/chenlb/comments/commentRss/153924.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenlb/services/trackbacks/153924.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 今天同学问我在网页里显示对应IP的所属地，找了下两个还是可以接受的，第一个比较好<br />
<br />
http://www.cz88.net/ip/web.shtml<br />
<br />
http://www.ejchina.com/ipsearch/<br />
<br />
<img src ="http://www.blogjava.net/chenlb/aggbug/153924.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenlb/" target="_blank">流浪汗</a> 2007-10-18 15:53 <a href="http://www.blogjava.net/chenlb/articles/153924.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>javascript 移动层代码</title><link>http://www.blogjava.net/chenlb/articles/109737.html</link><dc:creator>流浪汗</dc:creator><author>流浪汗</author><pubDate>Tue, 10 Apr 2007 13:09:00 GMT</pubDate><guid>http://www.blogjava.net/chenlb/articles/109737.html</guid><wfw:comment>http://www.blogjava.net/chenlb/comments/109737.html</wfw:comment><comments>http://www.blogjava.net/chenlb/articles/109737.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/chenlb/comments/commentRss/109737.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chenlb/services/trackbacks/109737.html</trackback:ping><description><![CDATA[<a href="http://ifairy.cn/blog/article.asp?id=256"><br><font color=#000000>几种不同的javascript移动层</font><br>http://ifairy.cn/blog/article.asp?id=256</a><br><br>
<div twffan="done"><span style="COLOR: orange" twffan="done"><strong>样式1</strong></span><br>
<ol class=code>
    <li class=odd>&lt;html&gt;
    <li>&lt;head&gt;
    <li class=odd>&lt;title&gt;_xWin&lt;/title&gt;
    <li>&lt;meta http-equiv="Content-Type" content="text/html; charset=gb2312"&gt;
    <li class=odd>&lt;META NAME="Description" CONTENT="http://www.xuemu.net"&gt;
    <li>&lt;style type="text/css"&gt;
    <li class=odd>&lt;!--
    <li>#main {
    <li class=odd>&nbsp;background-color: #CCCCCC;
    <li>&nbsp;height: 600px;
    <li class=odd>&nbsp;width: 520px;
    <li>}
    <li class=odd>--&gt;
    <li>&lt;/style&gt;
    <li class=odd>&lt;script language=JScript&gt;
    <li>&lt;!--
    <li class=odd>//可以打包为js文件;
    <li>var x0=0,y0=0,x1=0,y1=0;
    <li class=odd>var offx=6,offy=6;
    <li>var moveable=false;
    <li class=odd>var hover='orange',normal='#336699';//color;
    <li>var index=10000;//z-index;
    <li class=odd>//开始拖动;
    <li>function startDrag(obj)
    <li class=odd>{
    <li>if(event.button==1)
    <li class=odd>{
    <li>//锁定标题栏;
    <li class=odd>obj.setCapture();
    <li>//定义对象;
    <li class=odd>var win = obj.parentNode;
    <li>var sha = win.nextSibling;
    <li class=odd>//记录鼠标和层位置;
    <li>x0 = event.clientX;
    <li class=odd>y0 = event.clientY;
    <li>x1 = parseInt(win.style.left);
    <li class=odd>y1 = parseInt(win.style.top);
    <li>//记录颜色;
    <li class=odd>normal = obj.style.backgroundColor;
    <li>//改变风格;
    <li class=odd>obj.style.backgroundColor = hover;
    <li>win.style.borderColor = hover;
    <li class=odd>obj.nextSibling.style.color = hover;
    <li>sha.style.left = x1 + offx;
    <li class=odd>sha.style.top = y1 + offy;
    <li>moveable = true;
    <li class=odd>}
    <li>}
    <li class=odd>//拖动;
    <li>function drag(obj)
    <li class=odd>{
    <li>if(moveable)
    <li class=odd>{
    <li>var win = obj.parentNode;
    <li class=odd>var sha = win.nextSibling;
    <li>win.style.left = x1 + event.clientX - x0;
    <li class=odd>win.style.top = y1 + event.clientY - y0;
    <li>sha.style.left = parseInt(win.style.left) + offx;
    <li class=odd>sha.style.top = parseInt(win.style.top) + offy;
    <li>}
    <li class=odd>}
    <li>//停止拖动;
    <li class=odd>function stopDrag(obj)
    <li>{
    <li class=odd>if(moveable)
    <li>{
    <li class=odd>var win = obj.parentNode;
    <li>var sha = win.nextSibling;
    <li class=odd>var msg = obj.nextSibling;
    <li>win.style.borderColor = normal;
    <li class=odd>obj.style.backgroundColor = normal;
    <li>msg.style.color = normal;
    <li class=odd>sha.style.left = obj.parentNode.style.left;
    <li>sha.style.top = obj.parentNode.style.top;
    <li class=odd>obj.releaseCapture();
    <li>moveable = false;
    <li class=odd>}
    <li>}
    <li class=odd>//获得焦点;
    <li>function getFocus(obj)
    <li class=odd>{
    <li>if(obj.style.zIndex!=index)
    <li class=odd>{
    <li>index = index+2;
    <li class=odd>var idx = index;
    <li>obj.style.zIndex=idx;
    <li class=odd>obj.nextSibling.style.zIndex=idx-1;
    <li>}
    <li class=odd>}
    <li>//最小化;
    <li class=odd>function min(obj)
    <li>{
    <li class=odd>var win = obj.parentNode.parentNode;
    <li>var sha = win.nextSibling;
    <li class=odd>var tit = obj.parentNode;
    <li>var msg = tit.nextSibling;
    <li class=odd>var flg = msg.style.display=="none";
    <li>if(flg)
    <li class=odd>{
    <li>win.style.height = parseInt(msg.style.height) + parseInt(tit.style.height) + 2*2;
    <li class=odd>sha.style.height = win.style.height;
    <li>msg.style.display = "block";
    <li class=odd>obj.innerHTML = "0";
    <li>}
    <li class=odd>else
    <li>{
    <li class=odd>win.style.height = parseInt(tit.style.height) + 2*2;
    <li>sha.style.height = win.style.height;
    <li class=odd>obj.innerHTML = "2";
    <li>msg.style.display = "none";
    <li class=odd>}
    <li>}
    <li class=odd>//创建一个对象;
    <li>function xWin(id,w,h,l,t,tit,msg)
    <li class=odd>{
    <li>index = index+2;
    <li class=odd>this.id = id;
    <li>this.width = w;
    <li class=odd>this.height = h;
    <li>this.left = l;
    <li class=odd>this.top = t;
    <li>this.zIndex = index;
    <li class=odd>this.title = tit;
    <li>this.message = msg;
    <li class=odd>this.obj = null;
    <li>this.bulid = bulid;
    <li class=odd>this.bulid();
    <li>}
    <li class=odd>//初始化;
    <li>function bulid()
    <li class=odd>{
    <li>var str = ""
    <li class=odd>+ "&lt;div id=xMsg" + this.id + " "
    <li>+ "style='"
    <li class=odd>+ "z-index:" + this.zIndex + ";"
    <li>+ "width:" + this.width + ";"
    <li class=odd>+ "height:" + this.height + ";"
    <li>+ "left:" + this.left + ";"
    <li class=odd>+ "top:" + this.top + ";"
    <li>+ "background-color:" + normal + ";"
    <li class=odd>+ "color:" + normal + ";"
    <li>+ "font-size:8pt;"
    <li class=odd>+ "font-family:Tahoma;"
    <li>+ "position:absolute;"
    <li class=odd>+ "cursor:default;"
    <li>+ "border:2px solid " + normal + ";"
    <li class=odd>+ "' "
    <li>+ "onmousedown='getFocus(this)'&gt;"
    <li class=odd>+ "&lt;div id=Nav_"+(this.id)
    <li>+ " style='"
    <li class=odd>+ "background-color:" + normal + ";"
    <li>+ "width:" + (this.width-2*2) + ";"
    <li class=odd>+ "height:20;"
    <li>+ "color:white;"
    <li class=odd>+ "' "
    <li>+ "onmousedown='startDrag(this)' "
    <li class=odd>+ "onmouseup='stopDrag(this)' "
    <li>+ "onmousemove='drag(this)' "
    <li class=odd>+ "ondblclick='min(this.childNodes[1])'"
    <li>+ "&gt;"
    <li class=odd>+ "&lt;span style='width:" + (this.width-2*12-4) + ";padding-left:3px;'&gt;" + this.title + "&lt;/span&gt;"
    <li>+ "&lt;span style='width:12;border-width:0px;color:white;font-family:webdings;' onclick='min(Nav_"+(this.id)+".childNodes[1])'&gt;0&lt;/span&gt;"
    <li class=odd>+ "&lt;span style='width:12;border-width:0px;color:white;font-family:webdings;' onclick='ShowHide(\""+this.id+"\",null)'&gt;r&lt;/span&gt;"
    <li>+ "&lt;/div&gt;"
    <li class=odd>+ "&lt;div id=C_"+(this.id)+" style='"
    <li>+ "width:100%;"
    <li class=odd>+ "height:" + (this.height-20-4) + ";"
    <li>+ "background-color:white;"
    <li class=odd>+ "line-height:14px;"
    <li>+ "word-break:break-all;"
    <li class=odd>+ "padding:3px;"
    <li>+ "'&gt;" + this.message + "&lt;/div&gt;"
    <li class=odd>+ "&lt;/div&gt;"
    <li>+ "&lt;div id=xMsg" + this.id + "bg style='"
    <li class=odd>+ "width:" + this.width + ";"
    <li>+ "height:" + this.height + ";"
    <li class=odd>+ "top:" + this.top + ";"
    <li>+ "left:" + this.left + ";"
    <li class=odd>+ "z-index:" + (this.zIndex-1) + ";"
    <li>+ "position:absolute;"
    <li class=odd>+ "background-color:black;"
    <li>+ "filter:alpha(opacity=40);"
    <li class=odd>+ "'&gt;&lt;/div&gt;";
    <li>document.body.insertAdjacentHTML("beforeEnd",str);
    <li class=odd>
    <li>}
    <li class=odd>//显示隐藏窗口
    <li>function ShowHide(id,dis){
    <li class=odd>var bdisplay = (dis==null)?((document.getElementById("xMsg"+id).style.display=="")?"none":""):dis
    <li>document.getElementById("xMsg"+id).style.display = bdisplay;
    <li class=odd>document.getElementById("xMsg"+id+"bg").style.display = bdisplay;
    <li>alert (bdisplay);
    <li class=odd>
    <li>}
    <li class=odd>//--&gt;
    <li>&lt;/script&gt;
    <li class=odd>
    <li>&lt;script language='JScript'&gt;
    <li class=odd>&lt;!--
    <li>function initialize()
    <li class=odd>{
    <li>var a = new xWin("1",250,180,10,100,"窗口1","");
    <li class=odd>var b = new xWin("2",250,180,10,140,"窗口2","Welcome to visited my personal website:感谢您的关注！");
    <li>var c = new xWin("3",250,180,270,100,"窗口3","Copyright by &lt;a href='#'&gt;Wildwind&lt;/a&gt;!");
    <li class=odd>var d = new xWin("4",250,180,270,140,"窗口4","Copyright by &lt;a href='#'&gt;Wildwind&lt;/a&gt;!");
    <li>//ShowHide("1","none");//隐藏窗口1
    <li class=odd>//ShowHide("2","none");//隐藏窗口2
    <li>//ShowHide("3","none");//隐藏窗口3
    <li class=odd>min(Nav_1.childNodes[1]);//最小化窗口1
    <li>min(Nav_2.childNodes[1]);//最小化窗口2
    <li class=odd>min(Nav_3.childNodes[1]);//最小化窗口3
    <li>min(Nav_4.childNodes[1]);//最小化窗口4
    <li class=odd>}
    <li>
    <li class=odd>window.onload = initialize;
    <li>&lt;/script&gt;
    <li class=odd>&lt;/head&gt;
    <li>&lt;base target="_blank"&gt;
    <li class=odd>&lt;body onselectstart='return false' oncontextmenu='return false' &gt;
    <li>&lt;p&gt;&lt;span onClick="min(Nav_1.childNodes[1]);"&gt;窗口1最小化&lt;/span&gt;
    <li class=odd>&lt;a onClick="ShowHide('1',null);return false;" href=""&gt;窗口1&lt;/a&gt;
    <li>&lt;a onClick="ShowHide('2',null);return false;" href=""&gt;窗口2&lt;/a&gt;
    <li class=odd>&lt;a onClick="ShowHide('3',null);return false;" href=""&gt;窗口3&lt;/a&gt;&lt;/p&gt;
    <li>&lt;div id="main"&gt;main&lt;/div&gt;
    <li class=odd>&lt;p&gt;&nbsp;&lt;/p&gt;
    <li>&lt;/body&gt;
    <li class=odd>&lt;/html&gt;[ </li>
</ol>
<br><br><br><span style="COLOR: orange" twffan="done"><strong>样式2</strong></span><br>
<ol class=code>
    <li class=odd>&lt;html&gt;
    <li>&lt;head&gt;
    <li class=odd>&lt;style&gt;
    <li>*{font-size:12px}
    <li class=odd>.dragTable{
    <li>&nbsp;font-size:12px;
    <li class=odd>&nbsp;border-top:1px solid #3366cc;
    <li>&nbsp;margin-bottom: 10px;
    <li class=odd>&nbsp;width:100%;
    <li>&nbsp;background-color:#FFFFFF;
    <li class=odd>}
    <li>td{vertical-align:top;}
    <li class=odd>.dragTR{
    <li>&nbsp;cursor:move;
    <li class=odd>&nbsp;color:#7787cc;
    <li>&nbsp;background-color:#e5eef9;
    <li class=odd>&nbsp;height:20px;
    <li>&nbsp;padding-left:5px;
    <li class=odd>&nbsp;font-weight:bold;
    <li>}
    <li class=odd>#parentTable{
    <li>&nbsp;border-collapse:collapse;
    <li class=odd>&nbsp;letter-spacing:25px;
    <li>}
    <li class=odd>&lt;/style&gt;
    <li>&lt;script defer&gt;
    <li class=odd>/****JoeLee************E-MAIL:hktx@163.com****QQ:48293707*****11:09 2006-2-9******/
    <li>&nbsp;var Drag={dragged:false,
    <li class=odd>&nbsp;&nbsp;ao:null,
    <li>&nbsp;&nbsp;tdiv:null,
    <li class=odd>dragStart:function(){
    <li>&nbsp;Drag.ao=event.srcElement;
    <li class=odd>&nbsp;if((Drag.ao.tagName=="TD")||(Drag.ao.tagName=="TR")){
    <li>&nbsp;&nbsp;Drag.ao=Drag.ao.offsetParent;
    <li class=odd>&nbsp;&nbsp;Drag.ao.style.zIndex=100;
    <li>&nbsp;}else
    <li class=odd>&nbsp;&nbsp;return;
    <li>&nbsp;Drag.dragged=true;
    <li class=odd>&nbsp;Drag.tdiv=document.createElement("div");
    <li>&nbsp;Drag.tdiv.innerHTML=Drag.ao.outerHTML;
    <li class=odd>&nbsp;Drag.ao.style.border="1px dashed red";
    <li>&nbsp;Drag.tdiv.style.display="block";
    <li class=odd>&nbsp;Drag.tdiv.style.position="absolute";
    <li>&nbsp;Drag.tdiv.style.filter="alpha(opacity=70)";
    <li class=odd>&nbsp;Drag.tdiv.style.cursor="move";
    <li>&nbsp;Drag.tdiv.style.border="1px solid #000000";
    <li class=odd>&nbsp;Drag.tdiv.style.width=Drag.ao.offsetWidth;
    <li>&nbsp;Drag.tdiv.style.height=Drag.ao.offsetHeight;
    <li class=odd>&nbsp;Drag.tdiv.style.top=Drag.getInfo(Drag.ao).top;
    <li>&nbsp;Drag.tdiv.style.left=Drag.getInfo(Drag.ao).left;
    <li class=odd>&nbsp;document.body.appendChild(Drag.tdiv);
    <li>&nbsp;Drag.lastX=event.clientX;
    <li class=odd>&nbsp;Drag.lastY=event.clientY;
    <li>&nbsp;Drag.lastLeft=Drag.tdiv.style.left;
    <li class=odd>&nbsp;Drag.lastTop=Drag.tdiv.style.top;
    <li>},
    <li class=odd>
    <li>draging:function(){//重要:判断MOUSE的位置
    <li class=odd>&nbsp;if(!Drag.dragged||Drag.ao==null)return;
    <li>&nbsp;var tX=event.clientX;
    <li class=odd>&nbsp;var tY=event.clientY;
    <li>&nbsp;Drag.tdiv.style.left=parseInt(Drag.lastLeft)+tX-Drag.lastX;
    <li class=odd>&nbsp;Drag.tdiv.style.top=parseInt(Drag.lastTop)+tY-Drag.lastY;
    <li>&nbsp;for(var i=0;i&lt;parentTable.cells.length;i++){
    <li class=odd>&nbsp;&nbsp;var parentCell=Drag.getInfo(parentTable.cells[i]);
    <li>&nbsp;&nbsp;if(tX&gt;=parentCell.left&amp;&amp;tX&lt;=parentCell.right&amp;&amp;tY&gt;=parentCell.top&amp;&amp;tY&lt;=parentCell.bottom){
    <li class=odd>&nbsp;&nbsp;&nbsp;var subTables=parentTable.cells[i].getElementsByTagName("table");
    <li>&nbsp;&nbsp;&nbsp;if(subTables.length==0){
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;if(tX&gt;=parentCell.left&amp;&amp;tX&lt;=parentCell.right&amp;&amp;tY&gt;=parentCell.top&amp;&amp;tY&lt;=parentCell.bottom){
    <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parentTable.cells[i].appendChild(Drag.ao);
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;}
    <li>&nbsp;&nbsp;&nbsp;&nbsp;break;
    <li class=odd>&nbsp;&nbsp;&nbsp;}
    <li>&nbsp;&nbsp;&nbsp;for(var j=0;j&lt;subTables.length;j++){
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;var subTable=Drag.getInfo(subTables[j]);
    <li>&nbsp;&nbsp;&nbsp;&nbsp;if(tX&gt;=subTable.left&amp;&amp;tX&lt;=subTable.right&amp;&amp;tY&gt;=subTable.top&amp;&amp;tY&lt;=subTable.bottom){
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parentTable.cells[i].insertBefore(Drag.ao,subTables[j]);
    <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;}else{
    <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parentTable.cells[i].appendChild(Drag.ao);
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;
    <li>&nbsp;&nbsp;&nbsp;}
    <li class=odd>&nbsp;&nbsp;}
    <li>&nbsp;}
    <li class=odd>}
    <li>,
    <li class=odd>dragEnd:function(){
    <li>&nbsp;if(!Drag.dragged)return;
    <li class=odd>&nbsp;Drag.dragged=false;
    <li>&nbsp;Drag.mm=Drag.repos(150,15);
    <li class=odd>&nbsp;Drag.ao.style.borderWidth="0px";
    <li>&nbsp;Drag.ao.style.borderTop="1px solid #3366cc";
    <li class=odd>&nbsp;Drag.tdiv.style.borderWidth="0px";
    <li>&nbsp;Drag.ao.style.zIndex=1;
    <li class=odd>},
    <li>getInfo:function(o){//取得坐标
    <li class=odd>&nbsp;var to=new Object();
    <li>&nbsp;to.left=to.right=to.top=to.bottom=0;
    <li class=odd>&nbsp;var twidth=o.offsetWidth;
    <li>&nbsp;var theight=o.offsetHeight;
    <li class=odd>&nbsp;while(o!=document.body){
    <li>&nbsp;&nbsp;to.left+=o.offsetLeft;
    <li class=odd>&nbsp;&nbsp;to.top+=o.offsetTop;
    <li>&nbsp;&nbsp;o=o.offsetParent;
    <li class=odd>&nbsp;}
    <li>&nbsp;&nbsp;to.right=to.left+twidth;
    <li class=odd>&nbsp;&nbsp;to.bottom=to.top+theight;
    <li>&nbsp;return to;
    <li class=odd>},
    <li>repos:function(aa,ab){
    <li class=odd>&nbsp;var f=Drag.tdiv.filters.alpha.opacity;
    <li>&nbsp;var tl=parseInt(Drag.getInfo(Drag.tdiv).left);
    <li class=odd>&nbsp;var tt=parseInt(Drag.getInfo(Drag.tdiv).top);
    <li>&nbsp;var kl=(tl-Drag.getInfo(Drag.ao).left)/ab;
    <li class=odd>&nbsp;var kt=(tt-Drag.getInfo(Drag.ao).top)/ab;
    <li>&nbsp;var kf=f/ab;
    <li class=odd>&nbsp;return setInterval(function(){if(ab&lt;1){
    <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clearInterval(Drag.mm);
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Drag.tdiv.removeNode(true);
    <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Drag.ao=null;
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
    <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ab--;
    <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tl-=kl;
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tt-=kt;
    <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;f-=kf;
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Drag.tdiv.style.left=parseInt(tl)+"px";
    <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Drag.tdiv.style.top=parseInt(tt)+"px";
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Drag.tdiv.filters.alpha.opacity=f;
    <li>&nbsp;&nbsp;&nbsp;&nbsp;}
    <li class=odd>,aa/ab)
    <li>},
    <li class=odd>inint:function(){//初始化
    <li>&nbsp;for(var i=0;i&lt;parentTable.cells.length;i++){
    <li class=odd>&nbsp;&nbsp;var subTables=parentTable.cells[i].getElementsByTagName("table");
    <li>&nbsp;&nbsp;for(var j=0;j&lt;subTables.length;j++){
    <li class=odd>&nbsp;&nbsp;&nbsp;if(subTables[j].className!="dragTable")break;
    <li>&nbsp;&nbsp;&nbsp;subTables[j].rows[0].className="dragTR";
    <li class=odd>&nbsp;&nbsp;&nbsp;subTables[j].rows[0].attachEvent("onmousedown",Drag.dragStart);
    <li>&nbsp;&nbsp;}
    <li class=odd>&nbsp;}
    <li>&nbsp;document.onmousemove=Drag.draging;
    <li class=odd>&nbsp;document.onmouseup=Drag.dragEnd;
    <li>}
    <li class=odd>//end of Object Drag
    <li>}
    <li class=odd>Drag.inint();
    <li>
    <li class=odd>function _show(str){
    <li>&nbsp;var w=window.open('','');
    <li class=odd>&nbsp;var d=w.document;
    <li>&nbsp;d.open();
    <li class=odd>&nbsp;str=str.replace(/=(?!")(.*?)(?!")( |&gt;)/g,"=\"$1\"$2");
    <li>&nbsp;str=str.replace(/(&lt;)(.*?)(&gt;)/g,"&lt;span style='color:red;'&gt;&lt;$2&gt;&lt;/span&gt;&lt;br /&gt;");
    <li class=odd>&nbsp;str=str.replace(/\r/g,"&lt;br /&gt;\n");
    <li>&nbsp;d.write(str);
    <li class=odd>}
    <li>&lt;/script&gt;
    <li class=odd>&lt;/head&gt;
    <li>&lt;body&gt;
    <li class=odd>&lt;table border="0" cellpadding="0" cellspacing="10" width="100%" height=500 id="parentTable"&gt;
    <li>&lt;tr &gt;
    <li class=odd>&nbsp;&lt;td width="25%" valgin="top"&gt;
    <li>&nbsp;&nbsp;&lt;table border=0 class="dragTable" cellspacing="0"&gt;
    <li class=odd>&nbsp;&nbsp;&nbsp;&lt;tr&gt;
    <li>&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;&lt;b&gt;GMAIL&lt;/b&gt;&lt;/td&gt;
    <li class=odd>&nbsp;&nbsp;&nbsp;&lt;/tr&gt;
    <li>&nbsp;&nbsp;&nbsp;&lt;tr&gt;
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;暂时无法显示GMAIL内容&lt;/td&gt;
    <li>&nbsp;&nbsp;&nbsp;&lt;tr&gt;
    <li class=odd>&nbsp;&nbsp;&lt;/table&gt;&lt;table border=0 class="dragTable" cellspacing="0"&gt;
    <li>&nbsp;&nbsp;&nbsp;&lt;tr&gt;
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;新浪体育&lt;/td&gt;
    <li>&nbsp;&nbsp;&nbsp;&lt;/tr&gt;
    <li class=odd>&nbsp;&nbsp;&nbsp;&lt;tr&gt;
    <li>&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;解剖威队独门利器FW28 2万转引擎匹配超级变速器颁奖：辛吉斯欣喜能以冠军起步&lt;br/&gt; 印度搭档创下纪录法新社前瞻冬奥短道速滑：中韩唱主角 美加施冷箭&lt;/td&gt;
    <li class=odd>&nbsp;&nbsp;&nbsp;&lt;tr&gt;
    <li>&nbsp;&nbsp;&lt;/table&gt;
    <li class=odd>&nbsp;&nbsp;&lt;table border=0 class="dragTable" cellspacing="0"&gt;
    <li>&nbsp;&nbsp;&nbsp;&lt;tr&gt;
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;焦点&lt;/td&gt;
    <li>&nbsp;&nbsp;&nbsp;&lt;/tr&gt;
    <li class=odd>&nbsp;&nbsp;&nbsp;&lt;tr&gt;
    <li>&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;京广线中断4小时20临客返汉晚点 中国新闻网-湖北分社 - 所有 235 相关报道 &#187;哈马斯已有总理人选
    <li class=odd>解放日报报业集团 - 所有 489 相关报道 &#187;陈水扁是两岸关系麻烦制造者 武汉晨报 - 所有 179 相关报道 &#187;&lt;/td&gt;
    <li>&nbsp;&nbsp;&nbsp;&lt;tr&gt;
    <li class=odd>&nbsp;&nbsp;&lt;/table&gt;
    <li>&nbsp;&lt;/td&gt;
    <li class=odd>&nbsp;&lt;td width="25%"&gt;
    <li>&nbsp;&nbsp;&lt;table border=0 class="dragTable" cellspacing="0"&gt;
    <li class=odd>&nbsp;&nbsp;&nbsp;&lt;tr&gt;
    <li>&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;中关村在线&lt;/td&gt;
    <li class=odd>&nbsp;&nbsp;&nbsp;&lt;/tr&gt;
    <li>&nbsp;&nbsp;&nbsp;&lt;tr&gt;
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;新年行情速递 双敏板卡低价推荐 终于等到了，映泰6600GT一降降一百 罗技G15游戏键盘热力促销，代购价仅529元 &lt;/td&gt;
    <li>&nbsp;&nbsp;&nbsp;&lt;tr&gt;
    <li class=odd>&nbsp;&nbsp;&lt;/table&gt;&lt;/td&gt;
    <li>&nbsp;&lt;td width="25%"&gt;
    <li class=odd>&nbsp;&nbsp;&lt;table border=0 class="dragTable" cellspacing="0"&gt;
    <li>&nbsp;&nbsp;&nbsp;&lt;tr&gt;
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;网易商业&lt;/td&gt;
    <li>&nbsp;&nbsp;&nbsp;&lt;/tr&gt;
    <li class=odd>&nbsp;&nbsp;&nbsp;&lt;tr&gt;
    <li>&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;上海GDP增幅去年出现回落应对反倾销 中国鞋企联手对抗欧盟尹家绪操盘南方汽车 长安谋求曲线整体境外上市&lt;/td&gt;
    <li class=odd>&nbsp;&nbsp;&nbsp;&lt;tr&gt;
    <li>&nbsp;&nbsp;&lt;/table&gt;&nbsp;&nbsp;&lt;table border=0 class="dragTable" cellspacing="0"&gt;
    <li class=odd>&nbsp;&nbsp;&nbsp;&lt;tr&gt;
    <li>&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;黑可天下&lt;/td&gt;
    <li class=odd>&nbsp;&nbsp;&nbsp;&lt;/tr&gt;
    <li>&nbsp;&nbsp;&nbsp;&lt;tr&gt;
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;上海GDP增幅去年出现回落应对反倾销 中国鞋企联手对抗欧盟尹家绪操盘南方汽车 长安谋求曲线整体境外上市&lt;/td&gt;
    <li>&nbsp;&nbsp;&nbsp;&lt;tr&gt;
    <li class=odd>&nbsp;&nbsp;&lt;/table&gt;
    <li>&nbsp;&lt;/td&gt;
    <li class=odd>&lt;/tr&gt;
    <li>&lt;/table&gt;
    <li class=odd>&lt;input type="button" value="SHOW" onClick="_show(document.documentElement.innerHTML)" /&gt;
    <li>&lt;/body&gt;
    <li class=odd>&lt;/html&gt; </li>
</ol>
<br><br><br><span style="COLOR: orange" twffan="done"><strong>样式3</strong></span><br>
<ol class=code>
    <li class=odd>&lt;!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"&gt;
    <li>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
    <li class=odd>&lt;head&gt;
    <li>&lt;meta http-equiv="content-type" content="text/html; charset=gb2312" /&gt;
    <li class=odd>&lt;meta http-equiv="content-language" content="zh-cn" /&gt;
    <li>&lt;meta name="author" content="forfor" /&gt;
    <li class=odd>&lt;meta name="keywords" content="" /&gt;
    <li>&lt;title&gt;Demo&lt;/title&gt;
    <li class=odd>&lt;script type="text/javascript"&gt;
    <li>&lt;!--
    <li class=odd>var IE=false,FF=false,W=window,D=document,H,B,GET="getElementsByTagName",GEI="getElementById",qq=0;
    <li>
    <li class=odd>function fold(){
    <li>&nbsp;var e;
    <li class=odd>&nbsp;e=fixE(e);
    <li>&nbsp;if(e)element=fixElement(e);
    <li class=odd>&nbsp;element=element.parentNode.parentNode;
    <li>&nbsp;element.className=element.className.indexOf("hide")&gt;0?"module":"module hide";
    <li class=odd>}
    <li>
    <li class=odd>var Drag={
    <li>&nbsp;draging : false,
    <li class=odd>&nbsp;x : 0,
    <li>&nbsp;y : 0,
    <li class=odd>&nbsp;element : null,
    <li>&nbsp;fDiv : null,
    <li class=odd>&nbsp;ghost : null,
    <li>&nbsp;addEvent : function(){var a=D[GET]("li");for(var i=a.length-1;i&gt;-1;i--)if(a[i].className=="module")a[i].onmousedown=Drag.dragStart;},
    <li class=odd>&nbsp;ix:2,iy:7,
    <li>&nbsp;ox:6,oy:7,
    <li class=odd>&nbsp;fx:6,fy:6,
    <li>
    <li class=odd>&nbsp;dragStart : function (e){
    <li>&nbsp;&nbsp;if(Drag.draging)return;
    <li class=odd>&nbsp;&nbsp;var e;
    <li>&nbsp;&nbsp;e=fixE(e);
    <li class=odd>&nbsp;&nbsp;if(e)element=fixElement(e);
    <li>&nbsp;&nbsp;
    <li class=odd>&nbsp;&nbsp;/*********
    <li>&nbsp;&nbsp;var k,s="";
    <li class=odd>&nbsp;&nbsp;for(k in element)s+=k+" : "+element[k]+"&lt;br/&gt;";
    <li>&nbsp;&nbsp;D.getElementById("bbb").innerHTML=s;
    <li class=odd>&nbsp;&nbsp;**********/
    <li>&nbsp;&nbsp;D.getElementById("aaa").innerHTML=element.parentNode.offsetTop+ ","+element.parentNode.offsetHeight;
    <li class=odd>&nbsp;&nbsp;//测试
    <li>
    <li class=odd>&nbsp;&nbsp;if(element.className!="title")return;
    <li>&nbsp;&nbsp;element=element.parentNode;
    <li class=odd>&nbsp;&nbsp;Drag.element=element;
    <li>&nbsp;&nbsp;//以上获得当前移动的模块
    <li class=odd>
    <li>&nbsp;&nbsp;Drag.x=e.layerX?e.layerX+Drag.fx:(IE?e.x+Drag.ix:e.offsetX+Drag.ox);
    <li class=odd>&nbsp;&nbsp;Drag.y=e.layerY?e.layerY+Drag.fy:(IE?e.y+Drag.iy:e.offsetY+Drag.oy);
    <li>&nbsp;&nbsp;//鼠标相对于模块的位置
    <li class=odd>
    <li>&nbsp;&nbsp;Drop.measure();
    <li class=odd>&nbsp;&nbsp;if(e.layerX){Drag.floatIt(e);Drag.drag(e);}//fix FF
    <li>&nbsp;&nbsp;B.style.cursor="move";
    <li class=odd>&nbsp;&nbsp;D.onmousemove=Drag.drag;
    <li>&nbsp;&nbsp;D.ondragstart=function(){window.event.returnValue = false;}
    <li class=odd>&nbsp;&nbsp;D.onselectstart=function(){window.event.returnValue = false;};
    <li>&nbsp;&nbsp;D.onselect=function(){return false};
    <li class=odd>&nbsp;&nbsp;D.onmouseup=element.onmouseup=Drag.dragEnd;
    <li>&nbsp;&nbsp;element.onmousedown=null;
    <li class=odd>&nbsp;},
    <li>&nbsp;drag : function (e){
    <li class=odd>&nbsp;&nbsp;var e;
    <li>&nbsp;&nbsp;e=fixE(e);
    <li class=odd>&nbsp;&nbsp;if(!Drag.fDiv)Drag.floatIt(e);//for IE &amp; Opera
    <li>&nbsp;&nbsp;var x=e.clientX,y=e.clientY;
    <li class=odd>&nbsp;&nbsp;Drag.fDiv.style.top=y+H.scrollTop-Drag.y+"px";
    <li>&nbsp;&nbsp;Drag.fDiv.style.left=x+H.scrollLeft-Drag.x+"px";
    <li class=odd>&nbsp;&nbsp;Drop.drop(x,y);
    <li>&nbsp;&nbsp;//statu(e);
    <li class=odd>&nbsp;},
    <li>&nbsp;dragEnd : function (e){
    <li class=odd>&nbsp;&nbsp;B.style.cursor="";
    <li>&nbsp;&nbsp;D.ondragstart=D.onmousemove=D.onselectstart=D.onselect=D.onmouseup=null;
    <li class=odd>&nbsp;&nbsp;Drag.element.onmousedown=Drag.dragStart;
    <li>&nbsp;&nbsp;if(!Drag.draging)return;
    <li class=odd>&nbsp;&nbsp;Drag.ghost.parentNode.insertBefore(Drag.element,Drag.ghost);
    <li>&nbsp;&nbsp;Drag.ghost.parentNode.removeChild(Drag.ghost);
    <li class=odd>&nbsp;&nbsp;B.removeChild(Drag.fDiv);
    <li>&nbsp;&nbsp;Drag.fDiv=null;
    <li class=odd>&nbsp;&nbsp;Drag.draging=false;
    <li>&nbsp;&nbsp;Drop.init(D[GEI]("container"));
    <li class=odd>&nbsp;},
    <li>&nbsp;floatIt : function(e){
    <li class=odd>&nbsp;&nbsp;var e,element=Drag.element;
    <li>&nbsp;&nbsp;var ghost=D.createElement("LI");
    <li class=odd>&nbsp;&nbsp;Drag.ghost=ghost;
    <li>&nbsp;&nbsp;ghost.className="module ghost";
    <li class=odd>&nbsp;&nbsp;ghost.style.height=element.offsetHeight-2+"px";
    <li>&nbsp;&nbsp;element.parentNode.insertBefore(ghost,element);
    <li class=odd>&nbsp;&nbsp;//创建模块占位框
    <li>
    <li class=odd>&nbsp;&nbsp;var fDiv=D.createElement("UL");
    <li>&nbsp;&nbsp;Drag.fDiv=fDiv;
    <li class=odd>&nbsp;&nbsp;fDiv.className="float";
    <li>&nbsp;&nbsp;B.appendChild(fDiv);
    <li class=odd>&nbsp;&nbsp;fDiv.style.width=ghost.parentNode.offsetWidth+"px";
    <li>&nbsp;&nbsp;fDiv.appendChild(element);
    <li class=odd>&nbsp;&nbsp;//创建容纳模块的浮动层
    <li>
    <li class=odd>&nbsp;&nbsp;Drag.draging=true;
    <li>&nbsp;}
    <li class=odd>}
    <li>
    <li class=odd>var Drop={
    <li>&nbsp;root : null,
    <li class=odd>&nbsp;index : null,
    <li>&nbsp;column : null,
    <li class=odd>&nbsp;init : function(it){
    <li>&nbsp;&nbsp;if(!it)return;
    <li class=odd>&nbsp;&nbsp;Drop.root=it;
    <li>
    <li class=odd>&nbsp;&nbsp;it.firstItem=it.lastItem=null;
    <li>&nbsp;&nbsp;var a=it[GET]("ul");
    <li class=odd>&nbsp;&nbsp;for(var i=0;i&lt;a.length;i++){
    <li>&nbsp;&nbsp;&nbsp;if(a[i].className!="column")continue;
    <li class=odd>&nbsp;&nbsp;&nbsp;if(it.firstItem==null){
    <li>&nbsp;&nbsp;&nbsp;&nbsp;it.firstItem=a[i];
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;a[i].previousItem=null;
    <li>&nbsp;&nbsp;&nbsp;}else{
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;a[i].previousItem=a[i-1];
    <li>&nbsp;&nbsp;&nbsp;&nbsp;a[i-1].nextItem=a[i];
    <li class=odd>&nbsp;&nbsp;&nbsp;}
    <li>&nbsp;&nbsp;&nbsp;a[i].nextItem=null;
    <li class=odd>&nbsp;&nbsp;&nbsp;it.lastItem=a[i];
    <li>&nbsp;&nbsp;&nbsp;a[i].index=i;
    <li class=odd>
    <li>&nbsp;&nbsp;&nbsp;a[i].firstItem=a[i].lastItem=null;
    <li class=odd>&nbsp;&nbsp;&nbsp;var b=a[i][GET]("li");
    <li>&nbsp;&nbsp;&nbsp;for(var j=0;j&lt;b.length;j++){
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;if(b[j].className.indexOf("module")==-1)continue;
    <li>&nbsp;&nbsp;&nbsp;&nbsp;if(a[i].firstItem==null){
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a[i].firstItem=b[j];
    <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;b[j].previousItem=null;
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;}else{
    <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;b[j].previousItem=b[j-1];
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;b[j-1].nextItem=b[j];
    <li>&nbsp;&nbsp;&nbsp;&nbsp;}
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;b[j].nextItem=null;
    <li>&nbsp;&nbsp;&nbsp;&nbsp;a[i].lastItem=b[j];
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;b[j].index=i+","+j;
    <li>&nbsp;&nbsp;&nbsp;}
    <li class=odd>&nbsp;&nbsp;}
    <li>&nbsp;},
    <li class=odd>&nbsp;measure : function(){
    <li>&nbsp;&nbsp;if(!Drop.root)return;
    <li class=odd>&nbsp;&nbsp;var currentColumn=Drop.root.firstItem;
    <li>&nbsp;&nbsp;while(currentColumn){
    <li class=odd>&nbsp;&nbsp;&nbsp;var currentModule=currentColumn.firstItem;
    <li>&nbsp;&nbsp;&nbsp;while(currentModule){
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;currentModule.minY=currentModule.offsetTop;
    <li>&nbsp;&nbsp;&nbsp;&nbsp;currentModule.maxY=currentModule.minY+currentModule.offsetHeight;
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;currentModule=currentModule.nextItem;
    <li>&nbsp;&nbsp;&nbsp;}
    <li class=odd>&nbsp;&nbsp;&nbsp;currentColumn.minX=currentColumn.offsetLeft;
    <li>&nbsp;&nbsp;&nbsp;currentColumn.maxX=currentColumn.minX+currentColumn.offsetWidth;
    <li class=odd>&nbsp;&nbsp;&nbsp;currentColumn=currentColumn.nextItem;
    <li>&nbsp;&nbsp;}
    <li class=odd>&nbsp;&nbsp;Drop.index=Drag.element.index;
    <li>&nbsp;},
    <li class=odd>&nbsp;drop : function(x,y){
    <li>&nbsp;&nbsp;if(!Drop.root)return;
    <li class=odd>&nbsp;&nbsp;var x,y,currentColumn=Drop.root.firstItem;
    <li>&nbsp;&nbsp;while(x&gt;currentColumn.maxX)if(currentColumn.nextItem)currentColumn=currentColumn.nextItem;else break;
    <li class=odd>&nbsp;&nbsp;var currentModule=currentColumn.lastItem;
    <li>&nbsp;&nbsp;if(currentModule)while(y&lt;currentModule.maxY){
    <li class=odd>&nbsp;&nbsp;&nbsp;if(y&gt;currentModule.minY-12){
    <li>&nbsp;&nbsp;&nbsp;&nbsp;if(Drop.index==currentModule.index)return;
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;Drop.index=currentModule.index;
    <li>&nbsp;&nbsp;&nbsp;&nbsp;if(currentModule.index==Drag.element.index){if(currentModule.nextItem)currentModule=currentModule.nextItem;else break;}
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;currentColumn.insertBefore(Drag.ghost,currentModule);
    <li>&nbsp;&nbsp;&nbsp;&nbsp;Drop.column=null;
    <li class=odd>&nbsp;&nbsp;&nbsp;&nbsp;window.status=qq++;
    <li>&nbsp;&nbsp;&nbsp;&nbsp;return;
    <li class=odd>&nbsp;&nbsp;&nbsp;}else if(currentModule.previousItem)currentModule=currentModule.previousItem;else return;
    <li>&nbsp;&nbsp;}
    <li class=odd>&nbsp;&nbsp;if(Drop.column==currentColumn.index)return;
    <li>&nbsp;&nbsp;currentColumn.appendChild(Drag.ghost);
    <li class=odd>&nbsp;&nbsp;Drop.index=0;
    <li>&nbsp;&nbsp;Drop.column=currentColumn.index;
    <li class=odd>&nbsp;&nbsp;window.status=qq++;
    <li>&nbsp;}
    <li class=odd>}
    <li>
    <li class=odd>var webNote={
    <li>&nbsp;obj : null,
    <li class=odd>&nbsp;canEdit : function(e){
    <li>&nbsp;&nbsp;var e,element;
    <li class=odd>&nbsp;&nbsp;e=fixE(e);
    <li>&nbsp;&nbsp;element=fixElement(e);
    <li class=odd>&nbsp;&nbsp;if(element.className!='webNote')return;
    <li>&nbsp;&nbsp;if(typeof element.contentEditable!="undefined"){
    <li class=odd>&nbsp;&nbsp;&nbsp;element.contentEditable=true;
    <li>&nbsp;&nbsp;&nbsp;element.style.borderColor='red';
    <li class=odd>&nbsp;&nbsp;&nbsp;element.focus();
    <li>&nbsp;&nbsp;&nbsp;webNote.obj=element;
    <li class=odd>&nbsp;&nbsp;}
    <li>&nbsp;},
    <li class=odd>&nbsp;cannotEdit : function(){
    <li>&nbsp;&nbsp;if(!webNote.obj)return;
    <li class=odd>&nbsp;&nbsp;if(typeof webNote.obj.contentEditable!="undefined"){
    <li>&nbsp;&nbsp;&nbsp;webNote.obj.style.borderColor='#ffffe0';
    <li class=odd>&nbsp;&nbsp;&nbsp;webNote.obj.contentEditable=false;
    <li>&nbsp;&nbsp;&nbsp;webNote.obj=null;
    <li class=odd>&nbsp;&nbsp;}
    <li>&nbsp;}
    <li class=odd>}
    <li>
    <li class=odd>function fixE(e){var e;e=e?e:(window.event?window.event:null);return e}
    <li>
    <li class=odd>function fixElement(e){var e;return e.target?(e.target.nodeType==3?e.target.parentNode:e.target):e.srcElement;}
    <li>
    <li class=odd>
    <li>onload=function(){
    <li class=odd>&nbsp;B=D[GET]("body")[0];
    <li>&nbsp;H=D[GET]("html")[0];
    <li class=odd>&nbsp;Drop.init(D[GEI]("container"));
    <li>&nbsp;Drag.addEvent();
    <li class=odd>}
    <li>
    <li class=odd>function statu(e){
    <li>&nbsp;var e,element;
    <li class=odd>&nbsp;element=fixElement(e);
    <li>&nbsp;var aa=D.getElementById("aaa");
    <li class=odd>&nbsp;aa.innerHTML="e.xy:("+e.x+","+e.y+")&lt;br/&gt;e.offsetXY:("+e.offsetX+","+e.offsetY+")&lt;br/&gt;e.clientXY:("+e.clientX+","+e.clientY+")&lt;br/&gt;element.offsetLeftTop:("+element.offsetLeft+","+element.offsetTop+")&lt;br/&gt;e.layerXY:("+e.layerX+","+e.layerY+")";
    <li>}
    <li class=odd>
    <li>//--&gt;
    <li class=odd>&lt;/script&gt;
    <li>&lt;style type="text/css"&gt;
    <li class=odd>body,table,td,th,input,textarea,button,select{font:13px/16px Verdana,"宋体",sans-serif;}
    <li>table{border-collapse:collapse;}
    <li class=odd>p{margin:0px;}
    <li>
    <li class=odd>.container{margin:8px;}
    <li>.column{width:33%;margin:0px;padding:0px;float:left;overflow:hidden;}
    <li class=odd>.module{margin:5px;padding:0px;border:1px solid #dcd;position:relative;background-color:white;list-style:none;}
    <li>.title{background-color:#edf;padding:1px 0px;width:100%;overflow:hidden;cursor:move;z-index:0;font-weight:bold;}
    <li class=odd>.cont{padding:3px;overflow:hidden;}
    <li>.hide .cont{display:none;}
    <li class=odd>
    <li>.pageTitle{font-weight:bold;text-align:center;}
    <li class=odd>input.pageTitle{display:none;border:0px;padding:0px;width:100%;}
    <li>.webNote{background-color:#ffffe0;border:1px solid #ffffe0;}
    <li class=odd>textarea.webNote{display:none;overflow:hidden;padding:0px;border:0px;padding:0px;}
    <li>
    <li class=odd>.ghost{border:1px dashed red;}
    <li>.float{position:absolute;z-index:100;margin:0px;padding:0px;overflow:hidden;list-style:none;-moz-opacity:.75;filter:Alpha(opacity=75);}
    <li class=odd>&lt;/style&gt;
    <li>&lt;!--[if IE]&gt;
    <li class=odd>&lt;script type="text/javascript"&gt;
    <li>IE=true;
    <li class=odd>&lt;/script&gt;
    <li>&lt;style type="text/css"&gt;
    <li class=odd>input.pageTitle{margin:-1px;}
    <li>&lt;/style&gt;
    <li class=odd>&lt;![endif]--&gt;
    <li>&lt;![if !IE]&gt;&lt;![endif]&gt;
    <li class=odd>&lt;/head&gt;
    <li>&lt;body&gt;
    <li class=odd>&lt;center&gt;&lt;span class="pageTitle" onclick="with(this.nextSibling){value=this.innerHTML;style.display='block';focus()};this.style.display='none';"&gt;You can input a topic here!&lt;/span&gt;&lt;input class="pageTitle" onblur="with(this.previousSibling){D.title=innerHTML=this.value?this.value:'Demo';style.display='block';};this.style.display='none'" /&gt;&lt;/center&gt;
    <li>
    <li class=odd>&lt;div class="container" id="container"&gt;
    <li>&nbsp;&lt;ul class="column"&gt;
    <li class=odd>&nbsp;&nbsp;&lt;li class="module"&gt;
    <li>&nbsp;&nbsp;&nbsp;&lt;div class="title"&gt;&lt;span onclick="fold()"&gt;+&lt;/span&gt;&nbsp;Coodinate&lt;/div&gt;
    <li class=odd>&nbsp;&nbsp;&nbsp;&lt;div class="cont" id="aaa"&gt;content&lt;/div&gt;
    <li>&nbsp;&nbsp;&lt;/li&gt;
    <li class=odd>&nbsp;&nbsp;&lt;li class="module"&gt;
    <li>&nbsp;&nbsp;&nbsp;&lt;div class="title"&gt;&lt;span onclick="fold()"&gt;+&lt;/span&gt;&nbsp;contentEditable&lt;/div&gt;
    <li class=odd>&nbsp;&nbsp;&nbsp;&lt;div class="cont" onclick="alert('this.contentEditable:'+this.contentEditable)"&gt;click here&lt;/div&gt;
    <li>&nbsp;&nbsp;&lt;/li&gt;
    <li class=odd>&nbsp;&nbsp;&lt;li class="module"&gt;
    <li>&nbsp;&nbsp;&nbsp;&lt;div class="title"&gt;&lt;span onclick="fold()"&gt;+&lt;/span&gt;&nbsp;long long ago&lt;/div&gt;
    <li class=odd>&nbsp;&nbsp;&nbsp;&lt;div class="cont"&gt;有形者 生于无形 无能生有 有归于无&lt;br/&gt;是以 凡所有所相 皆是虚妄&lt;br/&gt;若是能见诸相非相 当知虚非真虚&lt;br/&gt;有生之气 有形之状 尽是幻也&lt;br/&gt;造物之所始 阴阳之所变者 谓之生 谓之死&lt;br/&gt;穷数达变 因形移易者 谓之化 谓之幻&lt;/br&gt;了悟有无 参透虚实 自然遨游天地宇宙 无所阻碍&lt;br/&gt;是谓大幻之道&lt;/div&gt;
    <li>&nbsp;&nbsp;&lt;/li&gt;
    <li class=odd>&nbsp;&lt;/ul&gt;
    <li>&nbsp;&lt;ul class="column"&gt;
    <li class=odd>&nbsp;&nbsp;&lt;li class="module"&gt;
    <li>&nbsp;&nbsp;&nbsp;&lt;div class="title"&gt;&lt;span onclick="fold()"&gt;+&lt;/span&gt;&nbsp;this.parentNode&lt;/div&gt;
    <li class=odd>&nbsp;&nbsp;&nbsp;&lt;div class="cont"&gt;&lt;button onclick="alert(this.parentNode.parentNode.parentNode.innerHTML)"&gt;parentNode&lt;/button&gt;&lt;/div&gt;
    <li>&nbsp;&nbsp;&lt;/li&gt;
    <li class=odd>&nbsp;&nbsp;&lt;li class="module"&gt;
    <li>&nbsp;&nbsp;&nbsp;&lt;div class="title"&gt;&lt;span onclick="fold()"&gt;+&lt;/span&gt;&nbsp;webNote&lt;/div&gt;
    <li class=odd>&nbsp;&nbsp;&nbsp;&lt;div class="cont"&gt;&lt;div class="webNote" onblur="webNote.cannotEdit()" onclick="webNote.canEdit(event)"&gt;You can note something here.&lt;br/&gt;&lt;br/&gt;从前有座山&lt;br/&gt;山里有座庙&lt;/br&gt;庙里有个老和尚讲故事&lt;/div&gt;&lt;textarea class="webNote"&gt;&lt;/textarea&gt;&lt;/div&gt;
    <li>&nbsp;&nbsp;&lt;/li&gt;
    <li class=odd>&nbsp;&nbsp;&lt;li class="module"&gt;
    <li>&nbsp;&nbsp;&nbsp;&lt;div class="title"&gt;&lt;span onclick="fold()"&gt;+&lt;/span&gt;&nbsp;Google&lt;/div&gt;
    <li class=odd>&nbsp;&nbsp;&nbsp;&lt;div class="cont"&gt;&lt;center&gt;&lt;a href="http://www.google.com" style="font:bold 31px/2 Arial;"&gt;Gooooooogle&lt;/a&gt;&lt;/center&gt;&lt;/div&gt;
    <li>&nbsp;&nbsp;&lt;/li&gt;
    <li class=odd>&nbsp;&lt;/ul&gt;
    <li>&nbsp;&lt;ul class="column"&gt;
    <li class=odd>&nbsp;&nbsp;&lt;li class="module"&gt;
    <li>&nbsp;&nbsp;&nbsp;&lt;div class="title"&gt;&lt;span onclick="fold()"&gt;+&lt;/span&gt;&nbsp;pia~~&lt;/div&gt;
    <li class=odd>&nbsp;&nbsp;&nbsp;&lt;div class="cont"&gt;十里平湖霜满天&lt;br/&gt;寸寸青丝愁华年&lt;br/&gt;对月形单忘相护&lt;br/&gt;只羡鸳鸯不羡仙&lt;/div&gt;
    <li>&nbsp;&nbsp;&lt;/li&gt;
    <li class=odd>&nbsp;&nbsp;&lt;li class="module"&gt;
    <li>&nbsp;&nbsp;&nbsp;&lt;div class="title"&gt;&lt;span onclick="fold()"&gt;+&lt;/span&gt;&nbsp;biu~~&lt;/div&gt;
    <li class=odd>&nbsp;&nbsp;&nbsp;&lt;div class="cont"&gt;您好！&lt;br/&gt;主人不在，您可以在biu~的一声后留言&lt;br/&gt;biu~~&lt;/div&gt;
    <li>&nbsp;&nbsp;&lt;/li&gt;
    <li class=odd>&nbsp;&nbsp;&lt;li class="module"&gt;
    <li>&nbsp;&nbsp;&nbsp;&lt;div class="title"&gt;&lt;span onclick="fold()"&gt;+&lt;/span&gt;&nbsp;无话可说&lt;/div&gt;
    <li class=odd>&nbsp;&nbsp;&nbsp;&lt;div class="cont" id="bbb"&gt;吃葡萄不吐葡萄皮&lt;br/&gt;不吃葡萄倒吐葡萄皮&lt;br/&gt;(字数不够,再吃一遍......)&lt;/div&gt;
    <li>&nbsp;&nbsp;&lt;/li&gt;
    <li class=odd>&nbsp;&lt;/ul&gt;
    <li>&lt;/div&gt;
    <li class=odd>
    <li>&lt;div style="font-size:10px;line-height:14px;clear:both;margin:6px 3%;text-align:center;border:1px solid #eee;"&gt;&#169;2006 forfor&lt;/div&gt;
    <li class=odd>&lt;/body&gt;
    <li>&lt;/html&gt; </li>
</ol>
&nbsp;</div>
 <img src ="http://www.blogjava.net/chenlb/aggbug/109737.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenlb/" target="_blank">流浪汗</a> 2007-04-10 21:09 <a href="http://www.blogjava.net/chenlb/articles/109737.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>