posts - 28,  comments - 13,  trackbacks - 0
          這里有一個例子,是打開和一個圖象大小的窗口,隨圖象大小任意變化,你可以相似發揮。要看更多的請到   http://elove.heha.net  
             
            <SCRIPT   LANGUAGE="JavaScript">  
            var   isNav4,   isIE4;  
            if   (parseInt(navigator.appVersion.charAt(0))   >=   4)   {  
            isNav4   =   (navigator.appName   ==   "Netscape")   ?   1   :   0;  
            isIE4   =   (navigator.appName.indexOf("Microsoft")   !=   -1)   ?   1   :   0;  
            }  
            function   fitWindowSize()   {  
            if   (isNav4)   {  
            window.innerWidth   =   document.layers[0].document.images[0].width;  
            window.innerHeight   =   document.layers[0].document.images[0].height;  
            }  
            if   (isIE4)   {  
            window.resizeTo(500,   500);  
            width   =   500   -   (document.body.clientWidth   -     document.images[0].width);  
            height   =   500   -   (document.body.clientHeight   -     document.images[0].height);  
            window.resizeTo(width,   height);  
                  }  
            }  
            </script>
          posted on 2007-06-14 16:26 Lib 閱讀(617) 評論(0)  編輯  收藏 所屬分類: 網頁特效
          <2025年8月>
          272829303112
          3456789
          10111213141516
          17181920212223
          24252627282930
          31123456



          我的JavaEye博客
          http://lib.javaeye.com


          常用鏈接

          留言簿(2)

          隨筆分類

          文章分類

          FLASH

          Java

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 从江县| 女性| 仙桃市| 霍林郭勒市| 承德市| 顺平县| 马龙县| 衡山县| 千阳县| 孙吴县| 湘潭县| 无极县| 章丘市| 和平县| 南澳县| 永川市| 罗山县| 桑植县| 雷州市| 莱阳市| 景德镇市| 宿州市| 霞浦县| 彰武县| 乐都县| 文山县| 同德县| 辉县市| 久治县| 泰和县| 扬州市| 基隆市| 句容市| 双桥区| 波密县| 本溪市| 沛县| 江永县| 揭西县| 兴文县| 三亚市|