<%
dim u,b,v
set u=Request.ServerVariables("HTTP_USER_AGENT")
set b=new RegExp
set v=new RegExp

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

Javascript 字串處理 (String Operations)

尋找字串(search)
stringObject.search(searchstring)
stringObject.search(尋找的字串)
大小寫必須相符

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

LEN字串長度函數:計算字串的長度。 函數運算式 結果
len("abcd") 4
len("中文字") 3
len(abc中文) 5

(getdate())

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

表單大全

1. 長度限制
<script>
function test()
{

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

<script language="javascript">
function go() {
x=document.getElementById("aaa")
if (x.innerHTML=='+')
{x.innerHTML='-'}

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

<%

'====

Function stripTags( strToStrip )

'====

Dim objRegExp

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

The following script:

<%

response.write(Server.HTMLEncode("The image tag: <img>"))

%>

Output:

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

<%''判断来源,禁止外部提交
dim server_v1,server_v2
server_v1=Cstr(Request.ServerVariables("HTTP_REFERER"))
server_v2=Cstr(Request.ServerVariables("SERVER_NAME"))
if server_v1="" or instr(server_v1,"发表页面名")<=0 or mid(server_v1,8,len(server_v2))<>server_v2 then

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

Default text; this is the text that 3.x browsers will see. You can have lots of text here instead. Or, you can use a script to write in text only if it's Netscape 4 (you have to do that so that the layer gets some content or the written in text won't show correctly).

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


CSS 超簡單變圖語法




名稱:CSS 超簡單變圖語法語法:CSS / Javascript

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

width 


編輯器的寬度,可以設置px或%,比textarea輸入框樣式表寬度優先度高。


  • 數據類型: String

  • 默認值: textarea輸入框的寬度

  • 示例:

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

    CDO (Collaboration Data Objects) 物件 , 對應程式庫檔案 Cdosys.dll

    提供自動 E-Mail 寄送使用;可應用於 VB, ASP, ASP.Net 等,是簡易的信件寄送方式。

    <%
    strYouEmail = "me@your.com.tw"
    sch = "http://schemas.microsoft.com/cdo/configuration/"

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

    Blog Stats
    ⚠️

    成人內容提醒

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

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