他好像是用FLASH的ACTIONSCRIPT控制外部图片的做法

解决方案 »

  1.   

    人家是flash做的
    不过javascript还真能做出这样的效果来!代码有点长,不想写。。偷懒ing
      

  2.   

    javascript可以写出来。而且不会很长。使用javascript+cssFilters
      

  3.   

    可以把里面的所有链接下载下来研究吧! :-) <script type="text/javascript">
            <!--          var focus_width=389
              var focus_height=136
              var text_height=0
              var swf_height = focus_height+text_height          var pics='http://image2.sina.com.cn/lx/temp/167/idx/2005/0810/U841P8T167D1F4825DT20050810111931.jpg|http://image2.sina.com.cn/lx/temp/167/idx/2005/0804/U841P8T167D1F4827DT20050804103430.jpg|http://image2.sina.com.cn/lx/temp/167/idx/2005/0811/U841P8T167D1F4829DT20050811120530.jpg|http://image2.sina.com.cn/lx/temp/167/idx/2005/0810/U841P8T167D1F4832DT20050810180449.jpg|http://image2.sina.com.cn/lx/temp/167/idx/2005/0810/U841P8T167D1F4833DT20050810181102.jpg'
              var links='http://eladies.sina.com.cn/f/supergirl/index.html|http://eladies.sina.com.cn/z/bjwedding/index.html|http://eladies.sina.com.cn/z/2005qixi/index.html|http://eladies.sina.com.cn/bbs/2005/0810/10031140.html|http://eladies.sina.com.cn/nx/2005/0810/1354180350.html'
              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="http://image2.sina.com.cn/bj/zonghe/pixviewer.swf"><param name="quality" value="high"><param name="bgcolor" value="#ffffff">');
              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="http://image2.sina.com.cn/bj/zonghe/pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#ffffff" 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>
      

  4.   

    如果有时间可以写出来,不过我想大家都没时间,项目都很急,能用现成的就有现成的。如果老板让我做,我就用Flash。客户不会再意是什么语言写的,他只要这种效果而已。
      

  5.   

    简单用flash。要会做flash按扭,按扭控制不同影片剪辑,影片剪辑用百合开窗效果显示图片。
      

  6.   

    这个东东!
    简单!
    到网上都有flash的现成源文件让你下载的
    只需要自己提供几张大小合适的图片就行了嘛!!