效果预览图
以wind风格为例。
打开template/wind/post.htm
<div >
<span
onmouseover="this.className='iconhover'" onmouseout="this.className=''">无</span>
<img onmouseover="this.className='iconhover'" onmouseout="this.className=''" align="absmiddle" src="$imgpath/post/emotion/$icon" />
</span><img align="absmiddle" src="$imgpath/$stylepath/menu-down.gif" />
<input onkeydown="if(icontab==0){show_icontab()}" onFocus="if(icontab==0){show_icontab();}" onBlur="if(icontab==0 || icontab==1){show_icontab();}" name="atc_title" value="$atc_title" tabindex="1" title="请输入标题" />
</div></div>
<div ></div>
<div onmouseover="if(icontab==1)icontab=2;" onmouseout="if(icontab==2)icontab=1;" >
<input type="hidden" name="atc_iconid" value="$icon" />
<div >
<img onmouseover="this.className='iconhover'" onmouseout="this.className=''" align="absmiddle" src="$imgpath/post/emotion/0.gif" />
<!--
EOT;
foreach($icondb as $key=>$value){print <<<EOT
-->
<img onmouseover="this.className='iconhover'" onmouseout="this.className=''" align="absmiddle" src="$imgpath/post/emotion/$value" />
<!--
EOT;
}print <<<EOT
-->
替换成:
-->
<input onkeydown="if(icontab==0){show_icontab()}" onFocus="if(icontab==0){show_icontab();}" onBlur="if(icontab==0 || icontab==1){show_icontab();}" name="atc_title" value="$atc_title" tabindex="1" title="请输入标题" />
</div></div>
<div ></div>
<div >
<div >
<!--
EOT;
foreach($icondb as $key=>$value){print <<<EOT
-->
<!--
EOT;
}print <<<EOT
-->
新闻热点
疑难解答
图片精选