欢迎看看用纯粹JS作的Web制图工具,
支持任意多边行/任意曲线的制作地址:www.crossgo.com
支持任意多边行/任意曲线的制作地址:www.crossgo.com
解决方案 »
- js如何获取动态表格的值?
- js编写Flash问题!如何让下段代码变成自己的js,无网络时能在本地运行?(在线等!急)
- 用js如何能判断IE是否加载了ocx控件,例如flash9c.ocx????
- [讨论]如何实现javascript中的事件取消?
- 在ListBox中,如何获得选中的所有项的值?
- 有这么个问题!怎样让上边选择后自动对应到下面的!
- 修改代码,实现onmuseout DIV hidden,50
- 请问这是什么意思
- 求高手帮忙解决一个javascript不大却有点难的问题
- javascript中的this问题
- 【求助】JavaScript测试系统是否已经注册了组件的问题
- 一个输入框变色的效果怎么做?
<head>
<title>背景示例</title>
<style>
v\:* { behavior: url(#default#VML);}
</style>
</head>
<body>
<v:shape style="z-index:50;width:1;height:1;position:absolute;filter='alpha(style=1,opacity=0)'" onmouseover="this.style.filter=''" onmouseout="this.style.filter='alpha(style=1,opacity=0)'" coordsize="1,1" filled="t" fillcolor="#ffffff" strokecolor="blue" path="m 28,385 l 532,463,596,49,113,28,28,385 e">
<v:fill angle=150 type='gradient' color2="669900"/>
</v:shape>
</body>
</html>
<head>
<title>背景示例</title>
<style>
v\:* { behavior: url(#default#VML);}
</style><script>
function addShape() {
var v = document.createElement("v:shape");
v.id = "shp_vml";
v.style.zIndex = 50;
v.style.width = 1;
v.style.height = 1;
v.style.top = "0px";
v.style.left = "0px";
v.style.position = "absolute";
v.coordsize = "1,1";
v.filled = "t";
v.fillcolor="#ffff00";
v.strokecolor="blur";
v.path="m 28,385 l 532,463,190,223,596,49,113,28,28,385 e";//alert(document.getElementByID("shp_vml"));
document.body.appendChild(v);
}
function mk_div1(){//alert(shp_vml);
var obj = document.getElementById("shp_vml");
if(obj){
obj.style.display = 'block';
}}
function hide_div1(){
/*
if(shp_vml){
document.body.removeChild(shp_vml);
}else{
v = document.getElementByID("shp_vml");
//v.style.display = "none";
document.body.removeChild(v);
}
*/
//if(!document.getElementByID("shp_vml")){
//document.body.removeChild(shp_vml);
//}
var obj = document.getElementById("shp_vml");
if(obj){
obj.style.display = 'none';
}
}
</script>
</head><body onload="addShape()"><div><img src="Image/guide.gif" width="710" height="528" border="1" usemap="#Map" />
<map name="Map" id="Map">
<area shape="poly" coords="28,385,532,463,190,223,596,49,113,28" onMouseOver="mk_div1()" onMouseOut="hide_div1()" alt="javascript:alert('hello')" />
<!--
<area shape="poly" coords="596,49,657,157,672,402,532,462,190,223" onMouseOver="mk_div2()" onMouseOut="hide_div2()" alt="hello222" />
-->
</map>
</div><!--
<v:shape style="z-index:50;width:1;height:1;position:absolute" coordsize="1,1" filled="t" fillcolor="#ffffff" strokecolor="blue" path="m 28,385 l 532,463,596,49,113,28,28,385 e">
<v:fill angle=150 type='gradient' color2="669900"/>
</v:shape>
-->
<v:line style="z-index:5;position:absolute;left:200;top:200" to="0,150" strokecolor="red" strokeweight="10px">
<v:Stroke dashstyle="shortdot" endarrow='classic'/>
</v:line></body>
</html>