为什么80%的码农都做不了架构师?>>>
<div>
<table width="671" cellpadding="0" cellspacing="0">
<tr height="5">
<td style="background-image:url(include/image/news_left_top_circle.jpg)" width="7">
</td>
<td style="background-image:url(include/image/news_point_1.jpg)" width="657">
</td>
<td style="background-image:url(include/image/news_right_top_circle.jpg)" width="7">
</td>
</tr>
<tr height="212">
<td style="background-image:url(include/image/news_point_2.jpg)" width="7">
</td>
<td width="657" valign="top">
<table align="center" width="649" cellpadding="0" cellspacing="0">
<tr height="20">
<td style="color: #187101; padding-top: 5px;" align="left">
<strong>图片新闻</strong>
</td>
<td align="right">
<a href="news_list" target="_blank">更多</a>
</td>
</tr>
<tr valign="top">
<td colspan="2" style="background-image:url(include/image/news_point_1.jpg)">
</td>
</tr>
<tr>
<td height="2" colspan="2">
</td>
</tr>
<tr valign="top" align="left" style="line-height: 150%">
<td width="35%" style="padding-top: 3px;">
<input id="flashPic1" type="hidden" value="${flashPic1}"/>
<input id="flashPic2" type="hidden" value="${flashPic2}"/>
<input id="flashPic3" type="hidden" value="${flashPic3}"/>
<input id="flashLink1" type="hidden" value="${flashLink1}"/>
<input id="flashLink2" type="hidden" value="${flashLink2}"/>
<input id="flashLink3" type="hidden" value="${flashLink3}"/>
<input id="flashText1" type="hidden" value="${flashText1}"/>
<input id="flashText2" type="hidden" value="${flashText2}"/>
<input id="flashText3" type="hidden" value="${flashText3}"/>
<script type="text/javascript">
var picWidth = 240;
var picHeight = 160;
var textHeight = 20;
var swfHeight = picHeight+textHeight;
//图片地址
var addr = '../../upload/image/';
var li = 'news_index?newsId=';
var flashPic1 = document.getElementById("flashPic1").value;
var flashPic2 = document.getElementById("flashPic2").value;
var flashPic3 = document.getElementById("flashPic3").value;
var flashLink1 = document.getElementById("flashLink1").value;
var flashLink2 = document.getElementById("flashLink2").value;
var flashLink3 = document.getElementById("flashLink3").value;
var flashText1 = document.getElementById("flashText1").value;
var flashText2 = document.getElementById("flashText2").value;
var flashText3 = document.getElementById("flashText3").value;
if(null==flashLink3 || ""==flashLink3){
var pics = addr+flashPic1 + '|' + addr+flashPic2 ;
//连接
var links = li+flashLink1 + '|' + li+flashLink2 ;
//文本
var texts = flashText1 + '|' + flashText2;
}else{
var pics = addr+flashPic1 + '|' + addr+flashPic2 + '|' + addr+flashPic3;
//连接
var links = li+flashLink1 + '|' + li+flashLink2 + '|' + li+flashLink3;
//文本
var texts = flashText1 + '|' + flashText2 + '|' + flashText3;}
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="'+ picWidth +'" height="'+ swfHeight +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="include/image/swf/news.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='+picWidth+'&borderheight='+picHeight+'&textheight='+textHeight+'">');
document.write('<embed src="include/image/swf/news.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+picWidth+'&borderheight='+picHeight+'&textheight='+textHeight+'" menu="false" bgcolor="#C5C5C5" quality="high" width="'+ picWidth +'" height="'+ swfHeight +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" />'); document.write('</object>');
</script>
</td>
<td width="65%" valign="top">
<table width='100%' cellspacing='0' cellpadding='0'>
<s:iterator value="newsList">
<tr style='line-height:200%;'>
<td>
<img src='include/image/gray_arrow.gif' style='padding-left:5px;'/>
</td>
<td style="width:74%;text-align:left">
<s:set name="url" value="'news_index?newsId=' + id"/>
<a href="<s:property value='url'/>" target="_blank"><s:property value="display"/></a>
</td>
<td align="right">
<s:date name="published" format="yyyy-MM-dd"/>
</td>
</tr>
</s:iterator>
</table>
</td>
</tr>
</table>
</td>
<td style="background-image:url(include/image/news_point_3.jpg)" width="7">
</td>
</tr>
<tr>
<td style="background-image:url(include/image/news_left_bottom_circle.jpg)" width="7" height="6">
</td>
<td style="background-image:url(include/image/news_point_4.jpg)" width="657">
</td>
<td style="background-image:url(include/image/news_right_bottom_circle.jpg)" width="7">
</td>
</tr>
</table>
</div>