博主资料

留言短消息 加为好友 收藏

用户ID:  62584
昵称:  hbcity

标题

个人主页:

日历

2005 - 5
1234567
891011121314
15161718192021
22232425262728
293031    
«» 2005 - 5 «»

日志分类

最新评论

日志文章列表

2005年05月28日 19:50:21

查看本页地址小插件!

临时演示:http://www.sms55.cn/reg.htmfree2.e-168.cn/yishutuan/bbs/index.php[/url] 底部



源自:PHPWind站长社区

http://www.sms55.cn/reg.htmhbcity.net/bbs/read.php?tid=619&fpage=1&toread=1[/url]



看到动网论坛上 有这个 就转过来啦!(不知道有没有人发哦!)



实用简单



Copy code

<table width='$tablewidth' align=center>

<tr>

<td width='5%'> <td>

<td width='90%'><script>

function copyCode(o){o.select();var js=o.createTextRange();js.execCommand("Copy");alert("复制成功!");}

document.write("<table align=center cellpadding=1 cellspacing=0><tr>");

document.write("<td width=10% nowrap class=tablebody1>本页URL地址(双击复制):</td>");

document.write("<td class=tablebody1><textarea onfocus=this.select() style='width:100%;overflow-y:visible;' ondblclick=copyCode(this) rows=1>");

document.write(self.location+"</textarea></td></tr></table>");

</script></td>

<td width='5%'> <td>

</tr></table>





把上面的代码加在header.htm

<!--

EOT;

?>-->上面



或者加在



footer.htm

<!--<?php print <<<EOT

-->下面



加在其他地方也行.......只要美观就行!!!^_^

类别: 无分类 |  评论(0) |  浏览(3225) |  收藏
2005年05月28日 19:02:13

10分钟制作当前风格的静态模板的方法!

COPY

WIND风格(官方默认)中的readtpl.htm

用记事本打开文件

1.把当前风格header.htm中的
<!--css--><style type='text/css'>
..........................
</style><!--css-->
复制替换掉readtpl.htm中的该部分

2.readtpl.htm中的

Copy code
<table cellspacing=0 cellpadding=0 width='$tablewidth' align='center'>
<tr><td><table cellspacing=0 cellpadding=0 width=100%>
<tr valign='bottom'><td align='left' class=banner>
<a href='$path/$db_bfn'><img src='$imgpath/$stylepath/logo.gif'></a></td>
<td align='right' class=banner></td></tr>
<tr><td align='center' height=1 bgcolor=#ffffff colspan=2></td></tr>
<tr><td align='center' class=cbg colspan=2 height=26>
<a href='$path/profile.php'>控制面板</a>
| <a href='$path/message.php'>短消息</a>
| <a href='$path/search.php'>搜索</a>
| <a href='$path/member.php'>会员</a>
| <a href='$path/faq.php'>帮助</a>
| <a href='$path/$db_bfn'>社区</a>
| <a href='$db_wwwurl/$db_cfn'>首页</a>
</td></tr>
</table></td></tr></table>
(也就是HEAD部分)
根据情况更改......(也可以把当前风格的header.htm相同部分替换)

3.readtpl.htm中的
Copy code
<center><small><font color="#999999">Powered by <a href="[url]http://www.phpwind.net/[/url]" style="color: #000000" target="_blank"><b>PHPWind</b> <b style="color:#FF9900">v$wind_version</b></a> Code © 2003-05 <a href="[url]http://www.phpwind.net/[/url]" target="_blank"><b>PHPWind</b></a> <br>
This is html template view this page faster<br><br>You can   <a href=$db_ceoconnect>contact us</a></font></small></center>
(也就是FOOT部分)
同样根据当前风格更改.......(也可以把当前风格的footer.htm替换)


4.修改完保存 上传到改风格模板下
-------------------------------------

另外还有一些READ部分的细节问题(情况不同) 参考当前风格的read.htm自己慢慢琢磨吧

另外注意FOOT图片的路径问题!!!!最好改成绝对路径!!

不同风格具体对待 本教材包括了大部分的风格修改方法.....

还有不懂的 去论坛发帖子或者给我留言吧..........

附:
关于footer.htm不能使用风格路径变量作为图片路径的bug及解决
============================================
打开global.php,查找下面红色部分代码:
function footer(){
global $db,$db_obstart,$db_footertime,$P_S_T,$mtablewidth,$footbg,$db_ceoconnect,$wind_version,$imgpath;


替换成:
function footer(){
global $db,$db_obstart,$db_footertime,$P_S_T,$mtablewidth,$footbg,$db_ceoconnect,$wind_version,$imgpath,$stylepath;

也就是在该行最后分号前面加 ,$stylepath
商业版不存在此问题

类别: 无分类 |  评论(0) |  浏览(3424) |  收藏