看我的流动图文,效果页http://www.51ip.com.cn/tm/news/12434417516694.html 在内容页的适当位置 放入 <DIV class=box_xgimg style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px"><IFRAME src="/tm/sbzr/sbzr_new.html" frameBorder=0 width=590 scrolling=no height=152></IFRAME></DIV>
再自定义一个sbzr_new.html页面,sbzr_new.html页面的代码如下 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- published at: <?=date("Y-m-d H:i:s")?>--> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN"> <head> <meta http-equiv="Content-Type" content="text/html;charset=gb2312" /> <meta name="description" content="" /> <meta name="keywords" content="" /> <title>湖北商标专利网商标转让最新信息</title> <script type="text/javascript" src="/js/script.js"></script> <script type="text/javascript"> //<![CDATA[ <!-- window.onload = function () {Roll.Top($('roll'), $('one'), {scrollamount:135,scrolldelaymin:0,scrolldelaymax:3000})}; //--> //]]> </script>
<style type="text/css" media="all"> /*<![CDATA[*/ <!-- .roll { position: relative; background: #ccc; height: 120px; overflow: hidden;/* height: 135px;*/ } .roll .top-one, .roll .top-two { position: absolute; left: 10px; } .roll ul { text-align: left; } .roll ul li { list-style-type: none; overflow: hidden; } a:link, a:visited { color: #333; text-decoration: none; }
/* 原样式 【1234行】开始更改的样式 */ /*相关图文*/ *,html{text-align:center;} .box_xgimg{ border:1px solid #B8CDE3; margin-bottom:10px; font-size:12px; } .box_xgimg .title_xg{ background:#B8CDE3; color:#003770; line-height:26px; height:26px; padding-left:8px; border:1px solid #fff; font-weight:bold; text-align:left; } .box_xgimg ul{ padding: 0 2px; margin-left:2px; }
.box_xgimg ul li{ display:block; float:left; width:130px; background: #fff; line-height:18px; font-size:12px; margin:0 3px; } .box_xgimg ul li img{ border:1px solid #ccc; width:121px; height:91px; padding:2px; } .roll{background:#fff;} --> /*]]>*/ </style> </head>
<body style="background:#fff;width:590px;margin:0 auto;"> <div class="box_xgimg"> <div class="title_xg">最新图文</div> <div class="roll" id="roll" style="margin-left:0px;padding-left:0px;"> <ul id="one" style="margin-left:0px;padding-left:0px;"> [ecmsinfo]2,24,30,0,0,61,0[/ecmsinfo] </ul> </div> </div> </body> </html>
可能有人不喜欢<IFRAME>标记
|