62,269
社区成员
发帖
与我相关
我的任务
分享<div style="padding-right:3px; ">
<script type="text/javascript">
<%=top_hd%>
var focus_width=339
var focus_height=284
var text_height=18
var swf_height = focus_height+text_height
var pics=imgUrl1+"|"+imgUrl2+"|"+imgUrl3+"|"+imgUrl4+"|"+imgUrl5
var links=imgLink1+"|"+imgLink2+"|"+imgLink3+"|"+imgLink4+"|"+imgLink5
var texts=imgtext1+"|"+imgtext2+"|"+imgtext3+"|"+imgtext4+"|"+imgtext5
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="sh/images/focus1.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');
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('</object>');
</script>
</div>
别忘记了定义个protected stringbuld hdsq_hd ="";
hdsq_hd.Append("imgUrl31='" + ds_hdsq_hd.Tables[0].Rows[0]["n_newsimage"].ToString().Replace("../", "") + "';");
hdsq_hd.Append("imgtext31='" + ds_hdsq_hd.Tables[0].Rows[0]["n_title"] + "';");
hdsq_hd.Append("imgLink31=escape('/news-" + ds_hdsq_hd.Tables[0].Rows[0]["n_id"] + ".aspx');");
hdsq_hd.Append("imgUrl32='" + ds_hdsq_hd.Tables[0].Rows[1]["n_newsimage"].ToString().Replace("../", "") + "';");
hdsq_hd.Append("imgtext32='" + ds_hdsq_hd.Tables[0].Rows[1]["n_title"] + "';");
hdsq_hd.Append("imgLink32=escape('/news-" + ds_hdsq_hd.Tables[0].Rows[1]["n_id"] + ".aspx');");
hdsq_hd.Append("imgUrl33='" + ds_hdsq_hd.Tables[0].Rows[2]["n_newsimage"].ToString().Replace("../", "") + "';");
hdsq_hd.Append("imgtext33='" + ds_hdsq_hd.Tables[0].Rows[2]["n_title"] + "';");
hdsq_hd.Append("imgLink33=escape('/news-" + ds_hdsq_hd.Tables[0].Rows[2]["n_id"] + ".aspx');");
hdsq_hd.Append("imgUrl34='" + ds_hdsq_hd.Tables[0].Rows[3]["n_newsimage"].ToString().Replace("../", "") + "';");
hdsq_hd.Append("imgtext34='" + ds_hdsq_hd.Tables[0].Rows[3]["n_title"] + "';");
hdsq_hd.Append("imgLink34=escape('/news-" + ds_hdsq_hd.Tables[0].Rows[3]["n_id"] + ".aspx');");
hdsq_hd.Append("imgUrl35='" + ds_hdsq_hd.Tables[0].Rows[4]["n_newsimage"].ToString().Replace("../", "") + "';");
hdsq_hd.Append("imgtext35='" + ds_hdsq_hd.Tables[0].Rows[4]["n_title"] + "';");
hdsq_hd.Append("imgLink35=escape('/news-" + ds_hdsq_hd.Tables[0].Rows[4]["n_id"] + ".aspx');");