<div class="right" style='width: 1575px; height=1000px'>
<div algin="center" id='hiddenPic' style='position:absolute; z-index:1; visibility: hidden; left:200px; top:90px; width:0px; height:0px; '>
<img name='imagehide' id="images2" width="560" src='./images/test.jpg' border='0' onload="return imgzoom(this,600); style="cursor:pointer;" alt=""/></div>
<div colspan="4" algin="center" id='block1' onmouseout='drag=0' onmouseover='dragObj=block1; drag=1;' style='z-index:0; left:200px; top:90px; width:0px; height:0px; position: relative;' class="dragAble">
<img name='imageshow' id="images1" width="560" src='./images/test.jpg' border='0' onload="return imgzoom(this,600); style="cursor:pointer;" alt=""/></div>
</div>
如何用函数读取id=block1的top和left
并更改它注:需符合w3c格式,且兼容FF
<div algin="center" id='hiddenPic' style='position:absolute; z-index:1; visibility: hidden; left:200px; top:90px; width:0px; height:0px; '>
<img name='imagehide' id="images2" width="560" src='./images/test.jpg' border='0' onload="return imgzoom(this,600); style="cursor:pointer;" alt=""/></div>
<div colspan="4" algin="center" id='block1' onmouseout='drag=0' onmouseover='dragObj=block1; drag=1;' style='z-index:0; left:200px; top:90px; width:0px; height:0px; position: relative;' class="dragAble">
<img name='imageshow' id="images1" width="560" src='./images/test.jpg' border='0' onload="return imgzoom(this,600); style="cursor:pointer;" alt=""/></div>
</div>
如何用函数读取id=block1的top和left
并更改它注:需符合w3c格式,且兼容FF
解决方案 »
- jquery如何复制选定的行?
- 怎样 安装windows下的iphone website的环境????
- 关于两段代码链接的问题,谢谢了
- 请大家过来看看
- html标签问题
- 求助:Document.write()问题
- 帮我看看这个<INPUT>有什么问题吗?
- 100分情求救命阿,怎样在网页上面的文本域里填数据,然后按提交,让它添加在下面的td里。
- 急!鼠标移到连接怎么样在一个固定的地方显示连接的描述说明,那里有现成的源代码?
- who can tell me How to deal with file(read and write) in JavaScript just like that in VBscirpt?
- js画面table数据排序
- $.getJSON的url是什么啊?是不是一个json文件啊,怎么换成一个不同域下我自己写的json文件呢
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
$(function () {
alert($("#block1").css("top"));
alert($("#block1").css("left"));
$("#block1").css("top", "150px");
$("#block1").css("left", "450px");
})
</script>
</head>
<body>
<div class="right" style='width: 1575px; height=1000px'>
<div algin="center" id='hiddenPic' style='position: absolute; z-index: 1; visibility: hidden;
left: 200px; top: 90px; width: 0px; height: 0px;'>
<img name='imagehide' id="images2" width="560" src='./images/test.jpg' border='0'
onload="return imgzoom(this,600);" style="cursor: pointer;" alt="" />
</div>
<div colspan="4" algin="center" id='block1' onmouseout='drag=0' onmouseover='dragObj=block1; drag=1;'
style='z-index: 0; left: 200px; top: 90px; width: 0px; height: 0px; position: relative;'
class="dragAble">
<img name='imageshow' id="images1" width="560" src='./images/test.jpg' border='0'
onload="return imgzoom(this,600);" style="cursor: pointer;" alt="" /></div>
</div>
</body>
</html>这样?
这样就行了呀。