小弟学了一下午的vml,写了点东西送给你八卦兔子~~~~~~~~~~~~~~
今天刚刚接触vml,好玩~~~~~~~~~~~~~~
写了点东西送给亲爱的八卦兔子~~~~~~~~~~~~~~~~~~
很简单,大家别笑我~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<html xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<title>woyingjie(沃英杰)</title>
<style>
v\:* {
behavior: url(#default#VML);
}
</style>
<script>
function hohojia(){
woyingjie.style.width=parseInt(woyingjie.style.width)+100;
woyingjie.style.height=parseInt(woyingjie.style.height)+100;
}
function hohojian(){
woyingjie.style.width=parseInt(woyingjie.style.width)-100;
woyingjie.style.height=parseInt(woyingjie.style.height)-100;
}
</script>
</head>
<body style="margin:0px;">
<input type="button" value="放大" onclick="hohojia()" />
<input type="button" value="缩小" onclick="hohojian()" />
<v:group id="woyingjie" style="position:absolute;width:200px;height:200px;"
coordsize="2000,2000">
<v:oval style="width:2000;height:2000;" fillcolor="black" />
<v:arc style="position:relative;top:0;left:0;width:2000;height:2000" fillcolor="white" />
<v:arc style="position:relative;top:0;left:500;width:1000;height:1000" fillcolor="black" />
<v:arc style="position:relative;top:1000;left:500;width:1000;height:1000" startangle="0"
endangle="180" />
<v:oval style="position:relative;top:500;left:1000;width:200;height:200" />
<v:oval style="position:relative;top:1500;left:1000;width:200;height:200" fillcolor="black" />
<v:line from="1000,1000" to="1000,2000" strokeColor="white" />
<v:line from="1000,0" to="1000,1000" strokeColor="black" />
</v:group>
</body>
</html>