如果窄风格下要使用的话
暂时折中一下用以下办法
但是以后更换图片会相对麻烦些...
同样外表格宽度还是不要使用百分比
FLASH和图片的宽度也可以根据自己的需要进行修改
第一步:
将以下代码保存为HTML文件...并上传到论坛或是空间并获得该网页地址...如何调用论坛附件地址的方法不说了...
复制内容到剪贴板
代码:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="issey" content="Microsoft FrontPage 4.0">
<meta name="issey" content="FrontPage.Editor.Document">
<title>webName</title>
<style>
<!--
body {
margin:0px;
}
-->
</style>
</head>
<body>
<center>
<embed ID="focus_flash" src="http://image2.sina.com.cn/bj/zonghe/pixviewer.swf" wmode="opaque"bgcolor="#101417" FlashVars="pics=图片地址|图片地址|图片地址|图片地址|图片地址&links=帖子连接地址| 帖子连接地址|帖子连接地址|帖子连接地址|帖子连接地址&texts=图片说明|图片说明|图片说明|图片说明|图片说明&borderwidth=400&borderheight=200&textheight=0" menu="false" quality="high" width="400" height="200" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</center>
</body>第二步:将以下代码中的
FLASH显示替换为刚才获得的地址,并将修改过的代码添加到后台的论坛简介当中即可..
复制内容到剪贴板
代码:
</td>
</td>
<style type="text/css">
.list {
width:100%;
padding: 0;
margin: 0;
text-align: center;
}
.list span, .list div {
float: left;
text-align: center;
}
.vspan{
line-height: 30px;
}
</style>
<div class="vspan">
<div class="list">
<span id="l_11" class=header style="width:25%; "><b>≡论坛新贴≡</b></span>
<span id="l_12" class=header style="width:50%; "><b>≡论坛活动公告≡</b></span>
<span id="l_13" class=header style="width:25%; "><b>≡最新回复≡</b></span>
<br>
<span id="l_21" class=altbg1 style="width:25%">
<MARQUEE onmouseover=stop() onmouseout=start() scrollAmount=2 direction=up width="100%" height=200>
最新帖JS调用代码
</MARQUEE>
</span>
<span id="l_22" class=altbg1 style="width:50%" >
<iframe src="FLASH显示" width=100% height=200px scrolling=no frameborder=0 frameSpacing=0></iframe>
</span>
<span id="l_23" class=altbg1 style="width:25%">
<MARQUEE onmouseover=stop() onmouseout=start() scrollAmount=2 direction=up width="100%" height=200>
最新回复JS调用代码
</MARQUEE>
</span>
</div>
</div>效果见附件....呃....基本很少有人会把外表格宽度设成600px下面的吧...笑...基本上应该可以满足窄风格的要求了吧..一些美化的细节就不写了....也不是很难
[
本帖最后由 coralyster 于 2007-7-28 14:13 编辑 ]