如何用javascript做这样的效果(在线狂等....!!!!!) 他好像是用FLASH的ACTIONSCRIPT控制外部图片的做法 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 人家是flash做的不过javascript还真能做出这样的效果来!代码有点长,不想写。。偷懒ing javascript可以写出来。而且不会很长。使用javascript+cssFilters 可以把里面的所有链接下载下来研究吧! :-) <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> 如果有时间可以写出来,不过我想大家都没时间,项目都很急,能用现成的就有现成的。如果老板让我做,我就用Flash。客户不会再意是什么语言写的,他只要这种效果而已。 简单用flash。要会做flash按扭,按扭控制不同影片剪辑,影片剪辑用百合开窗效果显示图片。 这个东东!简单!到网上都有flash的现成源文件让你下载的只需要自己提供几张大小合适的图片就行了嘛!! 我用javascript+webservice获取省份信息,可是没反应?请教高手了 JQuery 事件bind传入this 怎样用JS向DIV中添加元素,实现自动索引 jsp中,我上传文件,鼠标点击可以下载,却不知道url?? javascript 中怎样使用jsp中声明的变量? 如何在网页上实现全选功能? 终于能上网了,送分了,求一简单正则表达式 这样的效果为什么实现不了? 如何在客户端判断? 特急:怎样判断一个框架中的网页已经"完全"加载????? document.form1.submit()对象不支持此属性或方法 这段简单的JS代码有错,怎么改﹖
不过javascript还真能做出这样的效果来!代码有点长,不想写。。偷懒ing
<!-- 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>
简单!
到网上都有flash的现成源文件让你下载的
只需要自己提供几张大小合适的图片就行了嘛!!