萬盛學電腦網

 萬盛學電腦網 >> 網絡編程 >> php編程 >> PHP經典特效代碼:數據取得類

PHP經典特效代碼:數據取得類

   1.取得分辨率


<script>document.write("寬為"+screen.Width+"高為"+screen.Height)</script>


2.取得地址欄


<script>document.write(self.location)</script>


3.取得地址欄後參數


<SCRIPT>var add = top.location;


add = add.toString();


document.write (add.substring(add.indexOf("?")+1,add.length));


</SCRIPT>

copyright © 萬盛學電腦網 all rights reserved