同桌上课用手指进去了好爽_欧美丰满熟妇xxⅹⅹ性大i_成人av天天日天天拍拍_猛男gay帅男gay男男同志_欧美va天堂在线观看_人妻无码av中文系列三里桃花_亚欧免费无码在线观看_久久久精品国产亚洲av水_日韩在线免费看污污污_2021无码专区人妻系列日韩

首頁(yè) 優(yōu)化推廣 常用網(wǎng)頁(yè)js腳本收集

常用網(wǎng)頁(yè)js腳本收集

來(lái)源: | 時(shí)間:2013/8/28 14:45:10 |

1.文本框焦點(diǎn)問(wèn)題 onBlur:當(dāng)失去輸入焦點(diǎn)后產(chǎn)生該事件 onFocus:當(dāng)輸入獲得焦點(diǎn)后,產(chǎn)生該文件 Onchange:當(dāng)文字值改變時(shí),產(chǎn)生該事件 OnSelect:當(dāng)文字加亮后,產(chǎn)生該文件 <input type="text" value="無(wú)憂之源" onfocus="if(value=='無(wú)憂之源') {value=''}" onblur="if (value=='') {value='無(wú)憂之源'}">

點(diǎn)擊時(shí)文字消失,失去焦點(diǎn)時(shí)文字再出現(xiàn) 2.網(wǎng)頁(yè)按鈕的特殊顏色 <input type=button name="Submit1" value="無(wú)憂之源" size=10 class=s02 style="background-color:rgb(235,207,22)">

3.鼠標(biāo)移入移出時(shí)顏色變化 <input type="submit" value="找吧" name="B1" onMouseOut=this.style.color="blue" onMouseOver=this.style.color="red"  class="button">

4.平面按鈕 <input type=submit value=訂閱 style="border:1px solid :#666666; height:17px; width:25pt; font-size:9pt; BACKGROUND-COLOR: #E8E8FF; color:#666666" name="submit">

5.按鈕顏色變化 <input type=text name="nick"  style="border:1px solid #666666;  font-size:9pt;  height:17px; BACKGROUND-COLOR: #F4F4FF; color:#ff6600" size="15" maxlength="16">

6.平面輸入框 <input type="text" name="T1" size="20" style="border-style: solid; border-width: 1">

7.使窗口變成指定的大小 <script>

window.resizeTo(300,283);

</script>

8.使文字上下滾動(dòng) <marquee direction=up scrollamount=1 scrolldelay=100 onmouseover='this.stop()' onmouseout='this.start()' height=60>

<!-- head_scrolltext -->

<tr>

<td>

Asp.net源碼下載專業(yè)站

</td>

</tr>

</table>

        <!-- end head_scrolltext -->

</marquee>

9.狀態(tài)欄顯示該頁(yè)狀態(tài) <base onmouseover="window.status='網(wǎng)站建設(shè) http://www.51aspx.com/' ;return true">

10.可以點(diǎn)擊文字實(shí)現(xiàn)radio選項(xiàng)的選定 <br> <input type="radio" name="regtype" value="A03" id="A03"> <label for="A03"> Asp.net源碼下載專業(yè)站 : 一次注冊(cè)兩個(gè)帳戶</label> <br> 11.可以在文字域的font寫(xiě)onclick事件 12.打印</a>打印網(wǎng)頁(yè) <a href='javascript:window.print ()'>

13.線型輸入框 <input type="text" name="key"  size="12" value="關(guān)鍵字" onFocus=this.Select() onMouseOver=this.focus() class="line">

14.顯示文檔最后修改日期

<script language=javascript>

function hi(str)

{

document.write(document.lastModified)

alert("hi"+str+"!")

}

</script>

15.可以在鼠標(biāo)移到文字上時(shí)就觸發(fā)事件 <html>

<head>

<script language="LiveScript">

<!-- Hiding

     function hello() {

       alert("哈羅!");

     }

</script>

</head>

<body>

<a href="" onMouseOver="hello()">link</a>

</body>

</html>

16.可以根據(jù)網(wǎng)頁(yè)上的選項(xiàng)來(lái)確定頁(yè)面顏色

<HTML>

<HEAD>

<TITLE>background.html</TITLE>

</HEAD>

<SCRIPT>

<!--

function bgChange(selObj) {

newColor = selObj.options[selObj.SelectedIndex].text;

document.bgColor = newColor;

selObj.SelectedIndex = -1;

}

//-->

</SCRIPT>

<BODY STYLE="font-family:Arial">

<B>Changing Background Colors</B>

<BR>

<FORM>

  <SELECT SIZE="8" onChange="bgChange(this);">

  <OPTION>Red

  <OPTION>Orange

  <OPTION>Yellow

  <OPTION>Green

  <OPTION>Blue

  <OPTION>Indigo

  <OPTION>Violet

  <OPTION>White

<OPTION>pink

  </SELECT>

</FORM>

</BODY>

</HTML>

17.將按鈕的特征改變

<style type="text/CSS">

<!--

.style1 { font-size: 12px; background: #CCCCFF; border-width: thin thin thin thin; border-color: #CCCCFF

#CCCCCC #CCCCCC #CCCCFF}

.style2 { font-size: 12px; font-weight: bold; background: #CCFFCC; border-width: thin medium medium thin;

border-color: #CCFF99 #999999 #999999 #CCFF99}

-->

</style>

  

本例按鈕的代碼如下: <input type="submit" name="Submit" value="提 交" onmouseover="this.className='style2'" onmouseout="this.className='style1'" class="style1">

18.改變按鈕的圖片.

<style type="text/css">

<!--

.style3 { font-size: 12px; background: url(image/buttonbg1.gif); border: 0px; width: 60px; height: 22px}

.style4 { font-size: 12px; font-weight: bold; background: url(image/buttonbg2.gif); border: 0px 0; width:

60px; height: 22px}

-->

</style>

  

本例的按鈕代碼如下:

<input type="submit" name="Submit2" value="提 交" onmouseover="this.className='style4'"

onmouseout="this.className='style3'" class="style3">

19.打印頁(yè)面 <div align="center"><a class=content href="javascript:doPrint();">打印本稿</a></div>

20.可以直接寫(xiě)html語(yǔ)言 document.write(""); 21.改變下拉框的顏色

<Select name="classid" onChange="changelocation(document.myform.classid.options[document.myform.classid.SelectedIndex].value)"

size="1" style="color:#008080;font-size: 9pt">

22.轉(zhuǎn)至目標(biāo)URL window.location="http://www.51aspx.com"

23.傳遞該object的form UpdateSN('51aspx99267',this.form)

function UpdateSN(strValue,strForm)

{

  strForm.SignInName.value = strValue;

  return false;

}

24.文字標(biāo)簽 <label for="AltName4"><input name="AltName" type="RADIO" tabindex="931"  id="AltName4" >51aspx</label>

25.layer2為組件的ID,可以控制組件是否可見(jiàn) document.all.item('Layer2').style.display = "block";

document.all.item('Layer2').style.display = "none";//

26.將頁(yè)面加入favorite中 <script language=javascript>

服務(wù)熱線

153 8323 9821

功能和特性

價(jià)格和優(yōu)惠

網(wǎng)站和維護(hù)

推廣和優(yōu)化

微信服務(wù)號(hào)