Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

首页n格的问题整理与解决[最后更新:2007.11.05 JS调用附件]

[复制链接]
kang2656 发表于 2007-7-4 22:29:12 | 显示全部楼层
感谢你这么快的回帖,真的很感谢!很多人不理我哎~~~
回复

使用道具 举报

8124628 发表于 2007-7-4 22:42:45 | 显示全部楼层
<div class="toplist">
  <div class="toplist2" style="border-top: none">
    <div style="float: left; width: 420px; text-align: left">
      <script type="text/javascript">
var varText = ""
function addInfo(title,photourl,link){
if(varText!=""){
varText+="|||";
}
varText+=title+"|_|"+photourl+"|_|"+link;
}
linkarr = new Array();
picarr = new Array();
textarr = new Array();
linkarr[1] = "index.php";
picarr[1] = "{IMGDIR}/toplist/1.jpg";
textarr[1] = "测试图片效果之1";
linkarr[2] = "index.php";
picarr[2] = "{IMGDIR}/toplist/2.jpg";
textarr[2] = "测试图片效果之2";
linkarr[3] = "index.php";
picarr[3] = "{IMGDIR}/toplist/3.jpg";
textarr[3] = "测试图片效果之3";
linkarr[4] = "index.php";
picarr[4] = "{IMGDIR}/toplist/4.jpg";
textarr[4] = "测试图片效果之4";
linkarr[5] = "index.php";
picarr[5] = "{IMGDIR}/toplist/5.jpg";
textarr[5] = "测试图片效果之5";

addInfo(textarr[1],picarr[1],linkarr[1]);
addInfo(textarr[2],picarr[2],linkarr[2]);
addInfo(textarr[3],picarr[3],linkarr[3]);
addInfo(textarr[4],picarr[4],linkarr[4]);
addInfo(textarr[5],picarr[5],linkarr[5]);

document.write('<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="410" height="200" id="01" align="middle">')
document.write('<param name="allowScriptAccess" value="sameDomain" />')
document.write('<param name="movie" value="http://bbs.yoyyy.com/flash.swf?info='+varText+'" />')
document.write('<param name="quality" value="high" />')
document.write('<param name="bgcolor" value="#ffffff" /><param name="wmode" value="transparent" />')
document.write('<embed src="images/show/toplist/flash.swf" quality="high" bgcolor="#ffffff" width="410" height="200" name="01" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />')
document.write('</object>')
</script>
    </div>
    <div style="float: left; width: 26%; height: 200px">
      <ul class="lbox" style="clear: both">
        <img src="images/show/toplist/newspost.gif" />
      </ul>
      <!--{loop $new_post_threadlist $nthread}-->
      <!--{if $nthread[replies]}-->
      <Li class=toplistpost><a href="viewthread.php?tid=$nthread[tid]" $nthread['highlight'] title="最新话题 {LF}所在论坛: $nthread[forumname]{LF}主题作者: $nthread[author]{LF}发表时间: $nthread[date]{LF}浏览次数: $nthread[views] 次 {LF}回复次数: $nthread[replies] 次{LF}最后回复: $nthread[lastreplytime]{LF}{lang lastpost}: $nthread[lastposter]" >$nthread[view_subject]</a></Li>
        <!--{else}-->
        <Li class=toplistpost><a href="viewthread.php?tid=$nthread[tid]" $nthread['highlight'] title="最新话题 {LF}所在论坛: $nthread[forumname]{LF}主题作者: $nthread[author]{LF}发表时间{lang time}: $nthread[date]{LF}浏览次数: $nthread[views] 次 {LF}回复次数: $nthread[replies] 次{LF}{lang replies}: 暂时没有回复" >$nthread[view_subject]</a></Li>
      <!--{/if}-->
      <!--{/loop}-->
    </div>
    <div style="float: left; width: 26%; height: 200px">
      <ul class="lbox" style="clear: both">
        <img src="{IMGDIR}/toplist/newsreply.gif" />
      </ul>
      <!--{loop $new_reply_threadlist $rthread}-->
      <Li class=toplistpost><a href="viewthread.php?tid=$rthread[tid]" $rthread['highlight'] title="最新回复 {LF}所在论坛: $rthread[forumname]{LF}主题作者: $rthread[author]{LF}发表时间: $rthread[date]{LF}浏览次数: $rthread[views] 次{LF}回复次数: $rthread[replies] 次{LF}最后回复: $rthread[lastreplytime]{LF}{lang lastpost}: $rthread[lastposter]">$rthread[view_subject]</a></Li>
      <!--{/loop}-->
    </div>
  </div>
</div>
回复

使用道具 举报

8124628 发表于 2007-7-4 22:43:08 | 显示全部楼层
怎么搞都不对齐  你自己看看```
回复

使用道具 举报

kang2656 发表于 2007-7-4 22:43:29 | 显示全部楼层
楼上这是什么呢?????
回复

使用道具 举报

 楼主| TaRot! 发表于 2007-7-4 22:48:55 | 显示全部楼层
对不齐的可以找另外的首页n格试下,div的有时候会跟浏览器不兼容.
回复

使用道具 举报

kang2656 发表于 2007-7-4 23:05:03 | 显示全部楼层
我的问题啊~~~图片还不显示呢,大家帮个忙呢!!!!
回复

使用道具 举报

习明 发表于 2007-7-4 23:13:22 | 显示全部楼层

回复 #86 kang2656 的帖子

你装得是哪个? 给个链接地址
回复

使用道具 举报

kang2656 发表于 2007-7-4 23:19:38 | 显示全部楼层
原帖由 kang2656 于 2007-7-4 22:28 发表
我用的一键安装的discuz
https://discuz.dismall.com/usersguide/install_easy_exp.htm

但是我装了后图片怎么也调用不出来,我也有jpg格式的图片啊!而且很多主题都有图片!!



就这个

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

习明 发表于 2007-7-4 23:21:09 | 显示全部楼层
我是说那个N格你装的哪个
回复

使用道具 举报

kang2656 发表于 2007-7-4 23:43:47 | 显示全部楼层
哦,我装的是这位大大的。

https://discuz.dismall.com/viewth ... hlight=%B6%E0%B8%F1
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-22 04:17 , Processed in 0.142253 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表