查看文章 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <link rel="stylesheet" type="text/css" href="http://teckotooling.vicp.net/teckotooling/css/niftyCorners.css"> <script type="text/javascript" src="http://teckotooling.vicp.net/teckotooling/js/niftycube.js"></script> <style type="text/css"> <!-- #box_header{ height:30px; padding:8px auto 8px auto; font-size:17px; color:#fff; font-weight:bold; background-color:#bd7803; position:relative; top:0px; text-align:center; cursor:move; } #box{ width:200px; font-size:15px; padding:0px 5px 5px 0px; background-color:#eaeaea; position:absolute; top:200px; left:200px; text-align:center; cursor:default; } #content { width:100%; padding:5px 0px 5px 0px; position:relative; font-size:20px; color:green; text-align:center; background-color:#FDE3C3; } #content li { list-style-type:none; font-size:15px; margin:1px 0px 1px 0px; } //--> </style> <script language="javascript"> <!--// function drag(header,box){ header.onmousedown=function(a){ var d=document;if(!a)a=window.event; var x=a.layerX?a.layerX:a.offsetX,y=a.layerY?a.layerY:a.offsetY; if(header.setCapture) header.setCapture(); else if(window.captureEvents) window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP); d.onmousemove=function(a){ d.onmouseup=function(){ <div id="box" > </body> |