Behavior学习笔记(二)

在程序中套用Behavior
Behavior是"style"的成员之一,只要在标签中设定"ID"名称,就可以用Script程序,来设定或改变Behavior
<html>
<head>
       <title>xmllover</title>
       <script language="vbscript">
          sub add_Behavior()
          text1.style.Behavior="url(1,htc)"
          //1.htc见(学习笔记一)
          end sub
       </script>
</head>

<body onload="add_Behavior()">
<center style="font-size:24;cursor:hand">
<p id="text1">我是xmllover我怕谁</p>
<p>--万能五笔就是我--</p>
</center>
</body>
</html>
300*300
  • 没有相关文章
  • 没有评论
 文章首页关于迷茫时代关于我写意人生
版权所有:迷茫时代 All rights reserved   
执行时间:0.00396 秒