📄 imgnews_index.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%
java.util.ArrayList lists = new java.util.ArrayList();
igec.site.front.bean.NewsListPara np = new igec.site.front.bean.NewsListPara();
int iFlag = 0;
np.reset();
np.setStrType("0");
np.setIRowNum(6);
np.setStrClassId("0");
np.setStrImgFlag("1");
iFlag = igec.site.front.business.InfoClassBusiness.getNewsList(lists,np);
String strShowTitle="",strHref="",strShowPic="";
if(iFlag>=0){
for(int i=0;i<np.getIRowNum();i++){
if(i<lists.size()){
igec.site.front.bean.NewsListObj news = (igec.site.front.bean.NewsListObj)lists.get(i);
if(igec.util.Tool.IsEmpty(strShowPic)){
strShowTitle = igec.util.FormatUtil.getShowStr(igec.util.Tool.replaceAll(igec.util.Tool.replaceAll(news.getStrTitle(),"'","‘"),"%","%"),35,"");
strHref = site.bean.SitePara.strVirtualName + "/ShowNews.do?id=" + news.getStrId();
strShowPic = news.getStrDefaultPic();
}else{
strShowTitle += "|" + igec.util.FormatUtil.getShowStr(igec.util.Tool.replaceAll(igec.util.Tool.replaceAll(news.getStrTitle(),"'","‘"),"%","%"),35,"");
strHref += "|" + site.bean.SitePara.strVirtualName + "/ShowNews.do?id=" + news.getStrId();
strShowPic += "|" + news.getStrDefaultPic();
}
}
}
}
%>
document.write('<table width="100%" height="200" border="0" cellpadding="0" cellspacing="0">');
document.write('<tr>');
document.write('<td align="center" valign="middle">');
var focus_width=256
var focus_height=220
var text_height=20
var swf_height = focus_height+text_height
var pics='<%=strShowPic%>'
var links='<%=strHref%>'
var texts='<%=strShowTitle%>'
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="media/swapimg.swf"><param name=wmode value=transparent><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="media/swapimg.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#DADADA" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>');
document.write('</td> </tr> </table>');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -