请大家帮我看看,谢谢!
---------------------------------------------------------------------------
<html>
<head>
<STYLE>
v\:*{behavior:url(#default#VML);}
</STYLE>
</head>
<script language="javascript">
function ini(){
wPoint(100,200);
}
function wPoint(mapX,mapY){
var theImageX=mapX;
var theImageY=mapY;
var obj_oval = document.createElement("v:oval");
obj_oval.style.position="absolute";
obj_oval.style.left=theImageX;
obj_oval.style.top=theImageY;
obj_oval.style.width=2;
obj_oval.style.height=2;
var obj=document.getElementById("group1");
obj.appendChild(obj_oval);
}
</script>
<body onload="ini()">
<v:group id="group1" style="position:relative;WIDTH:200px;HEIGHT:200px;" coordsize = "2000,2000">
</v:group>
</body>
</html>
6 个解决方案
#1
#2
动态画图??
#3
ie bug?
#4
不明白
#5
前面的定义不对造成的
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<STYLE>
v\:* { BEHAVIOR: url(#default#VML) }
</STYLE>
</head>
<script language="javascript">
function ini(){
wPoint(100,200);
}
function wPoint(mapX,mapY){
var theImageX=mapX;
var theImageY=mapY;
var obj_oval = document.createElement("v:oval");
obj_oval.style.position="absolute";
obj_oval.style.left=theImageX;
obj_oval.style.top=theImageY;
obj_oval.style.width=100;
obj_oval.style.height=100;
var obj=document.getElementById("group1");
obj.appendChild(obj_oval);
}
</script>
<body onload="ini()">
<v:group id="group1" style="position:relative;WIDTH:200px;HEIGHT:200px;" coordsize = "2000,2000">
</v:group>
</body>
</html>
#6
应该是少了
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns:v="urn:schemas-microsoft-com:vml">
这个吧
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns:v="urn:schemas-microsoft-com:vml">
这个吧
#1
#2
动态画图??
#3
ie bug?
#4
不明白
#5
前面的定义不对造成的
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<STYLE>
v\:* { BEHAVIOR: url(#default#VML) }
</STYLE>
</head>
<script language="javascript">
function ini(){
wPoint(100,200);
}
function wPoint(mapX,mapY){
var theImageX=mapX;
var theImageY=mapY;
var obj_oval = document.createElement("v:oval");
obj_oval.style.position="absolute";
obj_oval.style.left=theImageX;
obj_oval.style.top=theImageY;
obj_oval.style.width=100;
obj_oval.style.height=100;
var obj=document.getElementById("group1");
obj.appendChild(obj_oval);
}
</script>
<body onload="ini()">
<v:group id="group1" style="position:relative;WIDTH:200px;HEIGHT:200px;" coordsize = "2000,2000">
</v:group>
</body>
</html>
#6
应该是少了
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns:v="urn:schemas-microsoft-com:vml">
这个吧
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns:v="urn:schemas-microsoft-com:vml">
这个吧