|
在头文件里的 banner 广告位子,原来是用gif图片的(jnclub_banner.gif),可有的朋友更喜欢用flash或作成导航栏目,这样就要修改头文件很不方便。我把他改为了标签的形式,这样,就很方便在后台通过修改标签内容来任意改变为你所需要的形式了。以后也可以方便地更换各种banner广告了。
下面为修改添加标签后的头文件head.htm代码:- <!--
- <?
- print <<<EOT
- -->
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "[url]http://www.w3.org/TR/html4/loose.dtd[/url]">
- <script language=JavaScript >
- rr=Math.random();
- document.write("<script src='{$N_path}index_tpl.php?java="+rr+"'><\/script>");
- </script>
- <HTML>
- <HEAD>
- <TITLE> {$dbartic[title]} {$dbsort[name]} {$webdb[webname]}</TITLE>
- <META http-equiv=Content-Type content="text/html; charset=gb2312">
- <META name="keywords" content= "绿化,园林,苗木,景观。">
- <META name="description" content= "上海汇秀园林景观绿化网的主办单位:上海汇秀园林有限公司以生产、销售园林苗木为主业,以提供新优园林植物材料为特色。">
- <meta name="alias"content="[url]http://lvhua.ok586.cn[/url]">
- <meta name="owner"content="[email]lvhua@ok586.cn[/email]">
- <LINK href="{$N_path}images/jnclub/css.css" type=text/css rel=stylesheet>
- <LINK href="/favicon.ico" rel="shortcut icon">
- <META content="MSHTML 6.00.2900.2180" name=GENERATOR>
- </HEAD>
- <BODY>
- <DIV id=header>
- <DIV id=top>
- <DIV id=top_flot>
- <P id=calendar>
- <SCRIPT src="{$N_path}images/jnclub/date.js" type=text/javascript></SCRIPT>
- </P>
- <P id=banner><td noWrap align=middle width=468 bgcolor=#f0f1f3 rowspan=2>$label[head_logo_ad001]</td></P></DIV>
- <DIV id=logo><a href="index.htm" target="_self"><IMG src="{$N_path}images/jnclub/images/logo.gif" alt={$webdb[webname]} border="0"></a></DIV>
- </DIV>
- <DIV id=nav>
- <div align="center">
- <UL>
- <LI><A href="{$N_path}"><SPAN>首页</SPAN></A>
- <LI><A href="bencandy.php?fid=24&id=553"><SPAN>公司简介</SPAN></A>
- <LI><A href="bencandy.php?fid=24&id=555"><SPAN>产品报价</SPAN></A>
- <LI><A href="[url]http://lvhua.ok586.cn/list.php?fid=2[/url]"><SPAN>产品应用</SPAN></A>
- <LI><A href="[url]http://lvhua.ok586.cn/pic/[/url]"><SPAN>绿化图库</SPAN></A>
- <LI><A href="[url]http://lvhua.ok586.cn/[/url]"><SPAN>供求信息</SPAN></A>
- <LI><A href="bencandy.php?fid=24&id=556"><SPAN>联系我们</SPAN></A>
- </LI>
- </UL>
- </div>
- </DIV>
- <!--end left-->
- <!--right end -->
- </div>
- </DIV>
- <table width="734" border="0" align="center" bgcolor="#E5EEF5">
- <td width="67%" bgcolor="#E5EEF5"><form name=form1 action={$N_path}login.php method=post><DIV id=sub_nav>
-
- <script>
- if(lfjid!=''){
- document.write(' ◎ 欢迎你:<b><font color="#FF0000">'+lfjid+'</font></b> 回来!');
- document.write(' <a href="{$N_path}myinfo.php" target=_blank>个人管理中心</a>');
- if(newpm=='1'){
- document.write('<bgsound src={$N_path}{$N_path}images/jnclub/default/msg.wav loop=1>');
- document.write(' <a href="{$N_path}pm.php?job=receivebox" target=_blank><font color=red>你有新的消息</font></a>');
- }else{
- document.write(' <a href="{$N_path}pm.php?job=write" target=_blank>短信中心</a>');
- }
- document.write(' <a href="{$N_path}search.php">高级搜索</a>');
- document.write(' <a href="{$N_path}login.php?action=quit">安全退出</a>');
- }else{
- document.write(' <a href="{$N_path}register.php">免费注册</a>');
- document.write(' <a href="{$N_path}login.php" target=_blank>会员登录</a>');
- document.write(' 用户名:<input class=button size=12 name=loginuser>');
- document.write(' 密码:<input class=button type=password size=12 name=loginpwd>');
- document.write(' <input class=button type=submit value=通行证 name=login22>');
- document.write('<input type="hidden" name="step" value="2">');
- }
- </script>
- </DIV></form></td>
- <td width="33%" bgcolor="#FFFFFF">$label[webinfojn08]</td>
- </tr>
- </table>
- </BODY></HTML>
- <!--
- EOT;
- ?>
- -->
复制代码
网站示意:
http://lvhua.ok586.cn |
|