例子 1 、品牌列表 需要一张小图片,还有 jqurey1.3.1 的 js 包
下载地址: jqurey鼠标经过例子 http://xiazai.jb51.net/200907/yuanma/jquery_mouse">
1. Use aptana (IDE) when writing js, and there are jquery code prompts.
Just select jqurey1.3 in code assist.
2. When adding an event to an element, do not add it in html, add it in js.
Don’t write
Write it as: document.getElementById(“id”).onclick = function(){}
3. Strip out js and separate html and js.
In addition to introducing js, no other js code is required in Html.
4. Jqurey selector: basic selector, hierarchical selector, basic filter selector, content filter selector, visibility filter selector, attribute filter selector, child element filter selector, form selector , form object attribute selector
http://xiazai.jb51.net/200907/yuanma/jQuery_xuanzeqi.rar
5. Space problem in the selector
The one with spaces is the sub-selector, the one without spaces is the visibility filter selector
Example 1, the brand list requires a small picture, and the js package of jqurey1.3.1