秋風(fēng)的蕭瑟 又見湖邊木葉飛

          歡迎來到梁良 | LonBlog,這里記錄下了我生活點點滴滴。

          [ZT]用JavaScript修改CSS屬性

          <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
          <html>
          <head>
          <title>
          exmpall
          </title>
          <meta content="text/html; charset=utf-8" http-equiv="content-type"/>
          <STYLE type="text/css">
          div{
          padding: 0;
          margin: 0;
          position: absolute;
          left:200px; /*左邊*/
          top:0;   /*上面*/
          display: none;
          width: 180px;
          height: 150px;
          border-style: solid;
          border-color: #E6C963;
          border-width: thin;
          }
          </STYLE>
          <SCRIPT TYPE="text/javascript">
          <!--
          function myfunction1()
          {
          var my=document.getElementById("chenyi");
          my.style.position = "absolute";
          my.style.top = "50px";   /*上面*/
          my.style.display = "inline";
          my.style.backgroundColor = "#E4A17C";
          }

          function myfunction2()
          {
          var my=document.getElementById("chenyi");
          my.style.position = "absolute";
          my.style.top = "150px";   /*上面*/
          my.style.display = "inline";
          my.style.backgroundColor = "#A3935F";
          }

          function myfunction3()
          {
          var my=document.getElementById("chenyi");
          my.style.position = "absolute";
          my.style.top = "200px";   /*上面*/
          my.style.display = "inline";
          my.style.backgroundColor = "#79851A";
          }

          function myfunction4()
          {
          var my=document.getElementById("chenyi");
          my.style.position = "absolute";
          my.style.top = "300px";   /*上面*/
          my.style.display = "inline";
          my.style.backgroundColor = "#ACACA9";
          }

          function myfunction5()
          {
          var my=document.getElementById("chenyi");
          my.style.position = "absolute";
          my.style.top = "400px";   /*上面*/
          my.style.display = "inline";
          my.style.backgroundColor = "#B38DD9";
          }
          // -->
          </SCRIPT>
          </head>

          <body>
          <FORM method="post" action="">
          <br /><br />
          <INPUT name="text1" type="text" onmouseover="myfunction1()"><br /><br /><br /><br />
          <INPUT name="text2" type="text" onmouseover="myfunction2()"><br /><br /><br /><br />
          <INPUT name="text3" type="text" onmouseover="myfunction3()"><br /><br /><br /><br />
          <INPUT name="text4" type="text" onmouseover="myfunction4()"><br /><br /><br /><br />
          <INPUT name="text5" type="text" onmouseover="myfunction5()"><br /><br />
          </FORM>
          <div id="chenyi">
          <ol>
          <li><a >高興</a></li>
          <li>php</li>
          <li>asp.net</li>
          <li>javaEE</li>
          <li>javascript</li>
          </ol>
          </div>
          </body>
          </html>

          posted on 2010-08-06 22:44 梁良 閱讀(592) 評論(0)  編輯  收藏 所屬分類: JavaScriptCSS HTML

          <2010年8月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          2930311234

          導(dǎo)航

          公告

              歡迎光臨

          常用鏈接

          隨筆分類

          隨筆檔案

          相冊

          .我的網(wǎng)站.

          友情博客

          開源社區(qū)

          科技博客

          資料網(wǎng)站

          最新隨筆

          搜索

          最新評論

          閱讀排行榜

          Powered by:
          LonLeung
          Copyright © 梁良

          本頁生成時間:毫秒

          主站蜘蛛池模板: 徐水县| 伊川县| 肇庆市| 郑州市| 奇台县| 平顶山市| 阜新市| 甘洛县| 图们市| 万山特区| 磴口县| 阳春市| 沾益县| 巫溪县| 南川市| 平邑县| 蚌埠市| 五原县| 永昌县| 自贡市| 平湖市| 彭阳县| 台山市| 巴彦淖尔市| 房产| 梧州市| 河北省| 天柱县| 柳林县| 红原县| 马边| 漳浦县| 安仁县| 忻州市| 安达市| 长汀县| 岱山县| 泰和县| 新昌县| 莆田市| 上饶县|