图片拖动效果 记住中心位置,每次拖动,ajax技术去load相应比例的地图,并设置中心位置为上次的位置,如果没有相应的比例尺,就显示空图。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用onmovestart,onmoveend给你一个例子,希望对你有帮助<HTML><HEAD><TITLE>Editing events sample page</TITLE><SCRIPT>document.execCommand("2D-position",false,true);function fnHandleMoveStart() {var oDiv = event.srcElementoDiv.style.backgroundColor = "green";oDiv.innerText = "I Started Moving";}function fnHandleMoveEnd() {var oDiv = event.srcElementoDiv.style.backgroundColor = "red";oDiv.innerText = "I Stopped";}</SCRIPT></HEAD><BODY onmovestart="fnHandleMoveStart();" onmoveend="fnHandleMoveEnd();"><DIV CONTENTEDITABLE="true"><DIV style="width:300px;height:100px; color:white; background-color:red;position:absolute;">My DIV</DIV></DIV></BODY></HTML> THK lihui_shine(浪尖赏花)这个效果试过了,不是我想要的效果. JQuery表单验证插件EasyValidator,超级简单,隆重推荐! 怎样能快速提高javascript 关于js读取xml兼容foxfire的问题 使用函数生成对象后,为什么无法调用。 地圖問題--有興趣的近來 DHTML 和 Javascript 是什么关系 求高手分析苹果这个js特效原理? 怎么样鉴别字符和数字?!有请高手! 关于Tab次序的一个奇怪问题 如何用 javascript 让自动计算机注销? 非常不好解决的js,两数相加,为什么不得正确的值? JavaScript中是否有类似VB中doevents的方法
给你一个例子,希望对你有帮助<HTML>
<HEAD>
<TITLE>Editing events sample page</TITLE>
<SCRIPT>
document.execCommand("2D-position",false,true);
function fnHandleMoveStart() {
var oDiv = event.srcElement
oDiv.style.backgroundColor = "green";
oDiv.innerText = "I Started Moving";
}
function fnHandleMoveEnd() {
var oDiv = event.srcElement
oDiv.style.backgroundColor = "red";
oDiv.innerText = "I Stopped";
}
</SCRIPT>
</HEAD>
<BODY onmovestart="fnHandleMoveStart();" onmoveend="fnHandleMoveEnd();">
<DIV CONTENTEDITABLE="true">
<DIV style="width:300px;height:100px; color:white; background-color:red;
position:absolute;">
My DIV</DIV>
</DIV>
</BODY>
</HTML>
这个效果试过了,不是我想要的效果.