(加100分)动网PHP1.4论坛加流量统计器

来源:百度知道 编辑:UC知道 时间:2024/07/07 19:20:12
我安装了一个动网PHP1.4论坛,想在论坛底部加一个流量统计器,我已经获得流量统计器的javascript代码,代码如下:
<script language="javascript" type="text/javascript" src="http://js.users.51.la/1643648.js"></script>
<noscript><a href="http://www.51.la/?1643648" target="_blank"><img alt="我要啦免费统计" src="http://img.users.51.la/1643648.asp" style="border:none" /></a></noscript>

但是,怎样将javascript代码插入到php代码中呢?我不会这个,而且我将代码保存成liuliang.php文件,然后在论坛首页index.php中用
<?php
include("liuliang.php");
?>
来引用PHP也不行!要怎样做呢?是不是要进到动网论坛的后台才可以改的?解决后可得高分。

把这些代码存成liuliang.html然后再include就行了
<?php
include("liuliang.html");
?>

你要写liuliang.php的话内容就是
echo '<script language="javascript" type="text/javascript" src="http://js.users.51.la/1643648.js"></script>
<noscript><a href="http://www.51.la/?1643648" target="_blank"><img alt="我要啦免费统计" src="http://img.users.51.la/1643648.asp" style="border:none" /></a></noscript>';