ie6-vml-mouseover.html 708 B

12345678910111213141516171819202122232425
  1. <html>
  2. <body>
  3. <xml:namespace ns="urn:schemas-microsoft-com:vml" prefix="v" />
  4. <!-- Include the VML behavior -->
  5. <style>v\: * { behavior:url(#default#VML); display:inline-block }</style>
  6. <!--p-->
  7. <v:shape id="rect01" style="HEIGHT:50px; LEFT:1px; TOP:1px; WIDTH:50px"
  8. coordsize = "200,200" fillcolor = "green" strokecolor = "green"
  9. path = "m1,1l1,200,200,200,200,1xe"/>
  10. <!--/p-->
  11. <script language="JavaScript" type="text/javascript">
  12. <!--
  13. //document.getElementById("rect01").onmouseover = Change;
  14. function Change() {
  15. rect01.fillColor = (rect01.fillColor == "red") ? "green" :
  16. (rect01.fillColor == "green") ? "blue" : "red";
  17. }
  18. -->
  19. </script>
  20. </body>
  21. </html>