亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

素顏
Follow

After following, you can keep track of his dynamic information in a timely manner

Course notes
  • Courses in the relevant section:CSS DOM dynamic styling

    <img id="img1" src="/upload/course/000/000/009/580af7f52278b486.jpg" /> <script type="text/javascript"> //網(wǎng)頁加載完成 window.onload = init; function init() { //獲取id=img01的圖片對象 var imgObj = document.getElementById("img1"); //給<img>標(biāo)記添加行內(nèi)樣式 imgObj.style.width = "400px"; imgObj.style.border = "2px solid red"; imgObj.style.padding = "20px 30px"; imgObj.style.backgroundColor = "#f0f0f0"; } </script>

    2016-11-250個(gè)贊

  • Courses in the relevant section:Event object in DOM

    type:當(dāng)前的事件類型 clientX和clientY:距離窗口左邊和上邊的距離 pageX和pageY:距離網(wǎng)頁左邊和上邊的距離 screenX和screenY:距離屏幕左邊和上邊的距離

    2016-11-250個(gè)贊

  • Courses in the relevant section:form object

    name:表單的名稱,主要用來讓JS來控制表單。 action:表單的數(shù)據(jù)處理程序(PHP文件)。 method:表單的提交方式,取值:GET、POST enctype:表單數(shù)據(jù)的編碼方式。

    2016-11-250個(gè)贊

  • Courses in the relevant section:Summary of submission and verification methods

    button按鈕(普通按鈕),結(jié)合submit()方法,實(shí)現(xiàn)表單驗(yàn)證提交 <input type="button" value="提交按鈕" onclick="checkForm()" /> <script> function checkForm(){ if(document.form1.username.value.length == 0){ //如果用戶名為空 window.alert("用戶名不能為空!"); }else{ //如果驗(yàn)證通過,提交表單 window.alert("驗(yàn)證通過!"); //表單提交方法 document.form1.submit(); } } </script>

    2016-11-250個(gè)贊

  • Courses in the relevant section:input object

    focus():獲得焦點(diǎn)的方法(定位光標(biāo))。 blur():失去焦點(diǎn)的方法(移走光標(biāo))。 select():選中文本的方法。 onfocus:當(dāng)獲得焦點(diǎn)時(shí) onblur:當(dāng)失去焦點(diǎn)時(shí)

    2016-11-250個(gè)贊

  • Courses in the relevant section:select object

    options[]:設(shè)置或返回下拉列表中<option>標(biāo)記構(gòu)成的數(shù)組。 selectedIndex:設(shè)置或選中指定<option>的索引號(hào)。 length:指定下拉列表中<option>標(biāo)記的個(gè)數(shù)。 name:元素名稱。

    2016-11-250個(gè)贊

  • Courses in the relevant section:jQuery events

    click 鼠標(biāo)點(diǎn)擊時(shí)觸發(fā)此事件 keypress 鍵盤上的鍵被按下再次釋放時(shí)觸發(fā) submit 表單被提交時(shí)觸發(fā) load 頁面加載完觸發(fā) dblclick 鼠標(biāo)雙擊是觸發(fā) keydown 鍵盤上的鍵被按下時(shí)觸發(fā) change 當(dāng)前元素失去焦點(diǎn)并且元素內(nèi)容發(fā)生改變時(shí)觸發(fā) resize 瀏覽器窗口大小被改變時(shí)觸發(fā) mouseenter 添加/觸發(fā) mouseenter 事件 keyup 鍵盤上的鍵被按下后松開時(shí)觸發(fā) focus 當(dāng)某個(gè)元素失去焦點(diǎn)時(shí)觸發(fā) scroll 添加/觸發(fā) scroll 事件 mouseleave 添加/觸發(fā) mouseleave 事件 blur 添加/觸發(fā) blur 事件

    2016-11-230個(gè)贊