一、窗口事件處理 1. onload事件:當(dāng)用戶進(jìn)入頁(yè)面且所有頁(yè)面元素都完成加載時(shí)小作,就會(huì)觸發(fā)onload事件亭姥。 1.1 html代碼: 1.2 ...
一、選擇并轉(zhuǎn)移導(dǎo)航菜單1.html代碼: 2.js代碼: 3.output: 二顾稀、動(dòng)態(tài)的改變菜單1.html代碼: 2.js代碼: 3.outp...
一达罗、打開(kāi)窗口1.html代碼 2.js代碼: 3.output: 二、將不同的內(nèi)容加載進(jìn)窗口中1.html代碼 : 2.js代碼: 三静秆、打開(kāi)多個(gè)...
5.讓多個(gè)鏈接觸發(fā)一個(gè)翻轉(zhuǎn)器
].parentNode',document.images[i].parentNode.tagName)if (document.images[...
一粮揉、創(chuàng)建翻轉(zhuǎn)器 1.A Simple Rollover: html : css: output: 2.A More Effective Roll...
Bingo卡片游戲: 1.html代碼如下: output: 2.script01.css代碼如下: output: 3.script01.js...
一、將腳本放在哪里 腳本可以放在html頁(yè)面的兩個(gè)位置:腳本總是需要包圍在 和 的html標(biāo)簽之間抚笔。1. 和 標(biāo)簽之間(稱為頭腳本)扶认;2. 和 ...