图片轮换效果一: 源码: 1、scroll.js function show_selector_menu(select_menu_id){ var select_menu = $(select_menu_id); if( select_menu.style.visibility == "inherit"){ var menu_content = select_menu.firstChild; if(navigator.userAgent.indexOf('MSIE')>=0){ menu_content.style.marginBottom = "0"; var select_menu_height = select_menu.offsetHeight; var timer = setInterval( function(){ var marginb = parseInt(menu_content.style.marginBottom); if( marginb<=parseInt("-"+select_menu_height) ){ menu_content.style.marginBottom = "0"; select_menu.style.visibility = "hidden"; clearInterval(timer); }else{ menu_content.style.marginBottom = (marginb-20)+"px"; } } ,1); }else{ select_menu.style.visibility = "hidden"; } }else{ var menu_content = select_menu.firstChild; if(navigator.userAgent.indexOf('MSIE')>=0){ menu_content.style.marginBottom = "-"+ select_menu.offsetHeight+"px"; var timer = setInterval( function(){ var marginb = parseInt(menu_content.style.marginBottom); if(marginb>=0){ menu_content.style.marginBottom = "0"; clearInterval(timer); }else{ menu_content.style.marginBottom = (marginb+20)+"px"; } } ,1); } selector_is_clicked[select_menu_id] = true; select_menu.style.visibility = "inherit"; } } var showImageIndex = -1; var imageTimer; function showImage(imageIndex) { var flash_img_