生命价值不在于获取多少,生命价值在于付出多少。有钱的人更有钱,这往往是一种必然。
<li><a rel="nofollow noopener noreferrer" href="/info/info3.html"class=s>企业文化 </a></li> <li><a rel="nofollow noopener noreferrer" href="/info/info4.html">新闻中心 </a></li> <li><a rel="nofollow noopener noreferrer" href="/info/info5.html">联系我们 </a></li>
{dede:arclist row='10' titlelen='20' channelid='1' typeid='1' orderby='id' orderway='asc' runphp="yes" } <li><a rel="nofollow noopener noreferrer" href="[field:arcurl /]" [field:global name=autoindex runphp="yes"](@me==3)? @me="class=s":@me="";[/field:global] >[field:title /] [field:url /]</a></li> {/dede:arclist} |
以上代码判断id=3时,加亮对应名称
改变颜色
{dede:arclist} <a rel="nofollow noopener noreferrer" href='xxx' id="arc[field:id/]" style="">[field:title/]</a> {/dede:arclist} <script type='text/javascript'> document.getElementById("arc[field:id/]").style.color="#ff0000"; </script> |
加样式
{dede:arclist} <a rel="nofollow noopener noreferrer" href='xxx' id="arc[field:id/]" class="">[field:title/]</a> {/dede:arclist} <script type='text/javascript'> document.getElementById("arc{dede:field.id /}").className="s"; </script> |
到此这篇关于dede判断当前文章就介绍到这了。知道你想要什么,一半在于知道得到它之前必须放弃什么。更多相关dede判断当前文章内容请查看相关栏目,小编编辑不易,再次感谢大家的支持!