<!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><link rel="Stylesheet" type="text/css" id="MzRotateImage_CSS" href="%C2%D6%BB%BB%B9%E3%B8%E6_files/MzRotateImage.css">
    <meta name="author" content="meizz">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <script type="text/javascript" src="%C2%D6%BB%BB%B9%E3%B8%E6_files/jsframework.js"></script><title>CSDN 轮换广告</title></head><body style="margin: 3px;">
<script type="text/javascript">/*<![CDATA[*/Using("System.Web.UI.WebControls.MzRotateImage");var data = {}
data["-1_1"] = "img: http://zi.csdn.net/no1.280-187.gif; url: http://z.csdn.net/adclick.php?bannerid=395; target: _blank; alt: ;";
data["-1_2"] = "img: http://zi.csdn.net/no2-280_187.gif; url: http://z.csdn.net/adclick.php?bannerid=459; target: _blank; alt: ;";
data["-1_3"] = "img: http://zi.csdn.net/no3.gif; url: http://z.csdn.net/adclick.php?bannerid=401; target: _blank; alt: ;";
data["-1_4"] = "img: http://zi.csdn.net/no4.jpg; url: http://z.csdn.net/adclick.php?bannerid=410; target: _blank; alt: ;";
data["-1_5"] = "img: http://zi.csdn.net/no5.jpg; url: http://z.csdn.net/adclick.php?bannerid=369; target: _blank; alt: ;";
data["-1_6"] = "img: http://zi.csdn.net/no.6.280.187.gif; url: http://z.csdn.net/adclick.php?bannerid=372; target: _blank; alt: ;";var ri = new MzRotateImage();
ri.dataSource = data;
ri.width = 280;
ri.height = 187;
ri.interval = 3000;
ri.duration = 2000;
document.write(ri.render());/*]]>*/</script><div id="MzRotateImage_mz_l" style="width: 280px;" class="MzRotateImage"><div att_mzbehavior_rotate="meizz" id="MzRotateImage_mz_l_ImageBox" class="MzRotateImage_ImageBox" style="overflow: hidden; height: 187px; position: relative; width: 280px;"><div id="MzRotateImage_mz_l_item_0" style="overflow: hidden; width: 280px; height: 187px; clip: rect(auto, auto, auto, auto);"><a href="http://z.csdn.net/adclick.php?bannerid=395" target="_blank"><img alt="" src="%C2%D6%BB%BB%B9%E3%B8%E6_files/no1.gif"></a></div><div id="MzRotateImage_mz_l_item_1" style="overflow: hidden; width: 280px; height: 187px; clip: rect(auto, auto, auto, auto); display: none;"><a href="http://z.csdn.net/adclick.php?bannerid=459" target="_blank"><img alt="" src="%C2%D6%BB%BB%B9%E3%B8%E6_files/no2-280_187.gif"></a></div><div id="MzRotateImage_mz_l_item_2" style="overflow: hidden; width: 280px; height: 187px; clip: rect(auto, auto, auto, auto); display: none;"><a href="http://z.csdn.net/adclick.php?bannerid=401" target="_blank"><img alt="" src="%C2%D6%BB%BB%B9%E3%B8%E6_files/no3.gif"></a></div><div id="MzRotateImage_mz_l_item_3" style="overflow: hidden; width: 280px; height: 187px; clip: rect(auto, auto, auto, auto); display: none;"><a href="http://z.csdn.net/adclick.php?bannerid=410" target="_blank"><img alt="" src="%C2%D6%BB%BB%B9%E3%B8%E6_files/no4.jpg"></a></div><div id="MzRotateImage_mz_l_item_4" style="overflow: hidden; width: 280px; height: 187px; clip: rect(auto, auto, auto, auto); display: none;"><a href="http://z.csdn.net/adclick.php?bannerid=369" target="_blank"><img alt="" src="%C2%D6%BB%BB%B9%E3%B8%E6_files/no5.jpg"></a></div><div id="MzRotateImage_mz_l_item_5" style="overflow: hidden; width: 280px; height: 187px; clip: rect(auto, auto, auto, auto); display: none;"><a href="http://z.csdn.net/adclick.php?bannerid=372" target="_blank"><img alt="" src="%C2%D6%BB%BB%B9%E3%B8%E6_files/no.gif"></a></div></div><div style="width: 280px;" id="MzRotateImage_mz_l_ControlBar" class="MzRotateImage_ControlBar"><input class="active" value="1" type="button"><input class="" value="2" type="button"><input class="" value="3" type="button"><input class="" value="4" type="button"><input class="" value="5" type="button"><input class="" value="6" type="button"></div></div></body></html>

