经常看到一些页面,打开后QQ窗口弹出,也没在意,没啥技术含量,就是js实现打开链接,然后链接引用应用,所以一直也没去理会它,但是想到这个方式还是比较不错的,说不定以后会用的上,于是找了个类似网站提取js并解密后,放在下面,需要的时候直接复制可用,免得要找的时候又找不到。varqq_chat=true;functionPlayJsAdPopWin(){if(qq_chat){popwin=window.location.href='tencent://message/?uin=251323708&Site=在线咨询&Menu=yes'}};setTimeout("PlayJsAdPopWin()",8000);
<styletype="text/css">#gongao{width:1000px;height:30px;overflow:hidden;line-height:30px;font-size:13px;font-family:'宋体';background:#DDE5ED;color:#0C77CF;font-weight:bold;}#gongao#scroll_begin,#gongao#scroll_end{display:inline}</style><scripttype="text/javascript">functionScrollImgLeft(){varspeed=50;varscroll_begin=document.getElementById("scroll_begin");varscroll_end=document.getElementById("scroll_end");varscroll_div=document.getElementById("scroll_div");scroll_end.innerHTML=scroll_begin.innerHTML;functionMarquee(){if(scroll_end.offsetWidth-scroll_div.scrollLeft<=0)scroll_div.scrollLeft-=scroll_begin.offsetWidth;elsescroll_div.scrollLeft++;}varMyMar=setInterval(Marquee,speed);scroll_div.onmouseover=function(){clearInterval(MyMar);}scroll_div.onmouseout=function(){MyMar=setInterval(Marquee,speed);}}</script><divid="gongao"><divstyle="width:900px;height:30px;margin:0auto;white-space:nowrap;overflow:hidden;"id="scroll_div"class="scroll_div"><divid="scroll_begin">${affiche.content}${affiche.content}${affiche.content}${affiche.content}${affiche.content}${affiche.content}</div><divid="scroll_end"></div></div><scripttype="text/javascript">ScrollImgLeft();</script></div>
经过测试貌似{dede:php}标签中不能直接使用其他普通标签例如:{dede:field.title/},{dede:global.cfg_webname/}但是我们可以通过其他方式来实现相应的功能。{dede:php}print_r($refObj->Fields);{/dede:php}这样的输出可以得到当前页面相关联的一些变量,比如dede:field.title/}中的值也会在这个数组中显示,如果这里要得到标题则可以用$title=$refObj->Fields['title'];现在我们要在dede:php标签中使用全局配置的那些变量如何得到了,我目前是通过嵌套数据库标签得到的,如:{dede:php}$row=$dsql->GetOne("selectvaluefromhnx_sysconfigwherevarname='cfg_webname');print_r($row[value]);{/dede:php}这样就可以得到全局配置的变量里面的值了
dedecms5.7交叉栏目可能有点问题,不能使用,以下操作试试:修改相关文件,实现交叉栏目修改的文件:include/taglib/arclist.lib.php第267行:if($ctag->GetAtt('cross')=='1')改成if($ctag->GetAtt('cross')!='0')第282行:if($arr['crossid']!='')$selquery="SELECTid,topidFROM`dede_arctype`WHEREidIN('{$arr['crossid']}')ANDid<>'{$typeid}'ANDtopid<>'{$typeid}'";改成if($arr['crossid']!='')$selquery="SELECTid,topidFROM`dede_arctype`WHEREidIN({$arr['crossid']})ANDid<>'{$typeid}'ANDtopid<>'{$typeid}'";后台在后台栏目里面设置好要交叉,生成相关的栏目列表,这时我们就能看到我们想要的效果了,灵活的运用交叉栏目能够很好的帮助我们实现我们想要的特效。