摘要:
<!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 http-equiv="Content-Type" content="text/html; charset=gb23 阅读全文
摘要:
<!DOCTYPE HTML><html><head><meta charset="UTF-8"><title>焦点图 - 左右滚动</title><style type="text/css">* { padding: 0; margin: 0; }li { list-style: none; }img { border: none; }body { background: #ecfaff; }.box { width: 470px; height: 150px; ove 阅读全文
摘要:
所有的Web前端同仁对 document.getElementById 都非常熟悉了。开发过程中经常需要用其获取页面id为xx的元素,自从元老级js库Prototype流行后,都喜欢这么简写它function $(id){ return document.getElementById(id); } 用_$(id)代替document.getElementById(id)prototype 中对document.getElementById的定义:function $(){ var elements = new Array(); for (var i = 0; i < arguments. 阅读全文