假設現在我有個網頁,網址是:http://functionlab.org:80/tools/tcpproxy.php?user=FUNction#showscript
如果這網頁上有以下JavaScript 程式碼
<script type="text/javascript">
    //http://www.w3schools.com/htmldom/dom_obj_location.asp 
    document.write("location.href : "+location.href+"<br/>");
    document.write("location.protocol : "+location.protocol+"<br/>");
    document.write("location.hostname : "+location.hostname+"<br/>");
    document.write("location.host : "+location.host+"<br/>");
    document.write("location.port : "+location.port+"<br/>");
    document.write("location.pathname : "+location.pathname+"<br/>");
    document.write("location.search : "+location.search+"<br/>");
    document.write("location.hash : "+location.hash+"<br/>");
</script>

avrilnote 發表在 痞客邦 留言(0) 人氣()

細說HTML元素的ID和Name屬性的區別
可以說幾乎每個做過Web開發的人都問過,到底元素的ID和Name有什麼區別阿?為什麼有了ID還要有Name呢?!
而同樣我們也可以得到最classical的答案:ID就像是一個人的身份證號碼,而Name就像是他的名字,ID顯然是唯一的,而Name是可以重複的。
  上周我也遇到了ID和Name的問題,在頁面裡輸入了一個input type="hidden",只寫了一個ID='SliceInfo',賦值後submit,在後台用 Request.Params["SliceInfo"]卻怎麼也去不到值。後來恍然大悟因該用Name來標示,於是在input裡加了個 Name='SliceInfo',就一切ok了。

avrilnote 發表在 痞客邦 留言(1) 人氣()

Doctype 基本屬性比較
Doctype 很容易會影響Layout上的表現,很多設計師為了方便直接地把Doctype刪除。可是這樣子是不能通過W3C的檢測。可是用上Doctype又做不到想要的東西。在這裡先說明一下doctype和常用的屬性通用性。
!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

avrilnote 發表在 痞客邦 留言(0) 人氣()

跑馬燈:
<marquee loop="-1" direction="left" scrollamount="2" onmouseover="this.stop();" onmouseout="this.start();">
 loop=-1 持續
 direction 方位
 scrollamount 速度

avrilnote 發表在 痞客邦 留言(0) 人氣()

Error: the XML response that was returned from the server is invalid.
Received:
You have whitespace in your response.
首先要檢查的是 <?php ....?> 的 <> 前後有沒有空白字元。包含"換行"、"tab"....等字元都算,

avrilnote 發表在 痞客邦 留言(0) 人氣()

« 1 2 3 4 5
Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。