搜索栏右侧添加天气预报的方法:
打开模板文件 template\default\common\pubsearchform.htm
查找代码:(大约在第35-36行)
- <!--{echo implode('', $srchhotkeywords);}-->
- <!--{/if}-->
复制代码
在这段代码下面添加:
- <div style="float:right; margin:11px 0 0 0;"><iframe style="filter:chroma(color=#ffffff)" src="http://weather.hao.360.cn/index_small_userdata_20100701.html?t='+now+'_'+citycode+'.html" width="380" height="22" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" allowtransparency="true" scrolling="no"></iframe></div>
复制代码
清空缓存看效果:
http://cn.kxhaha.com/forum.php
|