解决方案 »

  1.   


    window.Using = function(namespace, path, rename)
    {
      var N=namespace, C=N.substr(N.lastIndexOf(".")+1), code=N+".";
      if(System._exist(N,path)){window[C]=System._prototypes[N];return}
      if(!/((^|\.)[\w\$]+)+$/.test(N))throw new Error(N+System.NAMESPACE_ERROR);  for(var s,e,i=code.indexOf("."); i>-1; i=code.indexOf(".", i+1)){
      e=code.substring(0,i);s=(e.indexOf(".")==-1)?"window[\""+e+"\"]":e;
      if(e&&"undefined"==typeof(s)){eval(s+"=function(){return "
        +"System._getPrototype(\""+e+"\", arguments)}");}}  if("string"!=typeof System._codebase[N]&&(code=System.load(N,path)))
        System._codebase[N]=code+";\r\nSystem._prototypes['"+
        N+"']=window['"+(rename||C)+"']="+C;code="";
      System._existences[N]=System._mapPath(N, path);  if("string"==typeof (s=System._codebase[N]))try{(new Function(s))()}
      catch(e){System.alert("Syntax error on load "+ N +"\n"+ e.message);}
      //alert(System._codebase[namespace])
    };
    window.Import=function(namespace,path,rename){Using(namespace,path,rename)};
    window.Instance=function(hashCode){return System._instances[hashCode]};
    window.Include=function(namespace, path)
    {
      var N=namespace,code; if(System._exist(N, path)) return;
      if(!/((^|\.)[\w\$]+)+$/.test(N))throw new Error(N+System.NAMESPACE_ERROR);  if("string"!=typeof System._codebase[N])if(System.supportsXmlHttp()
        && (code=System.load(N, path))) System._codebase[N]=code;
      System._existences[N]=System._mapPath(N, path);  var B=("string"==typeof(System._codebase[N]));try{
      if(window.execScript&&B)window.execScript(System._codebase[N]);else
      {
        var s=document.createElement("SCRIPT");s.type="text/javascript";
        if(B)s.innerHTML="eval(System._codebase['"+N+"']);";
        else s.src=System._existences[N]=System._mapPath(N,path);
        document.getElementsByTagName("HEAD")[0].appendChild(s);
        setTimeout(function(){s.parentNode.removeChild(s)},99);}
      }catch(B){System.alert("Syntax error on include "+N+"\n"+B.message);}
    };
    Function.READ=1;Function.WRITE=2;Function.READ_WRITE=3;
    Function.prototype.addProperty=function(name,initValue,r_w)
    {
      var capital=name.charAt(0).toUpperCase()+name.substr(1);
      r_w=r_w||Function.READ_WRITE; name="_"+name; var p=this.prototype;
      if("undefined"!=typeof initValue) p[name]=initValue;
      if(r_w&Function.READ) p["get"+ capital]=function(){return this[name];};
      if(r_w&Function.WRITE) p["set"+ capital]=function(v){this[name]=v;};
    };
    Function.prototype.Extends=function(SuperClass,ClassName)
    {
      var op=this.prototype, i, p=this.prototype=new SuperClass();
      if(ClassName)p._className=ClassName; for(i in op)p[i]=op[i];
      if(p.hashCode)delete System._instances[p.hashCode];return p;
    };
    System._instances={};
    System._prototypes=
    {
      "System":System,
      "System.Object":System,
      "System.Event":System.Event
    };
    System._existences=
    {
      "System":System._mapPath("System"),
      "System.Event":System._mapPath("System.Event"),
      "System.Object":System._mapPath("System.Object")
    };
    t=System.Extends(Object, "System"); System.Object = System;
    t.decontrol=function(){var t;if(t=this.hashCode)delete System._instances[t]};
    t.addEventListeners=function(type, handle)
    {
      if("function"!=typeof handle)
        throw new Error(this+" addEventListener: "+handle+" is not a function");
      if(!this._listeners) this._listeners={};
      var id=System.toHashCode(handle), t=this._listeners; 
      if("object"!=typeof t[type]) t[type]={}; t[type][id]=handle;
    };
    t.removeEventListener=function(type, handle)
    {
      if(!this._listeners)this._listeners={};var t=this._listeners;
      if(!t[type]) return; var id=System.toHashCode(handle);
      if( t[type][id])delete t[type][id];if(t[type])delete t[type];
    };
    t.dispatchEvent=function(evt)
    {
      if(!this._listeners)this._listeners={};
      var i, t =this._listeners, p =evt.type;
      evt.target=evt.srcElement=evt.target||evt.srcElement||this;
      evt.currentTarget=this; if(this[p])this[p](evt);
      if("object"==typeof t[p]) for(i in t[p]) t[p][i].call(null, evt);
      delete evt.target;delete evt.currentTarget;delete evt.srcElement;
      return evt.returnValue;
    };
    t.setHashCode=function()
    {
      System._instances[(this.hashCode=System.getUniqueId())]=this;
    };
    t.getHashCode=function()
    {
      if(!this.hashCode)this.setHashCode(); return this.hashCode;
    };
    t.toString=function(){return "[object "+(this._className||"Object")+"]";};
    System.getType=function(e)
    {
      if("object"!=typeof(e))return typeof(e);
      if("[object Object]"==e)return "object";
      if(/\[object\s+([^\s\]]+)\]/.test(e))return RegExp.$1;
      else return "object";
    };
    System.Event=function(type){this.type=type;};
    t=System.Event.Extends(System,"System.Event");
    t.returnValue=true;t.cancelBubble=false;
    t.target=t.currentTarget=t.srcElement=null;
    t.stopPropagation=function(){this.cancelBubble=true;};
    t.preventDefault =function(){this.returnValue=false;};if(System.ie && !System.debug) Include("System.Plugins.IE");//IE UserData
    if(window.opera) Include("System.Plugins.Opera"); //Opera support
    Include("System.Global");Include("Csdn.Common");
      

  2.   

    js,flash都可以实现,网上这样的代码现在很多,上面贴的也不知道对不对的,自己调试一下看吧
      

  3.   

    焦点图!一个JS文件,一个.swf文件,加上前台调用就行。各大网站都有,可以用。
    我用得是新浪那个,不过缩放以后数字不清楚,不知道什么原因,难道数字不是矢量的?
      

  4.   

    <!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=gb2312" />
    <title>无标题文档</title>
    </head><body>
    <a target=_self href="javascript:goUrl()"> <span class="f14b">
    <script type="text/javascript">
    imgUrl1="images/01.jpg";
    imgtext1="蔬菜广告创意01"
    imgLink1=escape("http://www.makewing.com");
    imgUrl2="images/02.jpg";
    imgtext2="蔬菜广告创意02"
    imgLink2=escape("http://www.makewing.com");
    imgUrl3="images/03.jpg";
    imgtext3="蔬菜广告创意03"
    imgLink3=escape("http://www.makewing.com");
    imgUrl4="images/04.jpg";
    imgtext4="蔬菜广告创意04"
    imgLink4=escape("http://www.makewing.com");
    imgUrl5="images/05.jpg";
    imgtext5="蔬菜广告创意05"
    imgLink5=escape("http://www.makewing.com"); var focus_width=240
     var focus_height=200
     var text_height=18
     var swf_height = focus_height+text_height
     
     var pics=imgUrl1+"|"+imgUrl2+"|"+imgUrl3+"|"+imgUrl4+"|"+imgUrl5
     var links=imgLink1+"|"+imgLink2+"|"+imgLink3+"|"+imgLink4+"|"+imgLink5
     var texts=imgtext1+"|"+imgtext2+"|"+imgtext3+"|"+imgtext4+"|"+imgtext5
     
     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"><param name="movie" value="focus.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');
     document.write('<param name="menu" value="false"><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="pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#F0F0F0" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');  document.write('</object>');
      </script>
    </span></a><span id=focustext class=f14b> </span>
    </body>
    </html>
      

  5.   

    上网搜一下“经典js网页广告特效”
    我好像是在www.51aspx.com里下载的。
      

  6.   

    要简单得化就用个自带的广告控件再加个XML文件即可
      

  7.   

    http://www.csdn.net/ui/adrotate.htm  你的那个列子是静态的如果要更换也很麻烦啊  像这个链接的这样最好  不知道到底怎么弄