var focus_width=281; var focus_height=192; var text_height=0; var swf_height = focus_height+text_height; var curhref=document.location.href; //----当前播放器所在位置
var pics='http://image2.sina.com.cn/ent/U487P28T140D1F2826DT20060810104246.jpg|http://image2.sina.com.cn/ent/U487P28T140D1F2890DT20060810110446.JPG|http://image2.sina.com.cn/ent/U487P28T140D1F2894DT20060810114141.JPG|http://image2.sina.com.cn/ent/U487P28T140D1F2896DT20060810110446.jpg|http://image2.sina.com.cn/ent/U92P28T140D1F2892DT20060809180713.JPG'; var links='http://ent.sina.com.cn/m/c/2006-08-10/09511194509.html|http://ent.sina.com.cn/m/c/p/2006-08-10/10311194627.html|http://ent.sina.com.cn/y/2006-08-10/10161194612.html|http://ent.sina.com.cn/y/p/2006-08-10/10151194610.html|http://ent.sina.com.cn/y/2006-08-09/14381192963.html'; var texts='||||';
var focus_width=262 var focus_height=210 var text_height=20 var swf_height = focus_height+text_height
var pics='http://image2.sina.com.cn/jc/74/2006/0210/U1335P27T74D43F1127DT20060810074359.jpg|http://image2.sina.com.cn/jc/74/2006/0210/U1335P27T74D43F1129DT20060810092133.jpg|http://image2.sina.com.cn/jc/74/2006/0210/U1335P27T74D43F1131DT20060810095642.jpg|http://image2.sina.com.cn/jc/74/2006/0210/U1335P27T74D43F1133DT20060809094742.jpg|http://image2.sina.com.cn/jc/74/2006/0210/U1220P27T74D43F1135DT20060810123858.jpg' var links='http://jczs.news.sina.com.cn/p/2006-08-10/0727389508.html|http://jczs.news.sina.com.cn/p/2006-08-10/0807389563.html|http://jczs.news.sina.com.cn/p/2006-08-10/0948389607.html|http://jczs.news.sina.com.cn/p/2006-08-09/0844389401.html|http://jczs.news.sina.com.cn/fans/index.shtml' var texts='国产新型警用38MM枪挂式榴弹发射器|日防卫报告要求中国提高军事透明度|美单兵装备成本2.6万品类众多达百种|中国两栖侦察队女兵王姣训练纪实|我为军魔:俄远东地区战略轰炸机值班'
http://www.jxxg.com/blog/dh20156_369/article.asp?id=12
这个样子的效果也不少,搂主喜欢的话我贴出来,不是flash的
<!--
var focus_width=281;
var focus_height=192;
var text_height=0;
var swf_height = focus_height+text_height;
var curhref=document.location.href; //----当前播放器所在位置
var pics='http://image2.sina.com.cn/ent/U487P28T140D1F2826DT20060810104246.jpg|http://image2.sina.com.cn/ent/U487P28T140D1F2890DT20060810110446.JPG|http://image2.sina.com.cn/ent/U487P28T140D1F2894DT20060810114141.JPG|http://image2.sina.com.cn/ent/U487P28T140D1F2896DT20060810110446.jpg|http://image2.sina.com.cn/ent/U92P28T140D1F2892DT20060809180713.JPG';
var links='http://ent.sina.com.cn/m/c/2006-08-10/09511194509.html|http://ent.sina.com.cn/m/c/p/2006-08-10/10311194627.html|http://ent.sina.com.cn/y/2006-08-10/10161194612.html|http://ent.sina.com.cn/y/p/2006-08-10/10151194610.html|http://ent.sina.com.cn/y/2006-08-09/14381192963.html';
var texts='||||';
var FocusFlash = new sinaFlash("http://image2.sina.com.cn/dy/deco/2006/0704/pixviewer1.1_009.swf", "focusflash", focus_width, swf_height, "7", "", false, "High");
FocusFlash.addParam("allowScriptAccess", "sameDomain");
FocusFlash.addParam("menu", "false");
FocusFlash.addParam("wmode", "opaque"); FocusFlash.addVariable("pics", pics);
FocusFlash.addVariable("links", links);
FocusFlash.addVariable("texts", texts);
FocusFlash.addVariable("borderwidth", focus_width);
FocusFlash.addVariable("borderheight", focus_height);
FocusFlash.addVariable("textheight", text_height);
FocusFlash.addVariable("curhref", curhref);
FocusFlash.write("focusViwer");
//-->
</SCRIPT>
第一,无需和PHP交互;
第二,ACTION就几行(应该不超过3行代码)而已,没那么复杂;
具体方法:
先制作各种变换效果,然后所有图片没有包含在FLASH里面,而是LOAD进来的,所以在每个效果后LOAD一个图片就行。至于按钮,也是设定好的URL,可以通过指定PHP进行跳转。
以上方法理论上是绝对可行的,你可以自己试试,过段时间我给自己的站里面也要加一个。
另外,偶是FLASH的FANS,曾经的梦想就是做闪客,等我写PHP赚到足够的钱后就开始实现自己梦想,呵呵~
研究一下页面代码,看看参数是如何传递就可以了
<div id="focusViwer" align=center>
<a href="http://jczs.news.sina.com.cn/p/2006-08-10/0727389508.html" target=_blank><img class=img01 border=1 height=210 width=262 alt="焦点图" src="http://image2.sina.com.cn/jc/74/2006/0210/U1335P27T74D43F1127DT20060810074359.jpg" ><br>国产新型警用38MM枪挂式榴弹发射器</a>
</div>
<script type="text/javascript">
<!--
var focus_width=262
var focus_height=210
var text_height=20
var swf_height = focus_height+text_height
var pics='http://image2.sina.com.cn/jc/74/2006/0210/U1335P27T74D43F1127DT20060810074359.jpg|http://image2.sina.com.cn/jc/74/2006/0210/U1335P27T74D43F1129DT20060810092133.jpg|http://image2.sina.com.cn/jc/74/2006/0210/U1335P27T74D43F1131DT20060810095642.jpg|http://image2.sina.com.cn/jc/74/2006/0210/U1335P27T74D43F1133DT20060809094742.jpg|http://image2.sina.com.cn/jc/74/2006/0210/U1220P27T74D43F1135DT20060810123858.jpg'
var links='http://jczs.news.sina.com.cn/p/2006-08-10/0727389508.html|http://jczs.news.sina.com.cn/p/2006-08-10/0807389563.html|http://jczs.news.sina.com.cn/p/2006-08-10/0948389607.html|http://jczs.news.sina.com.cn/p/2006-08-09/0844389401.html|http://jczs.news.sina.com.cn/fans/index.shtml'
var texts='国产新型警用38MM枪挂式榴弹发射器|日防卫报告要求中国提高军事透明度|美单兵装备成本2.6万品类众多达百种|中国两栖侦察队女兵王姣训练纪实|我为军魔:俄远东地区战略轰炸机值班'
var FocusFlash = new sinaFlash("http://image2.sina.com.cn/bj/zonghe/pixviewer.swf", "focusflash", focus_width, swf_height, "7", "#EBEBEF", false, "High");
FocusFlash.addParam("allowScriptAccess", "sameDomain");
FocusFlash.addParam("menu", "false");
FocusFlash.addParam("wmode", "opaque"); FocusFlash.addVariable("pics", pics);
FocusFlash.addVariable("links", links);
FocusFlash.addVariable("texts", texts);
FocusFlash.addVariable("borderwidth", focus_width);
FocusFlash.addVariable("borderheight", focus_height);
FocusFlash.addVariable("textheight", text_height);
FocusFlash.write("focusViwer");
//-->
</script>
<!--焦点图结束-->
<script type="text/javascript" src="http://image2.sina.com.cn/home/sinaflash.js"></script>
把这个下载下来,还有一个pixviewer.swf的FLASH就可以了.谢谢以上兄弟,结贴.