http://www.millions.hk/大家帮帮忙,看看这个页面的切换广告的代码怎么写?

解决方案 »

  1.   

    这跟C#有什么关系?是Flash效果,比较大众化的了,如果你想看其中的ActionScript,可以去下载一个相应软件查看(Action Script Viewer)有几年没有学习Flash了,呵呵
      

  2.   

    广告都有50分啊.... 既然是Flash效果.. 那么我帮不到你了.
      

  3.   


    <SCRIPT language=javascript type=text/javascript>
    <!--
    var focus_width=1000//Flash图片宽度
    var focus_height=404//Flash图片高度
    var text_height=0//标题文字高度
    var swf_height = focus_height+text_height//Flash高度=图片高度+文字高度
    /*
    关键:图片、链接、文字传输参数设置;以“|”号分隔
    显示的图片序数以pics图片张数为准,links、texts可以为空或少于pics数
    但可能会导至链接或标题出错
    */
    var pics='images/2.jpg|images/1.jpg|images/3.jpg|images/4.jpg|images/5.jpg'
    var links='Product.asp?id=Par38|Product.asp?id=SP|Product.asp?id=P100|Product.asp?id=P100|Product.asp?id=P100'
    var texts=''
    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="top.swf"><param name="quality" value="high"><param name="bgcolor" value="#000000">');
    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="top.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#000000" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
    document.write('</object>');
    //-->
    </SCRIPT>
      

  4.   

    FLASH可以读取XML及纯文本文档,好象有个LoadVar函数,你把FLASH下载下来,用Action Script View去看他的脚本语言就是了
      

  5.   

    4楼的是一种给Flash传递数据的方法
      

  6.   

    用js写的,网上有很多这样的代码,跟C#没有什么关系,如果读取数据库中的广告的话,就用到C#了,只是单独做这样的效果,用flash做效果,js调用,或者直接调用都可以.