Template:我的模板

From 2008.igem.org

(Difference between revisions)
(New page: 111111111111122222222222222222111111)
 
(One intermediate revision not shown)
Line 1: Line 1:
-
111111111111122222222222222222111111
+
<html>
 +
<
 +
<table width="672" height="170" border="0" align="center">
 +
  <tr>
 +
    <td width="156"><img src="" alt="" width="156" height="163" align="top"></td>
 +
    <td width="465"><div style="width:140px; height:140px; background-color:pink; cursor:pointer;" id="divBlock" onMouseDown="divBlock_event_mousedown(arguments[0]);"><img src="https://static.igem.org/mediawiki/2008/0/01/Tjumainpage.jpg" width="498" height="151" align="middle"></div>
 +
        <script>
 +
function divBlock_event_mousedown(e){
 +
var e, obj, temp;
 +
obj=document.getElementById("divBlock");
 +
e=window.event?window.event:e;
 +
obj.startX=e.clientX-obj.offsetLeft;
 +
obj.startY=e.clientY-obj.offsetTop;
 +
document.onmousemove=document_event_mousemove;
 +
temp=document.attachEvent?document.attachEvent("onmouseup",document_event_mouseup):document.addEventListener("mouseup",document_event_mouseup,"");
 +
}
 +
function document_event_mousemove(e){
 +
var e, obj;
 +
obj=document.getElementById("divBlock");
 +
e=window.event?window.event:e;
 +
with(obj.style){
 +
position="absolute";
 +
left=e.clientX-obj.startX+"px";
 +
top=e.clientY-obj.startY+"px";
 +
}
 +
}
 +
function document_event_mouseup(e){
 +
var temp;
 +
document.onmousemove="";
 +
temp=document.detachEvent?document.detachEvent("onmouseup",document_event_mouseup):document.removeEventListener("mouseup",document_event_mouseup,"");
 +
}
 +
  </script>
 +
      &nbsp;</td>
 +
  </tr>
 +
</table>
 +
</body>
 +
</html>

Latest revision as of 05:41, 19 October 2008

<