你把http://youa.baidu.com/content/index.html中的script代码取出来研究一下:
......
var container=G("yslider");var slider=new PicSlide({container:container,pics:container.getElementsByTagName("p"),pages:container.getElementsByTagName("li"),interval:5000,eventType:"mouseover",effect:"fade"});slider.run();var container1=$("pasale");
var slider1=new PicSlide({container:container1,pics:Dom.getElementsByClassName("bbp-content",container1)[0].getElementsByTagName("div"),pages:Dom.getElementsByClassName("bbp-nav",container1)[0].getElementsByTagName("li"),interval:5000,eventType:"mouseover"});slider1.run();
var tabview2=new TabView({"TAB_DEACTIVE_CN":"","eventDelay":0});
var nav=Dom.getElementsByClassName("mobile-selected",G("instantcard"))[0],bd=Dom.getElementsByClassName("bd",G("instantcard"))[0];
var tabnodes2=nav.getElementsByTagName("li"),tabcontent2=bd.getElementsByTagName("div");......