主要是那个渐变,有的网站做的很炫,具体哪个网站我忘了,每隔一段时间换一张图片我也会,但只是单纯的换一张,很生硬

解决方案 »

  1.   


    var flash_url = "http://www.55178.cn/images/pixviewer.swf";var imgUrl=new Array();
    var imgLink=new Array();
    var imgText=new Array();var order=new Array("","1","2","3");
    imgLink[1]='http://www.55178.cn/2009/0910/31266.html'; 
    imgUrl[1]='http://www.55178.cn/uploadfile/2009/0910/20090910091531311.jpg';
    imgText[1]='胡锦涛向全国教师致以节日祝贺';
    imgLink[2]='http://www.55178.cn/2009/0909/31238.html'; 
    imgUrl[2]='http://www.55178.cn/uploadfile/2009/0909/20090909055410297.jpg';
    imgText[2]='创业与创新:中国崛起的“核动力”';
    imgLink[3]='http://www.55178.cn/2009/0909/31152.html'; 
    imgUrl[3]='http://www.55178.cn/uploadfile/2009/0909/20090909092357698.jpg';
    imgText[3]='人民日报新大楼设计竞赛落幕 东南大学方案中标';
    var focus_width=312; 
    var focus_height=234; 
    var text_height=30; flash(flash_url, imgLink, imgUrl, imgText, focus_width, focus_height, text_height);
    function flash(flash_url, imgLink, imgUrl, imgText, focus_width, focus_height, text_height) {
    var num = order.length - 1;var xb; 
    var pics=""; 
    var links=""; 
    var texts=""; var swf_height = focus_height+text_height; var j=0; 
    for (i=1;i<=num;i++) { 
    xb=order[i]; 
    if( (imgUrl[xb]!="") && (imgLink[xb]!="") ) { 
    if(j !=0){ 
    pics=pics+"|"; 
    links=links+"|"; 
    texts=texts+"|"; 

    pics=pics+imgUrl[xb]; 
    links=links+imgLink[xb]; 
    texts=texts+imgText[xb]; 
    j++; 
    }
    }
    //alert(pics); 
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
    document.write('<param name="allowScriptAccess" value="sameDomain">');
    document.write('<param name="movie" value="' + flash_url + '">');
    document.write('<param name="quality" value="high">');
    document.write('<param name="bgcolor" value="#DADADA">');
    document.write('<param name="menu" value="false">');
    document.write('<param name="wmode" value="opaque">');
    document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
    document.write('<embed src="' + flash_url + '" wmode="opaque" FlashVars="pics='+pics+'&amp;links='+links+'&amp;texts='+texts+'&amp;borderwidth='+focus_width+'&amp;borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#DADADA" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
    document.write('</object>');
    }
      

  2.   

    http://www.lanrentuku.com/js/p1.html这里很多!你自己去选吧!