亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

img元素onmousemove沒有執行

img元素onmousemove沒有執行

lfz95 2016-02-23 11:26:33
主要代碼如下:<body??onload="remove()"> ????<form?id="form1"?runat="server"> ???????<div?style="font-size:?40px;?text-align:?center;">放款</div> ????????<div?id="bg"></div> ????????<div?class="box"?style="display:none"> ????????????<h2>查看<a?href="#"?class="close">關閉</a></h2> ????????????<div?class="big"?id="big"?> ????????????????<div?id="bigImgDiv"?onmouseover="dragimages=bigImgDiv;drag=1;"?> ????????????????<img?id="bigImg"?src="#"??/></div> ????????????????<div?id="icon"?style="z-index:210;?position:relative"> ????????????????????<a?id="left"?href="#"?style="display:inline-block"?><img?src="/Themes/Images/ImgIcon/left.png"?/></a>? ????????????????????<a?id="magnifying"?href="#"?style="display:inline-block"?><img?src="/Themes/Images/ImgIcon/magnifying39.png"?/></a>? ????????????????????<a?id="zoom"?href="#"?><img?src="/Themes/Images/ImgIcon/zoom29.png"?/></a>? ????????????????????<a?id="rotate"?href="#"?><img?src="/Themes/Images/ImgIcon/rotate.png"?style="width:25px;height:25px;padding:3px"?/></a>? ????????????????????<a?id="rotate2"?href="#"?><img?src="/Themes/Images/ImgIcon/rotate2.png"?style="width:25px;height:25px;padding:3px"?/></a>? ????????????????????<a?id="right"?href="#"?style="display:inline-block"?><img?src="/Themes/Images/ImgIcon/right.png"?/></a>? ????????????????</div> ????????????</div> ??????????? ????????????<div?class="list"> ???????????????? ??????????????? ????????????</div> ????????? ????????</div> ???????<table?border="0"?cellpadding="0"?cellspacing="0"?class="frm"> ????????????<asp:Literal?ID="litForm"?runat="server"></asp:Literal> ????????</table> ??????? ????????<div?class="frmbottom"> ????????????<asp:LinkButton?ID="btnAccept"?runat="server"?class="l-btn"?OnClientClick="return?CheckDataValid('#form1');"?OnClick="btnAccept_Click"><span?class="l-btn-left"> ?????????確?認</span></asp:LinkButton>&nbsp;&nbsp; ????????????<a?class="l-btn"?href="javascript:void(0)"?onclick="OpenClose();"><span?class="l-btn-left">取消</span></a>&nbsp;&nbsp; ?????????????<asp:LinkButton?ID="btnReturn"?runat="server"?class="l-btn"?OnClientClick="return?CheckDataValid('#form1');"?OnClick="btnReturn_Click"><span?class="l-btn-left"> ?????????退?回</span></asp:LinkButton>&nbsp;&nbsp; ????????????? ????????</div> ????</form> </body><script> ???????drag?=?0; ????????move?=?0; ????????function?mousedown()?{ ????????????if?(drag)?{ ????????????????X1?=?window.event.x?-?parseInt(dragimages.style.left); ????????????????Y1?=?window.event.y?-?parseInt(dragimages.style.top); ????????????????dragimages.style.Index?+=?1; ????????????????move?=?1; ????????????} ????????} ????????function?mouseStop()?{ ????????????window.event.returnValue?=?false; ????????} ????????function?mousemove()?{ ????????????if?(move)?{ ????????????????dragimages.style.left?=?window.event.x?-?X1; ????????????????dragimages.style.top?=?window.event.y?-?Y1; ????????????} ????????} ????????function?mouseup()?{ ????????????move?=?0; ????????} ????????function?remove()?{ ????????????document.all.bigImgDiv.onmousemove?=?mousemove; ????????????document.all.bigImgDiv.onmousedown?=?mousedown; ????????????document.all.bigImgDiv.onmouseup?=?mouseup; ????????????document.all.bigImgDiv.ondragstart?=?mouseStop; ????????} </script>
查看完整描述

1 回答

?
慕郎_蓮華

TA貢獻83條經驗 獲得超16個贊

同學代碼 最好格式化下方便其他同學查看,輸入代碼的時候選擇代碼語言,如下圖:

http://img1.sycdn.imooc.com//56cdbe3a0001329e06900848.jpg

查看完整回答
反對 回復 2016-02-24
  • 1 回答
  • 0 關注
  • 2676 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號