|
放置 Google's Ad 所制作的一个N简单的模块
|
|
|
|
Author: Autoit | Date:2006-06-06 | View: 13054 | Digg: 52 |
|
以前见很多人在讨论. 因为自己没这个 Ad, 也不清楚他里面到底是什么, 所以也没帮什么忙, 我申请的今天下来后, 简单看了看,基本上都是 javascript 的调用. 单纯的 html文件而已. 动手做一个吧,因为我没见到这样的[很多人说直接做在模板里.] 建立mod_htmlcode.php文件: <?php
/*
######################
# www.autoit.cn.com #
# jOOmla! Autoit! #
######################
*/
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
$html = $params->get( 'htmlcode' );
echo str_replace('<br />', '', $html);?>
建立对应xml文件:mod_htmlcode.xml <?xml version="1.0" encoding="utf-8"?>
<mosinstall type="module" version="1.0.x">
<name>Html Code Module</name>
<author>Autoit</author>
<creationDate>2006-06-06</creationDate>
<copyright>www.autoit.cn</copyright>
<license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license>
<authorEmail>autoit9@gmail.com</authorEmail>
<authorUrl>www.autoit.cn</authorUrl>
<version>1.0</version>
<description>静态化的代码:包含 html及javascript !</description>
<files>
<filename module="mod_htmlcode">mod_htmlcode.php</filename>
</files>
<params>
<param name="moduleclass_sfx" type="text" default="" label="Module Class Suffix" />
<param name="htmlcode" type="textarea" default="" label="html" cols="60" rows="30" />
</params>
</mosinstall>你也可以直接点这里下载. 方法很简单,就是把贴进去的代码直接输出来而已。我过滤了个br.现在这个模块应该可以放 google's AD, Google's 搜索, 一般的任何 html. 当然想放个 flash的话,也是可以的, 用 DW之类的工具在个页面里插入你的Flash后,修改下他的路径, 把 <obj......一段直接贴上也就可以了. Permanent URL: http://www.autoit.cn/index.php/content/view/36/25.html
|
| « First « 1 2 » Last » |