PIXNET Logo登入

My Source Code

跳到主文

a lonely journey

部落格全站分類:不設分類

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 8月 27 週四 201514:32
  • Javascript string

Javascript 字串處理 (String Operations)
尋找字串(search)
stringObject.search(searchstring)
stringObject.search(尋找的字串)
大小寫必須相符
(繼續閱讀...)
文章標籤

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

  • 個人分類:Javascript
▲top
  • 8月 27 週四 201514:27
  • 表單大全

表單大全
 
1. 長度限制
<script>
function test()
{
if(document.a.b.value.length>50)
{
alert("不能超過50個字符!");
document.a.b.focus();
return false;
}
}
</script>
<form. name=a nsubmit="return test()">
<textarea name="b" cols="40" wrap="VIRTUAL" rows="6"></textarea>
<input type="submit" name="Submit" value="check">
</form>
(繼續閱讀...)
文章標籤

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

  • 個人分類:Javascript
▲top
  • 8月 09 週日 201510:41
  • Javascript 文字click切換

<script language="javascript">
function go() {
x=document.getElementById("aaa")
if (x.innerHTML=='+')
{x.innerHTML='-'}
else
{x.innerHTML='+'}
}
(繼續閱讀...)
文章標籤

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

  • 個人分類:Javascript
▲top
  • 4月 11 週五 201418:35
  • 淡入淡出文字的javacode




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) 人氣(11)

  • 個人分類:Javascript
▲top
1

文章搜尋

Catalog

  • Javascript (4)
  • DW (3)
  • Preference (10)
  • PHP/Mysql (3)
  • ASP (15)
  • CSS (3)
  • Linux (78)
  • 未分類文章 (1)

Article

  • ASP 判斷手機
  • Javascript string
  • VBS STRING
  • 表單大全
  • Javascript 文字click切換
  • ASP 移除 HTML
  • Server.HTMLEncode
  • 判斷要求來源是否來自本地
  • 淡入淡出文字的javacode
  • CSS 超簡單變圖語法