asp.net如何实现动态Flash新闻(急救,高手请进!)
在dreameaver能显示效果但把代码复制到VisualStudio2005就不能显示了.请高手帮忙代码如下:<divid="picnew"style="float:l...
在dreameaver能显示效果但把代码复制到Visual Studio 2005就不能显示了.
请高手帮忙代码如下:
<div id="picnew" style="float:left; width:300px; height:270px; border:#CAD9EA solid 2px;">
<!--图片新闻开始-->
<script type="text/javascript">
<!--
var focus_width=300
var focus_height=250
var text_height=20
var swf_height = focus_height+text_height
var pics='images/11.jpg|images/12.jpg|images/13.jpg|images/14.jpg|images/15.jpg'
var links='|||'
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="images/pixviewer.swf"><param name="quality" value="high">');
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="images/pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" 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>
<!--图片新闻结束-->
</div> 展开
请高手帮忙代码如下:
<div id="picnew" style="float:left; width:300px; height:270px; border:#CAD9EA solid 2px;">
<!--图片新闻开始-->
<script type="text/javascript">
<!--
var focus_width=300
var focus_height=250
var text_height=20
var swf_height = focus_height+text_height
var pics='images/11.jpg|images/12.jpg|images/13.jpg|images/14.jpg|images/15.jpg'
var links='|||'
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="images/pixviewer.swf"><param name="quality" value="high">');
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="images/pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" 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>
<!--图片新闻结束-->
</div> 展开
展开全部
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>快车网_中国领先的资源下载门户</title>
<script type="text/javascript" src="http://cimg.kuaiche.com/js/public/swfobject.js"></script>
<base target="_blank">
</head>
<body><div class="warp">
<div id="recommended">
<div class="bigpic" id="bigflash" style="padding:0px;">
<!--
<IFRAME MARGINHEIGHT=0 MARGINWIDTH=0 FRAMEBORDER=0 SCROLLING=NO width =354 height=268 SRC='http://cimg.kuaiche.com/css/flash/1.html'></IFRAME>
-->
<script type=text/javascript>
var pic_width=354; //图片宽度
var pic_height=268; //图片高度
var stop_time=3500; //图片停留时间(1000为1秒钟)
var bgcolor="ffffff"; //背景色
var imag=new Array();
var link=new Array();
var text=new Array();
imag[1]="http://img.kuaiche.com/publish/200803/31/2008033117070088117187.jpg";
link[1]="http%3A%2F%2Fmovie.kuaiche.com%2Fcontent%2F1909652%2F%3Ffrom%3Dbigflash";
imag[2]="http://img.kuaiche.com/publish/200803/28/2008032817221047697362.jpg";
link[2]="http%3A%2F%2Fmovie.kuaiche.com%2Fcontent%2F1909872%2F%3Ffrom%3Dbigflash";
imag[3]="http://img.kuaiche.com/publish/200803/27/2008032717144065346250.jpg";
link[3]="http%3A%2F%2Fmovie.kuaiche.com%2Fcontent%2F1909861%2F%3Ffrom%3Dbigflash";
imag[4]="http://img.kuaiche.com/publish/200803/26/2008032617165203229438.jpg";
link[4]="http%3A%2F%2Fmovie.kuaiche.com%2Fcontent%2F1909852%2F%3Ffrom%3Dbigflash";
imag[5]="http://img.kuaiche.com/publish/200803/25/2008032515444486858489.jpg";
link[5]="http%3A%2F%2Fmovie.kuaiche.com%2Fcontent%2F1909204%2F%3Ffrom%3Dbigflash";
imag[6]="http://img.kuaiche.com/publish/200803/24/2008032417094272165441.jpg";
link[6]="http%3A%2F%2Fmovie.kuaiche.com%2Fcontent%2F1909847%2F%3Ffrom%3Dbigflash";
imag[7]="http://img.kuaiche.com/publish/200803/21/2008032116011960782418.jpg";
link[7]="http%3A%2F%2Fmovie.kuaiche.com%2Fcontent%2F1909246%2F%3Ffrom%3Dbigflash";
imag[8]="http://img.kuaiche.com/publish/200803/21/2008032116383603506909.jpg";
link[8]="http%3A%2F%2Fpic.kuaiche.com%2Fcontent%2F1907690%2F%3Ffrom%3Dbigflash";
imag[9]="http://img.kuaiche.com/publish/200803/20/2008032016203773941769.jpg";
link[9]="http%3A%2F%2Fmovie.kuaiche.com%2Fcontent%2F1909823%2F%3Ffrom%3Dbigflash";
imag[10]="http://img.kuaiche.com/publish/200803/19/2008031917123870514304.jpg";
link[10]="http%3A%2F%2Fmovie.kuaiche.com%2Fcontent%2F1909815%2F%3Ffrom%3Dbigflash";
var swf_height=pic_height;
var pics="", links="";
for(var i=1; i<imag.length; i++){
pics=pics+("|"+imag[i]);
links=links+("|"+link[i]);
}
pics=pics.substring(1);
links=links.substring(1);
var so = new SWFObject('http://cimg.kuaiche.com/swf/public/focus.swf','mpl', pic_width,pic_height,'7');
so.addParam('allowfullscreen','true');
so.addVariable('autostart','true');
so.addVariable("overstretch","true");
so.addVariable("repeat","true");
so.addVariable("showeq","true");
so.addVariable("pics", pics);
so.addVariable("links", links);
so.addVariable("pic_width", pic_width);
so.addVariable("pic_height", pic_height);
so.addVariable("bgcolor", bgcolor);
so.addVariable("stop_time", stop_time);
so.write('bigflash');
</script>
</div>
</body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>快车网_中国领先的资源下载门户</title>
<script type="text/javascript" src="http://cimg.kuaiche.com/js/public/swfobject.js"></script>
<base target="_blank">
</head>
<body><div class="warp">
<div id="recommended">
<div class="bigpic" id="bigflash" style="padding:0px;">
<!--
<IFRAME MARGINHEIGHT=0 MARGINWIDTH=0 FRAMEBORDER=0 SCROLLING=NO width =354 height=268 SRC='http://cimg.kuaiche.com/css/flash/1.html'></IFRAME>
-->
<script type=text/javascript>
var pic_width=354; //图片宽度
var pic_height=268; //图片高度
var stop_time=3500; //图片停留时间(1000为1秒钟)
var bgcolor="ffffff"; //背景色
var imag=new Array();
var link=new Array();
var text=new Array();
imag[1]="http://img.kuaiche.com/publish/200803/31/2008033117070088117187.jpg";
link[1]="http%3A%2F%2Fmovie.kuaiche.com%2Fcontent%2F1909652%2F%3Ffrom%3Dbigflash";
imag[2]="http://img.kuaiche.com/publish/200803/28/2008032817221047697362.jpg";
link[2]="http%3A%2F%2Fmovie.kuaiche.com%2Fcontent%2F1909872%2F%3Ffrom%3Dbigflash";
imag[3]="http://img.kuaiche.com/publish/200803/27/2008032717144065346250.jpg";
link[3]="http%3A%2F%2Fmovie.kuaiche.com%2Fcontent%2F1909861%2F%3Ffrom%3Dbigflash";
imag[4]="http://img.kuaiche.com/publish/200803/26/2008032617165203229438.jpg";
link[4]="http%3A%2F%2Fmovie.kuaiche.com%2Fcontent%2F1909852%2F%3Ffrom%3Dbigflash";
imag[5]="http://img.kuaiche.com/publish/200803/25/2008032515444486858489.jpg";
link[5]="http%3A%2F%2Fmovie.kuaiche.com%2Fcontent%2F1909204%2F%3Ffrom%3Dbigflash";
imag[6]="http://img.kuaiche.com/publish/200803/24/2008032417094272165441.jpg";
link[6]="http%3A%2F%2Fmovie.kuaiche.com%2Fcontent%2F1909847%2F%3Ffrom%3Dbigflash";
imag[7]="http://img.kuaiche.com/publish/200803/21/2008032116011960782418.jpg";
link[7]="http%3A%2F%2Fmovie.kuaiche.com%2Fcontent%2F1909246%2F%3Ffrom%3Dbigflash";
imag[8]="http://img.kuaiche.com/publish/200803/21/2008032116383603506909.jpg";
link[8]="http%3A%2F%2Fpic.kuaiche.com%2Fcontent%2F1907690%2F%3Ffrom%3Dbigflash";
imag[9]="http://img.kuaiche.com/publish/200803/20/2008032016203773941769.jpg";
link[9]="http%3A%2F%2Fmovie.kuaiche.com%2Fcontent%2F1909823%2F%3Ffrom%3Dbigflash";
imag[10]="http://img.kuaiche.com/publish/200803/19/2008031917123870514304.jpg";
link[10]="http%3A%2F%2Fmovie.kuaiche.com%2Fcontent%2F1909815%2F%3Ffrom%3Dbigflash";
var swf_height=pic_height;
var pics="", links="";
for(var i=1; i<imag.length; i++){
pics=pics+("|"+imag[i]);
links=links+("|"+link[i]);
}
pics=pics.substring(1);
links=links.substring(1);
var so = new SWFObject('http://cimg.kuaiche.com/swf/public/focus.swf','mpl', pic_width,pic_height,'7');
so.addParam('allowfullscreen','true');
so.addVariable('autostart','true');
so.addVariable("overstretch","true");
so.addVariable("repeat","true");
so.addVariable("showeq","true");
so.addVariable("pics", pics);
so.addVariable("links", links);
so.addVariable("pic_width", pic_width);
so.addVariable("pic_height", pic_height);
so.addVariable("bgcolor", bgcolor);
so.addVariable("stop_time", stop_time);
so.write('bigflash');
</script>
</div>
</body>
</html>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询