dedecms---一个简单酷站的构建及解析
一、构建内容模型
二、添加顶级栏目并添加文档
三、创建模型模板
1.article_cool
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <htmlxmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <metahttp-equiv="Content-Type"content="text/html; charset={dede:global.cfg_soft_lang/}" /> 5 <title>{dede:field.title/}_{dede:global.cfg_webname/}</title> 6 <metaname="keywords"content="{dede:field.keywords/}" /> 7 <metaname="description"content="{dede:field.description function='html2text(@me)'/}" /> 8 <linkhref="{dede:global.cfg_templets_skin/}/style/dedecms.css"rel="stylesheet"media="screen"type="text/css" /> 9 <scriptlanguage="javascript"type="text/javascript"src="{dede:global.cfg_cmsurl/}/include/dedeajax2.js"></script> 10 <scriptlanguage="javascript"type="text/javascript"> 11 <!-- 12 functionCheckLogin(){13 vartaget_obj=document.getElementById('_ajax_feedback');14 myajax= newDedeAjax(taget_obj,false,false,'','','');15 myajax.SendGet2("{dede:global.cfg_cmsurl/}/member/ajax_feedback.php");16 DedeXHTTP= null;17 }18 functionpostBadGood(ftype,fid)19 {20 vartaget_obj=document.getElementById(ftype+fid);21 varsaveid=GetCookie('badgoodid');22 if(saveid!= null)23 {24 varsaveids=saveid.split(',');25 varhasid= false;26 saveid= '';27 j= 1;28 for(i=saveids.length-1;i>=0;i--)29 {30 if(saveids[i]==fid&&hasid)continue;31 else{32 if(saveids[i]==fid&& !hasid) hasid= true;33 saveid+=(saveid=='' ?saveids[i] :','+saveids[i]);34 j++;35 if(j==10 &&hasid)break;36 if(j==9 && !hasid)break;37 }38 }39 if(hasid) { alert('您刚才已表决过了喔!');return false;}40 elsesaveid+= ','+fid;41 SetCookie('badgoodid',saveid,1);42 }43 else 44 {45 SetCookie('badgoodid',fid,1);46 }47 myajax= newDedeAjax(taget_obj,false,false,'','','');48 myajax.SendGet2("{dede:field name='phpurl'/}/feedback.php?aid="+fid+"&action="+ftype+"&fid="+fid);49 }50 functionpostDigg(ftype,aid)51 {52 vartaget_obj=document.getElementById('newdigg');53 varsaveid=GetCookie('diggid');54 if(saveid!= null)55 {56 varsaveids=saveid.split(',');57 varhasid= false;58 saveid= '';59 j= 1;60 for(i=saveids.length-1;i>=0;i--)61 {62 if(saveids[i]==aid&&hasid)continue;63 else{64 if(saveids[i]==aid&& !hasid) hasid= true;65 saveid+=(saveid=='' ?saveids[i] :','+saveids[i]);66 j++;67 if(j==20 &&hasid)break;68 if(j==19 && !hasid)break;69 }70 }71 if(hasid) { alert("您已经顶过该帖,请不要重复顶帖 !");return; }72 elsesaveid+= ','+aid;73 SetCookie('diggid',saveid,1);74 }75 else 76 {77 SetCookie('diggid',aid,1);78 }79 myajax= newDedeAjax(taget_obj,false,false,'','','');80 varurl= "{dede:global.cfg_phpurl/}/digg_ajax.php?action="+ftype+"&id="+aid;81 myajax.SendGet2(url);82 }83 functiongetDigg(aid)84 {85 vartaget_obj=document.getElementById('newdigg');86 myajax= newDedeAjax(taget_obj,false,false,'','','');87 myajax.SendGet2("{dede:global.cfg_phpurl/}/digg_ajax.php?id="+aid);88 DedeXHTTP= null;89 }90 --> 91 </script> 92 </head> 93 <bodyclass="articleview"> 94 {dede:include filename="head2.htm"/}95 <!--/header--> 96 <divclass="w960 center clear mt1"> 97 <divclass="pleft"> 98 <divclass="place"> <strong>当前位置:</strong> {dede:field name='position'/} </div> 99 <!--/place--> 100 <divclass="viewbox"> 101 <divclass="title"> 102 <h2>{dede:field.title/}</h2> 103 </div> 104 <!--/title--> 105 <divclass="info"> <small>时间:</small>{dede:field.pubdate function="MyDate('Y-m-d H:i',@me)"/}<small>来源:</small>{dede:field.source/} <small>作者:</small>{dede:field.writer/} <small>点击:</small> 106 <scriptsrc="{dede:field name='phpurl'/}/count.php?view=yes&aid={dede:field name='id'/}&mid={dede:field name='mid'/}"type='text/javascript'language="javascript"></script> 107 次</div> 108 <!--/info--> 109 {dede:field.description runphp='yes'}110 if(@me<>'' )@me = '111 <divclass="intro">'.@me.'</div> 112 ';113 {/dede:field.description}114 <divclass="content"> 115 <tablewidth="100%"border="0"cellpadding="1"cellspacing="1"bgcolor="#BED1AB"> 116 117 <tr> 118 <tdwidth="23%"height="24"align="center"bgcolor="#FBFEF5"> 119 <b>酷0站URL:</b> 120 </td> 121 <tdwidth="77%"bgcolor="#FFFFFF">  <ahref="{dede:field.coolurl/}"target="_blank"title="点击在新窗口打开{dede:field.title/}目标地址">{dede:field.coolurl/}</a></td> 122 </tr> 123 <tr> 124 <tdwidth="23%"height="24"align="center"bgcolor="#FBFEF5"> 125 <b>酷站名字:</b> 126 </td> 127 <tdwidth="77%"bgcolor="#FFFFFF">  {dede:field.coolname/}</td> 128 </tr> 129 <tr> 130 <tdwidth="23%"height="24"align="center"bgcolor="#FBFEF5"> 131 <b>酷站介绍:</b> 132 </td> 133 <tdwidth="77%"bgcolor="#FFFFFF">  {dede:field.coolhelp/}</td> 134 </tr> 135 </table> 136 </div> 137 <!--/content--> 138 <divclass="dede_pages"> 139 <ulclass="pagelist"> 140 {dede:pagebreak/}141 </ul> 142 </div> 143 <!--/pages--> 144 <!--//顶踩--> 145 <divclass="newdigg"id="newdigg"> 146 <divclass="diggbox digg_good"onmousemove="this.style.backgroundPosition='left bottom';"onmouseout="this.style.backgroundPosition='left top';"onclick="javascript:postDigg('good',{dede:field.id/})"> 147 <divclass="digg_act">顶一下</div> 148 <divclass="digg_num">({dede:field.goodpost/})</div> 149 <divclass="digg_percent"> 150 <divclass="digg_percent_bar"><spanstyle="width:{dede:field.goodper/}%"></span></div> 151 <divclass="digg_percent_num">{dede:field.goodper/}%</div> 152 </div> 153 </div> 154 <divclass="diggbox digg_bad"onmousemove="this.style.backgroundPosition='right bottom';"onmouseout="this.style.backgroundPosition='right top';"onclick="javascript:postDigg('bad',{dede:field.id/})"> 155 <divclass="digg_act">踩一下</div> 156 <divclass="digg_num">({dede:field.badpost/})</div> 157 <divclass="digg_percent"> 158 <divclass="digg_percent_bar"><spanstyle="width:{dede:field.badper/}%"></span></div> 159 <divclass="digg_percent_num">{dede:field.badper/}%</div> 160 </div> 161 </div> 162 </div> 163 <scriptlanguage="javascript"type="text/javascript">getDigg({dede:field.id/});</script> 164 <!-- //顶踩部份的源码结束 --> 165 <!-- //分享代码开始 --> 166 <script src="/templets/default/js/art_share.js"></script> 167 <scriptsrc="/templets/default/js/list.js"></script> 168 <script>startList();</script> 169 <!--//分享代码结束--> 170 <divclass="boxoff"> <strong>------分隔线----------------------------</strong> </div> 171 <divclass="handle"> 172 <divclass="context"> 173 <ul> 174 <li>{dede:prenext get='pre'/}</li> 175 <li>{dede:prenext get='next'/}</li> 176 </ul> 177 </div> 178 <!--/context--> 179 <divclass="actbox"> 180 <ul> 181 <liid="act-fav"><ahref="{dede:field name='phpurl'/}/stow.php?aid={dede:field.id/}"target="_blank">收藏</a></li> 182 <liid="act-err"><ahref="{dede:field name='phpurl'/}/erraddsave.php?aid={dede:field.id/}&title={dede:field.title/}"target="_blank">挑错</a></li> 183 <liid="act-pus"><ahref="{dede:field name='phpurl'/}/recommend.php?aid={dede:field.id/}"target="_blank">推荐</a></li> 184 <liid="act-pnt"><ahref="#"onClick="window.print();">打印</a></li> 185 </ul> 186 </div> 187 <!--/actbox--> 188 </div> 189 <!--/handle--> 190 </div> 191 <!--/viewbox--> 192 <!--//AJAX评论区--> 193 {dede:include file='ajaxfeedback.htm' /} </div> 194 <!--//左边内容结束--> 195 <!--//右边内容开始--> 196 <divclass="pright">{dede:memberinfos}197 <divclass="infos_userinfo"> 198 <dlclass="tbox light"> 199 <dtclass='light'><strong>发布者资料</strong></dt> 200 <ddclass='light'> <ahref="[field:spaceurl /]"class="userface"><imgsrc="[field:face/]"width="52"height="52" /></a> <ahref='[field:spaceurl/]' class="username">[field:uname/]</a> <spanclass="useract"> <ahref="[field:spaceurl /]"class="useract-vi">查看详细资料</a> <ahref="[field:spaceurl /]&action=guestbook"class="useract-pm">发送留言</a> <ahref="[field:spaceurl /]&action=newfriend"class="useract-af">加为好友</a> </span> <spanclass="userinfo-sp"><small>用户等级:</small>[field:rankname /]</span> <spanclass="userinfo-sp"><small>注册时间:</small>[field:jointime function="MyDate('Y-m-d H:m',@me)"/]</span> <spanclass="userinfo-sp"><small>最后登录:</small>[field:logintime function="MyDate('Y-m-d H:m',@me)"/]</span> </dd> 201 </dl> 202 </div> 203 {/dede:memberinfos}204 <divclass="pright"> 205 <div> 206 <dlclass="tbox"> 207 <dt><strong>栏目列表</strong></dt> 208 <dd> 209 <ulclass="d6"> 210 {dede:channel type='son' currentstyle="211 <li><ahref='~typelink~'class='thisclass'>~typename~</a></li> 212 "}213 <li><ahref='[field:typeurl/]'>[field:typename/]</a></li> 214 {/dede:channel}215 </ul> 216 </dd> 217 </dl> 218 </div> 219 <divid="contentRtPicAD"style="margin:10px auto">{dede:myad name='contentRtPicAD'/}</div> 220 <divclass="commend mt1"> 221 <dlclass="tbox light"> 222 <dtclass='light'><strong>推荐内容</strong></dt> 223 <ddclass='light'> 224 <ulclass="d4"> 225 {dede:arclist flag='c' titlelen=42 row=6}226 <li><ahref="[field:arcurl/]">[field:title/]</a> 227 <p>[field:description function='cn_substr(@me,80)'/]...</p> 228 </li> 229 {/dede:arclist}230 </ul> 231 </dd> 232 </dl> 233 </div> 234 <!--/commend--> 235 <divclass="hot mt1"> 236 <dlclass="tbox light"> 237 <dtclass='light'><strong>热点内容</strong></dt> 238 <ddclass='light'> 239 <ulclass="c1 ico2"> 240 {dede:arclist row=10 orderby=click}241 <li><ahref="[field:arcurl/]">[field:title/]</a></li> 242 {/dede:arclist}243 </ul> 244 </dd> 245 </dl> 246 </div> 247 <divid="contentRtPicAD2"style="margin:10px auto">{dede:myad name='contentRtPicAD2'/}</div> 248 </div> 249 <!--/pright--> 250 </div> 251 <divid="innerfooterAD2"style="margin:10px auto; width:726px">{dede:myad name='innerfooterAD2'/}</div> 252 {dede:include filename="footer.htm"/}253 <!--/footer--> 254 </body> 255 </html>
article_cool
2.list_cool
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <htmlxmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <metahttp-equiv="Content-Type"content="text/html; charset={dede:global.cfg_soft_lang/}" /> 5 <title>{dede:field.title/}_{dede:global.cfg_webname/}</title> 6 <metaname="keywords"content="{dede:field name='keywords'/}" /> 7 <metaname="description"content="{dede:field name='description' function='html2text(@me)'/}" /> 8 <linkhref="{dede:global.cfg_templeturl/}/style/dedecms.css"rel="stylesheet"media="screen"type="text/css" /> 9 </head> 10 <bodyclass="articlelist"> 11 {dede:include filename="head.htm"/}12 <!--/header--> 13 14 <divclass="channel-nav w960 center clear"> 15 <ul> 16 {dede:channel currentstyle="<liclass='thisclass'><ahref='~typelink~'><span>~typename~</span></a> </li>"}17 <li><ahref='[field:typeurl/]'><span>[field:typename/]</span></a></li>{/dede:channel}18 </ul> 19 <spanclass="back"> 20 <ahref="{dede:global.cfg_cmsurl/}/">返回首页</a> 21 </span> 22 </div><!--/channel-nav--> 23 24 <divclass="w960 center clear mt1"> 25 <divclass="pleft"> 26 <divclass="place"> 27 <strong>当前位置:</strong>{dede:field name='position'/}28 </div><!--/place--> 29 <divclass="listbox"> 30 <ulclass="e2"> 31 {dede:list pagesize='10'}32 <li> 33 [field:array runphp='yes']@me = (empty(@me['litpic']) ? "" : "<ahref='{@me['arcurl']}'class='preview'><imgsrc='{@me['litpic']}'/></a>"); [/field:array]34 <ahref="[field:arcurl/]"class="title">[field:title/]</a> 35 <spanclass="info"> 36 <small>日期:</small>[field:pubdate function="GetDateTimeMK(@me)"/]37 <small>点击:</small>[field:click/]38 <small>好评:</small>[field:scores/]39 <small>地区:</small>[field:coolarea/]40 <small>颜色:</small>[field:coolcolor/]41 <small>行业:</small>[field:coolprofession/]42 </span> 43 <pclass="intro"> 44 [field:description/]...45 </p> 46 </li> 47 {/dede:list}48 </ul> 49 </div><!--/listbox--> 50 <divclass="dede_pages"> 51 <ulclass="pagelist"> 52 {dede:pagelist listitem="info,index,end,pre,next,pageno" listsize="5"/}53 </ul> 54 </div><!--/pages--> 55 </div><!--/pleft--> 56 57 <divclass="pright"> 58 <divclass="commend"> 59 <dlclass="tbox"> 60 <dt><strong>推荐内容</strong></dt> 61 <dd> 62 <ulclass="d4"> 63 {dede:arclist flag='c' titlelen=42 row=6}64 <li><ahref="[field:arcurl/]">[field:title/]</a> 65 <p>[field:description function='cn_substr(@me,80)'/]...</p> 66 </li>{/dede:arclist}67 </ul> 68 </dd> 69 </dl> 70 </div><!--/commend--> 71 72 <divclass="hot mt1"> 73 <dlclass="tbox"> 74 <dt><strong>热点内容</strong></dt> 75 <dd> 76 <ulclass="c1 ico2"> 77 {dede:arclist row=10 orderby=click}78 <li><ahref="[field:arcurl/]">[field:title/]</a></li> 79 {/dede:arclist}80 </ul> 81 </dd> 82 </dl> 83 </div> 84 85 86 </div><!--/pright--> 87 </div> 88 89 {dede:include filename="footer.htm"/}90 <!--/footer--> 91 92 </body> 93 </html>
list_cool
3.index_cool
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <htmlxmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <metahttp-equiv="Content-Type"content="text/html; charset={dede:global.cfg_soft_lang/}" /> 5 <title>{dede:field.title/}_{dede:global.cfg_webname/}</title> 6 <metaname="keywords"content="{dede:field name='keywords'/}" /> 7 <metaname="description"content="{dede:field name='description' function='html2text(@me)'/}" /> 8 <linkhref="{dede:global.cfg_templets_skin/}/style/dedecms.css"rel="stylesheet"media="screen"type="text/css" /> 9 </head> 10 <bodyclass="channel"> 11 {dede:include filename="head.htm"/}12 <!--/header--> 13 14 <divclass="channel-nav w960 center clear"> 15 <divclass='sonnav'> 16 {dede:channel type='son' currentstyle="<span><ahref='~typelink~'class='thisclass'>~typename~</a></span>"}17 <span><ahref='[field:typeurl/]'>[field:typename/]</a></span>{/dede:channel}18 </div> 19 </div><!--/channel-nav--> 20 21 <divclass="w960 center clear mt1"> 22 <divclass="pleft"> 23 <divclass="flashnews"> 24 <scriptlanguage='javascript'> 25 linkarr= newArray();26 picarr= newArray();27 textarr= newArray();28 varswf_width=280;29 varswf_height=192;30 varfiles= "";31 varlinks= "";32 vartexts= "";33 //这里设置调用标记 34 {dede:arclist flag='f'row='5'}35 linkarr[[field:global.autoindex/]] = "[field:arcurl/]";36 picarr[[field:global.autoindex/]] ="[field:litpic/]"; 37 textarr[[field:global.autoindex/]] = "[field:title function='html2text(@me)'/]";38 {/dede:arclist}39 for(i=1;i<picarr.length;i++){40 if(files=="") files = picarr[i];41 else files +="|"+picarr[i];42 }43 for(i=1;i<linkarr.length;i++){44 if(links=="") links = linkarr[i];45 else links +="|"+linkarr[i];46 }47 for(i=1;i<textarr.length;i++){48 if(texts=="") texts = textarr[i];49 else texts +="|"+textarr[i];50 }51 document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ swf_width +'" height="'+ swf_height +'">'); 52 document.write('<param name="movie" value="{dede:global.cfg_templets_skin/}/images/bcastr3.swf"><param name="quality" value="high">');53 document.write('<param name="menu" value="false"><param name=wmode value="opaque">');54 document.write('<param name="FlashVars" value="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'">');55 document.write('<embed src="{dede:global.cfg_templets_skin/}/images/bcastr3.swf" wmode="opaque" FlashVars="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'& menu="false" quality="high" width="'+swf_width+'" height="'+swf_height+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>');56 </script> 57 </div><!--/flashnews--> 58 <divclass="topcommand"> 59 <dlclass="tbox"> 60 <dt><strong>频道头条</strong></dt> 61 <dd> 62 <divclass="onenews"> 63 {dede:arclist flag='h' limit='0,1'}64 <h2><ahref="[field:arcurl/]">[field:title/]</a></h2> 65 <p>[field:description function='cn_substr(@me,110)'/]...<ahref="[field:arcurl/]">[查看全文]</a></p> 66 {/dede:arclist}67 </div><!--/onenews--> 68 <ulclass="c2 ico1"> 69 {dede:arclist flag='h' limit='1,6'}70 <li><ahref="[field:arcurl/]">[field:title/]</a></li> 71 {/dede:arclist}72 </ul> 73 </dd> 74 </dl> 75 </div><!--/topcommand--> 76 77 <divclass="picnews mt1"> 78 <dlclass="tbox"> 79 <dt><strong>图文资讯</strong></dt> 80 <dd> 81 <ulclass="e1"> 82 {dede:arclist row=5 orderby=pubdate type='image.' imgwidth='124' imgheight='94'}83 <li><ahref="[field:arcurl/]">[field:image/]<spanclass="title">[field:title/]</span></a></li>{/dede:arclist}84 </ul> 85 </dd> 86 </dl> 87 </div><!--/picnews--> 88 89 <divclass="listbox"> 90 {dede:channelartlist}91 <dlclass="tbox"> 92 <dt><strong><ahref="{dede:field name='typeurl'/}">{dede:field name='typename'/}</a></strong><spanclass="more"><ahref="{dede:field name='typeurl'/}">更多...</a></span></dt> 93 <dd> 94 <ulclass="d1 ico3"> 95 {dede:arclist titlelen='60' row='8'}96 <li><spanclass="date">[field:pubdate function="MyDate('m-d',@me)"/]</span><ahref="[field:arcurl /]">[field:title /]</a></li> 97 {/dede:arclist}98 </ul> 99 </dd> 100 </dl> 101 {/dede:channelartlist}102 </div><!--/listbox--> 103 </div><!--/pleft--> 104 105 <divclass="pright"> 106 <divclass="commend"> 107 <dlclass="tbox"> 108 <dt><strong>推荐内容</strong></dt> 109 <dd> 110 <ulclass="d4"> 111 112 {dede:arclist flag='c' titlelen=42 row=6}113 <li><ahref="[field:arcurl/]">[field:title/]</a> 114 <p>[field:description function='cn_substr(@me,80)'/]...</p> 115 </li>{/dede:arclist}116 </ul> 117 </dd> 118 </dl> 119 </div><!--/commend--> 120 <divid="conrightAD"style="margin:10px auto">{dede:myad name='listRtPicAD'/}</div> 121 <divclass="hot mt1"> 122 <dlclass="tbox"> 123 <dt><strong>热点内容</strong></dt> 124 <dd> 125 <ulclass="c1 ico2"> 126 {dede:arclist row=10 orderby=click}127 <li><ahref="[field:arcurl/]">[field:title/]</a></li> 128 {/dede:arclist}129 </ul> 130 </dd> 131 </dl> 132 </div> 133 134 </div><!--/pright--> 135 </div> 136 <divid="footAD"style="margin:10px auto; width:726px">{dede:myad name='innerfooterAD'/}</div> 137 {dede:include filename="footer.htm"/}138 <!--/footer--> 139 140 </body> 141 </html>
index_cool
4.对article_cool的简单解析
{dede:include filename="head.htm"/} 包含头部(系统的头部,可以自定义)
{dede:include filename="footer.htm"/} 包含尾部
{dede:global.cfg_templets_skin/} 代表默认模板地址\templets\default
{dede:field.title/}_{dede:global.cfg_webname/} 文章标题_网站名字
<meta name="keywords" content="{dede:field.keywords/}" /> 文章关键字
<meta name="description" content="{dede:field.description function='html2text(@me)'/}" /> 文章描述
src="{dede:global.cfg_cmsurl/} 网站根目录
<div class="place"> <strong>当前位置:</strong> {dede:field name='position'/} </div> 当前网页定位,根据栏目层级 当前位置: 首页 > 酷站欣赏 >
时间:</small>{dede:field.pubdate function="MyDate('Y-m-d H:i',@me)"/}<small>来源:</small>{dede:field.source/}
{dede:field.description runphp='yes'} 运行php代码
if(@me<>'' )@me = ' 如果描述不为空,当前描述为:(一段HTML代码)
<div class="intro">'.@me.'</div> .@me.中.是PHP中的链接字符,相当与Java中的+
';
{/dede:field.description} 该段代码的意思是描述为空应该什么都不做,不为空加上相应的代码
{dede:field.coolurl/}酷站内容模型中有一个coolurl字段
{dede:field.coolname/} 有coolname字段
{dede:field.coolhelp/} 有coolhelp字段
5.效果图
四、添加插件查询pr值,收录状况,域名whois,alexa排名
mooPHP 开发框架 www.moophp.org
站长工具查询集
首先将tool考到网站根目录plus下,再在article_cool中添加
<a href="/plus/tool/pr.php?site={dede:field.coolurl/}" target="_blank">PR值</a> <a href="/plus/tool/site.php?
site={dede:field.coolurl/}" target="_blank">
收录状况</a> <a href="/plus/tool/whois.php?domain={dede:field.coolurl/}" target="_blank">
域名whois <a href="/plus/tool/alexa.php?url={dede:field.coolurl/}" target="_blank">alexa排名</a>
效果图
通过动态读取直接显示pr值等到具体页面而不以超链接的形式
四、使用lightbox实现点击图片弹出原图
1、将lightbox考到网站根目录下
2、在模板中引入相应的js和css文件
3、在a标签中添加rel属性
4、点解图片,效果图
5、该效果在火狐上不成功,Firefox是跳转到另一个页面显示图片
这个版本可能有一点问题,有一个应该可靠的版本,需要的朋友可以下一下
http://www.zhangxinxu.com/wordpress/2010/01/jquery-lightboxbalupton%e7%89%88%e5%9b%be%e7%89%87%e5%b1%95%e7%a4%ba%e6%8f%92%e4%bb%b6%e8%ae%b2%e8%a7%a3/
转载于:https://www.cnblogs.com/wuxinyiwu/p/8093347.html
dedecms---一个简单酷站的构建及解析相关推荐
- php 跳转qq群代码_一个简单QQ群聊案例代码解析(PHP实现)
问题: 使用面向对象编程的方式实现以下业务逻辑: 1. 张三使用账号a,密码b登录了qq 2. 显示出张三最后的登录的时间 3. 张三查看了 1小时内的行政部门群的信息(这个群里有张三,李四,王五,其 ...
- Django博客开发(十三)—一个简单的站内搜索
最近在努力的翻译Apple的测试文档,英文差果然是一个硬伤. 背景 博客内容越来越多了,慢慢的发现有时候需要一个搜索引擎来处理一些搜索的要求.当然,不需要那么复杂的逻辑,我们的博客只需要一个很小很小的 ...
- 今天 发现了 一个 推酷 站,总结了些知识,希望大家学习
http://www.tuicool.com/topics/11450042?st=1&lang=1 推酷 Bigcommerce Ajax同步远程跨域加载N个Magento信息 ...
- 一个简单实用的电子称数据接收/解析类(C#)(附简单使用实例)
一个C#写的接收电子称数据并解析出重量数据的类. 之前单位购买了两架电子称,同时单独购买了配套的软件.该软件是用Delphi 7写就的,界面老旧就不说了,关键是功能太弱了,基本只能简单地记录一下称重的 ...
- 《Python Cookbook 3rd》笔记(2.19):实现一个简单的递归下降分析器
实现一个简单的递归下降分析器 问题 你想根据一组语法规则解析文本并执行命令,或者构造一个代表输入的抽象语法树.如果语法非常简单,你可以自己写这个解析器,而不是使用一些框架. 解法 在这个问题中,我们集 ...
- python推荐系统-利用python构建一个简单的推荐系统
摘要: 快利用python构建一个属于你自己的推荐系统吧,手把手教学,够简单够酷炫. 本文将利用python构建一个简单的推荐系统,在此之前读者需要对pandas和numpy等数据分析包有所了解. 什 ...
- 【前端酷站】分享一个纯 Javascript 的图表库与立体像素风制作~
今天小编为大家推荐一个神奇的酷站.ECharts,一个纯 Javascript 的图表库. 以下是各个几个不错的界面的介绍: 首页: http://echarts.baidu.com/ 在首页有完整的 ...
- 基于python的系统构建_利用python构建一个简单的推荐系统
摘要: 快利用python构建一个属于你自己的推荐系统吧,手把手教学,够简单够酷炫. 本文将利用python构建一个简单的推荐系统,在此之前读者需要对pandas和numpy等数据分析包有所了解. 什 ...
- java jsf_使用Java和JSF构建一个简单的CRUD应用
java jsf 使用Okta的身份管理平台轻松部署您的应用程序 使用Okta的API在几分钟之内即可对任何应用程序中的用户进行身份验证,管理和保护. 今天尝试Okta. JavaServer Fac ...
- 使用Java和JSF构建一个简单的CRUD应用
使用Okta的身份管理平台轻松部署您的应用程序 使用Okta的API在几分钟之内即可对任何应用程序中的用户进行身份验证,管理和保护. 今天尝试Okta. JavaServer Faces(JSF)是用 ...
最新文章
- 报错解决:cp: error while loading shared libraries: libc.so.6: cannot open shared object file: No such fi
- idea可以使用flash框架吗_这个框架厉害了,使用它几分钟就可以编写一个微信插件...
- 智慧解析第12集:老板心理学
- 生产上如何设置线程池参数?拒绝策略怎么配?|| Executors 中 JDK 给你提供了,为什么不用??
- VC常用数据类型使用转换详解
- 2015-7-24 从新开始博客之路
- 关于win7启动看不到桌面的解决方法
- App installation failed (A valid provisioning profile for this executable was not found)
- Ros学习笔记(六)Launch启动文件
- Java设计模式------工厂模式-------工厂方法模式
- Qt QJson遍历
- 怎么搭建三合一源码优惠券网站步骤教程
- 74ls20设计半加器_用74ls138设计全加器
- OpenGL 编程指南笔记——第8章 OpenGL 绘制像素、位图、字体和图像
- 前端高级——Node的变迁
- 网络重置后网络适配器丢失和网络适配器前面是黄色叹号怎么办?
- 2018 Google IO
- 咏南linux中间件状态查看,咏南跨平台中间件
- 推送本地镜像到docker私有仓库
- 企业怎么制作网站?怎么制作网站教程步骤