笛声悠扬 Publish time 2007-1-1 21:41:19

php168v3.5的11k风格头文件head里的banner文件修改

在头文件里的 banner 广告位子,原来是用gif图片的(jnclub_banner.gif),可有的朋友更喜欢用flash或作成导航栏目,这样就要修改头文件很不方便。我把他改为了标签的形式,这样,就很方便在后台通过修改标签内容来任意改变为你所需要的形式了。以后也可以方便地更换各种banner广告了。
下面为修改添加标签后的头文件head.htm代码:

<!--
<?
print <<<EOT
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<script language=JavaScript >
rr=Math.random();
document.write("<script src=&#39;{$N_path}index_tpl.php?java="+rr+"&#39;><\/script>");
</script>
<HTML>
<HEAD>
<TITLE> {$dbartic} {$dbsort} {$webdb}</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META name="keywords" content= "绿化,园林,苗木,景观。">
<META name="description" content= "上海汇秀园林景观绿化网的主办单位:上海汇秀园林有限公司以生产、销售园林苗木为主业,以提供新优园林植物材料为特色。">
<meta name="alias"content="http://lvhua.ok586.cn">
<meta name="owner"content="lvhua@ok586.cn">
<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</td></P></DIV>
<DIV id=logo><a href="index.htm" target="_self"><IMG src="{$N_path}images/jnclub/images/logo.gif" alt={$webdb} 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="http://lvhua.ok586.cn/list.php?fid=2"><SPAN>产品应用</SPAN></A>
   <LI><A href="http://lvhua.ok586.cn/pic/"><SPAN>绿化图库</SPAN></A>
   <LI><A href="http://lvhua.ok586.cn/"><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!=&#39;&#39;){
document.write(&#39; ◎ 欢迎你:<b><font color="#FF0000">&#39;+lfjid+&#39;</font></b> 回来!&#39;);
document.write(&#39; <a href="{$N_path}myinfo.php" target=_blank>个人管理中心</a>&#39;);
if(newpm==&#39;1&#39;){   
   document.write(&#39;<bgsound src={$N_path}{$N_path}images/jnclub/default/msg.wav loop=1>&#39;);
   document.write(&#39; <a href="{$N_path}pm.php?job=receivebox" target=_blank><font color=red>你有新的消息</font></a>&#39;);
}else{
   document.write(&#39; <a href="{$N_path}pm.php?job=write" target=_blank>短信中心</a>&#39;);
}
document.write(&#39; <a href="{$N_path}search.php">高级搜索</a>&#39;);
document.write(&#39; <a href="{$N_path}login.php?action=quit">安全退出</a>&#39;);
}else{
document.write(&#39; <a href="{$N_path}register.php">免费注册</a>&#39;);
document.write(&#39; <a href="{$N_path}login.php" target=_blank>会员登录</a>&#39;);
document.write(&#39; 用户名:<input class=button size=12 name=loginuser>&#39;);
document.write(&#39; 密码:<input class=button type=password size=12 name=loginpwd>&#39;);
document.write(&#39; <input class=button type=submit value=通行证 name=login22>&#39;);
document.write(&#39;<input type="hidden" name="step" value="2">&#39;);
}
</script>
   </DIV></form></td>
<td width="33%" bgcolor="#FFFFFF">$label</td>
</tr>
</table>
</BODY></HTML>
<!--
EOT;
?>
-->



网站示意:
http://lvhua.ok586.cn
Pages: [1]
View full version: php168v3.5的11k风格头文件head里的banner文件修改