<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"><html xmlns="http://www.111cn.net/1999/xhtml"><head><meta
測試環境(用戶端瀏覽器 ) ie6,ie7, ie8相容模式, ie8 firefox 3.6.8, google chrome 5.0.375.125先來說明兩個函數的標準定義。 elementnode.setattribute(name,value) name 必需。規定要設定的屬性名稱。 value 必需。規定要設定的屬性值。 該方法把指定的屬性設定為指定的值。如果不存在具有指定名稱的屬性,該方法將建立一個新屬性。elementnode.getattribute(name) name
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"><html xmlns="http://www.111cn.net/ 1999/xhtml"><head><meta
// 透明度漸層 function changeopacity() { // 透明度漸層 從1 - 0 漸層時間1000ms var fx = 'opacity', from = 1, to = 0, time = 1000; // 漸層完畢執行的回呼函數 var callback = function() { from = 0; to = 1; new animate(demo, fx, { from: from, to: to, time: time, callback:
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta