打印

[已解决] QQ站实现ubb留言代码效果自动预览

QQ站实现ubb留言代码效果自动预览

我想做个QQ空间站,谁能告诉我QQ站实现ubb留言代码效果自动预览啊,

我在百度也搜到个答案了,说是插入文章页面就行了,可我还是不知道应该插入到哪个部位,

麻烦大家了,就放在这个站点里55555qq.cn

这是我从百度搜到的

----------------------------------------------------------------------------------------------------

<link href="/tool/ubb/ubb.css" tppabs="http://www.qqweb.org/" rel="stylesheet" type="text/css" />
<!-- 开始 -->
id="cubb">
class="ubbleft">
id="ubbmain">
id="ubbtitle">广告位
<hr align="center" width="80%" size="1" />
id="ubbtextinfo">ADSENSE
id="ubbinfo">
id=comment_editor>
<script src="/tool/ubb/ubb.js" tppabs="" language="javascript"></script>

id="dmdm">
< textarea class=main_editer id=main_editer onKeyDown="return ctlent();" onkeyup=javascript:main_editer_Keyup(); onClick="javascript: storeCaret(this);" name=main_editer rows=14 cols=80 onSelect="javascript: storeCaret(this);">{dede:field name='body'/}
< /textarea>


class="dmxg"> [url=="http://www.qqweb.org/tool/ubb/" target=_blank>多功能留言代码编辑器</A> | [url=="#" onClick="previw(1);" title="当代码或预览出现混乱时,可以通过点击此处刷新网页。">立即刷新</a> | [url=="javascript:callclip(main_editer);">复制代码</A> | <A title=你可以通过点击此处立即刷新预览以上文本框内的代码效果。 onclick=previw(1); href="#ok">预览代码</A>

id=main_preview class="dmxg">

预览背景 <IMG style="BACKGROUND-: #ffffff" onClick="pr.style.background='#FFFFFF';pr.style.='#666666';" height=12 alt=白色背景 width=20 align=absMiddle border=1>  <IMG style="BACKGROUND-: #64338e" onClick="pr.style.background='#64338E';pr.style.='#E0D2F2';" height=12 alt=紫色背景 width=20 align=absMiddle border=1>  <IMG style="BACKGROUND-: #000000" onClick="pr.style.background='#000000';pr.style.='#929292';" height=12 alt=黑色背景 width=20 align=absMiddle border=1>  <IMG style="BACKGROUND-: #282828" onClick="pr.style.background='#282828';pr.style.='#000000';" height=12 alt=浅蓝色背景 width=20 align=absMiddle border=1>  <Input id=auto_preview type=checkbox CHECKED value=checkbox name=auto_preview>自动预览   



style="width:600px;background-:#000000" align="center" id=pr><A name=ok></A>












<!-- 中部结束 -->
            
-------------------------------------------------

以下是我用的模板的文章内容页
-----------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>{dede:field name='title'/}-{dede:field name='position' runphp='yes'}
    $tc="-"; //分隔符
    $tw=$GLOBALS['cfg_list_symbol']; //调用位置分隔符
    @me=html2text(@me); //去除html标签
    $tf=split($tw,@me); //分解成数组
    for($ta=(count($tf)-2);$ta>=1;$ta--){ //循环赋值给$tk
        $tk.=trim($tf[$ta]).$tc;
    }
    $tk=substr($tk,0,-1);
    @me=$tk; //赋值给@me
{/dede:field}-{dede:global name='cfg_webname'/}</title>
<meta name="description" content=""/>
<meta content="{dede:field name='title'/},非主流图片" name=description>
<meta content="{dede:field name='title'/}" name=keywords>
<link href="/css/feizhuliu.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.topad {        float: left;
        width: 500px;
        margin-top: 6px;
        margin-left: 50px;
        height: 70px;
}
.sc {        margin: 5px;
        height: 25px;
        border: 1px dashed #0099CC;
        line-height: 25px;
        font-size: 12px;
        : #0099CC;
}
.textad{height:20px;width:715px;margin-right:auto;margin-left:auto;border:2px solid #7CCCF8;background-:#D5EDFB;padding:3px;margin-bottom: 5px;}
.textadr{background-:#FFF;height:20px;padding-right:3px;line-height:20px;}
.textadr a,.textadr a:visited{:red;margin-right:10px;margin-left:10px;text-decoration:none;font-size:12px;font-weight:700;}
.textadr a:hover{:#000;margin-right:10px;margin-left:10px;text-decoration:none;font-size:12px;font-weight:700;}
.jctj{float:left;width:65px;font-size:12px;}
-->
</style>
</head>
<body>        
id="top">
   class="logo">[url=="http://www.55555qq.cn/"><img src="/img2/logo.gif" alt="非主流图片" width="250" height="80" border="0" /></a>
   class="topad"><script src='/plus/ad_js.php?aid=2' language='javascript'></script>
   class="top2">
     class="toplm">[url=="http://www.55555qq.cn/" target="_blank" class="link03">非主流图片</a>
     class="toplm">[url=="http://www.55555qq.cn/" target="_blank" class="link03">非主流空间</a>
  

class="dh">
   id="nav">
    <ul>
      <li>[url=="http://www.55555qq.cn">非主流首页</a></li>
      {dede:channel type='top' row='11'}<li>[url=='[field:typelink/]' target="_blank">[field:typename/]</a> </li>
          {/dede:channel}
    </ul>
  

class="webbody">
   class="left">
     class="so">
      <table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="tbspan">
        <tr>
          <td width="511" height="22"> class="s1">热门关键字:{dede:hotwords num='6' subday='30' function="str_replace('<a','<a target=_blank',@me)"/}</td>
          <td width="212" align="center">< form action="/plus/search.php" name="formsearch" id="formsearch">
              <table width="100%" height="20" border="0" align="right" cellpadding="0" cellspacing="2">
                <tr>
                  <td><input name="keyword" type="text" id="keyword2" style="width:130px;height:20px;border:1px solid #60CDEE" onfocus="if(this.value=='关键字') {this.value='';}this.style.='#333';" onblur="if(this.value=='') {this.value='关键字';this.style.='#ccc';}" value="关键字" /></td>
                  <td align="center"><input type="hidden" name="kwtype" value="0" /></td>
                  <td align="center"><input name="imageField222" type="image" src="/img2/SS.gif" width="55" height="24" border="0" /></td>
                </tr>
              </table>
          < /form></td>
        </tr>
      </table>
   
     class="ad1"><script src='/plus/ad_js.php?aid=3' language='javascript'></script>
     class="baidu"><iframe id="baiduframe" marginwidth="0" marginheight="0" scrolling="no" framespacing="0" vspace="0" hspace="0" frameborder="0" width="730" height="40" src="http://unstat.baidu.com/bdun.bsc?tn=djyo&cv=0&cid=246369&csid=103&bgcr=F6FCFC&ftcr=000000&urlcr=3CA0E2&tbsz=250&sropls=2,6,9,15,99&insiteurl=www.55555qq.cn"></iframe>
   <script src="{dede:field name='phpurl'/}/count.php?aid={dede:field name='ID'/}&mid={dede:field name='memberid'/}" language="javascript"></script>
     class="wzbody">
       class="listtop1">
       class="lmtitle">当前位置:{dede:field name='position'/}<script src="/wangzhai/wangzhai.js"></script>
       class="title">
        <h1>{dede:field name="title"/}</h1>

      
       class="wzad">
         class="ad-left"><script src='/plus/ad_js.php?aid=4' language='javascript'></script>
         class="ad-right"><script src="/js/feizhuliu-200x200.js"></script>
        
      
       class="wzad2"><script src='/plus/ad_js.php?aid=5' language='javascript'></script>
      <table width="716" border="0" align="center" cellpadding="0" cellspacing="0.">
        <tr>
          <td class="wzfont"> align="center" class="STYLE1">
        {dede:field name='body'/}</td>
        </tr>
      </table>
       class="wzad3">
         align="center"><script src="/js/feizhuliu-468x60.js"></script>
      
       class="page">{dede:pagebreak/}
       class="sc">
         align="center">为了方便您以后快速的找到这篇文章,本站建议您: [url=="javascript:window.external.AddFavorite('http://www.55555qq.cn/','非主流图片')">添加到系统收藏夹</a> | [url=="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)">添加到QQ书签</a> | [url=="javascript:window.open('http://cang.baidu.com/do/add?it='+encodeURIComponent(document.title.substring(0,76))+'&iu='+encodeURIComponent(location.href)+'&fr=ien#nw=1','_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes'); void 0">添加到百度搜藏</a> | [url=="#" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=780,height=550,left=80,top=80,status=yes,resizable=yes');">添加到雅虎收藏</a>
      
   
     class="listpage">{dede:prenext get='pre'/}    {dede:prenext get='next'/}
     class="more">
       class="listtop">
       class="lmtitle">相关内容
          <table width='100%' border='0' cellspacing='0' cellpadding='0'>
         <tr>{dede:likeart row=6 col=6 titlelen=20 imgwidth='100' imgheight='115'}
        <td width='17%'> class="imglist">
[url=="[field:arcurl/]" title="[field:title/]" target="_blank">[field:image/]</a><span>[field:textlink/]</span>
{/dede:likeart}
        </td>
        </tr>
        </table>
   
  
   class="right">
    class="ad4"><script src="/js/feizhuliu-ar-250x250.js"></script>
     class="hot">
       class="listtop">
       class="lmtitle">非主流热门资源
      <ul>
        {dede:arclist row=15 titlelen=42 orderby=click typeid=''}<li>·[url=='[field:arcurl/]' title="[field:title/]" target="_blank">[field:title/]</a></li>{/dede:arclist}
      </ul>
   
     class="hot">
       class="listtop">
       class="lmtitle">随机推荐
      <ul>
        {dede:arclist row=15 titlelen=42 orderby=rand typeid=''}<li>·[url=='[field:arcurl/]' title="[field:title/]" target="_blank">[field:title/]</a></li>{/dede:arclist}
      </ul>
   
  

class="bqinfo">[url=="javascript:window.external.AddFavorite('http://www.55555qq.cn/','非主流图片')">收藏本站</a> | <a onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.55555qq.cn/');" href="#" >设为首页</a> <br />[url=="http://www.55555qq.cn/">非主流图片</a> [url=="http://www.55555qq.cn/">55555qq.cn</a> 版权所有 Copyright © 2008 All rights reserved.<br /> 本站为非主流门户站点,免费大家提供非主流图片下载,非主流QQ空间代码,及非主流头像,非主流图片制作教程等等.

</body>
</html>
--------------------------------------------------------------------
麻烦大家说详细一点好吗,我连菜鸟都算不上,,,,,谢谢了,
DEDECMS.你可以看一下这几篇文章.基础性的学习还是必须的.
Dedecms文件夹目录解释(完整版)
http://www.cnzhanzhang.com/viewthread.php?tid=455&highlight=dedecms
返回顶部
CNzhanzhang.com

Processed in 0.059168 second(s), 7 queries, Gzip enabled.

当前时区 GMT+8, 现在时间是 2008-11-21 16:54 豫ICP备08002104号

清除 Cookies - 联系我们 - 中国站长论坛 - Archiver - WAP - 界面风格