广告联盟网

 找回密码
 注册
查看: 693|回复: 7
打印 上一主题 下一主题

JS的具体调用方法和JS生成工具

[复制链接]
跳转到指定楼层
1#
发表于 2006-10-17 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
一直都用直接加代码

也准备用js调用,

大家一直都在问js的使用方法,现在就确认具体的使用方法,js可以按GG的要求加入相应的数量,而IF只能有一个

在网页中用如下来调
<script type=&quot;text/javascript&quot; src=&quot;/ad.js&quot;></script>

ad.js的内容为

document.write(&quot;<script type=\&quot;text/javascript\&quot;><!--&quot;);
document.write(&quot;google_ad_client = \&quot;pub-Id\&quot;;&quot;);
document.write(&quot;google_ad_width = 468;&quot;);
document.write(&quot;google_ad_height = 60;&quot;);
document.write(&quot;google_ad_format = \&quot;468x60_as\&quot;;&quot;);
document.write(&quot;google_ad_type = \&quot;text_image\&quot;;&quot;);
document.write(&quot;google_ad_channel =\&quot;0\&quot;;&quot;);
document.write(&quot;google_color_border = \&quot;FFFFFF\&quot;;&quot;);
document.write(&quot;google_color_bg = \&quot;FFFFFF\&quot;;&quot;);
document.write(&quot;google_color_link = \&quot;000000\&quot;;&quot;);
document.write(&quot;google_color_text = \&quot;000000\&quot;;&quot;);
document.write(&quot;google_color_url = \&quot;000000\&quot;;&quot;);
document.write(&quot;//--></script>&quot;);
document.write(&quot;<script type=\&quot;text/javascript\&quot;&quot;);
document.write(&quot;  src=\&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js\&quot;>&quot;);
document.write(&quot;</script>&quot;);
2#
 楼主| 发表于 2006-10-17 | 只看该作者
document.write(&quot;<script type=\&quot;text/javascript\&quot;><!--google_ad_client = \&quot;pub-id\&quot;;google_ad_width = 468;google_ad_height = 60;google_ad_format = \&quot;468x60_as\&quot;;google_ad_type = \&quot;text_image\&quot;;google_ad_channel =\&quot;7441773456\&quot;;google_color_border = \&quot;FFFFFF\&quot;;google_color_bg = \&quot;FFFFFF\&quot;;google_color_link = \&quot;000000\&quot;;google_color_text = \&quot;000000\&quot;;google_color_url = \&quot;000000\&quot;;//--></script>&quot;);
document.write(&quot;<script type=\&quot;text/javascript\&quot; src=\&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js\&quot;></script>&quot;);

紧凑点是不这样也可以?
3#
发表于 2006-10-17 | 只看该作者
原帖由 Lxyanzi 于 2006-10-17 19:27 发表document.write(&quot;<script type=\&quot;text/javascript\&quot;><!--google_ad_client = \&quot;pub-6362675169721579\&quot;;google_ad_width = 468;google_ad_height = 60;google_ad_format = \ ...
可以的,去掉换行。
4#
发表于 2006-10-17 | 只看该作者
记得有人说是用绝对地址调用非常不好
能给说说坏在那里吗?
5#
发表于 2006-10-17 | 只看该作者
我好像都是JS调用的。不过都是系统后台广告管理生成的。

生成二个文件,

比如我们设定广告文件ad.js

生成后是ad.js和ad1.htm

GGAD的代码在ad1.htm里。ad.js再调用ad1.htm

页面在调用ad.js

感觉不是很好。广告统计不到。
6#
发表于 2006-10-17 | 只看该作者
弱智“站长”何其多。

估计ADSENSE的问答系统天天都收到这样的问题。也难为回答这些问题的这程序了。不知道这些计算机一天要吐几次。
原帖由 孤帆 于 2006-10-17 21:02 发表我好像都是JS调用的。不过都是系统后台广告管理生成的。

生成二个文件,

比如我们设定广告文件ad.js

生成后是ad.js和ad1.htm

GGAD的代码在ad1.htm里。ad.js再调用ad1.htm

页面在调用ad.js
...
7#
发表于 2006-10-17 | 只看该作者
原帖由 getlist 于 2006-10-17 22:54 发表弱智“站长”何其多。

估计ADSENSE的问答系统天天都收到这样的问题。也难为回答这些问题的这程序了。不知道这些计算机一天要吐几次。
哈哈
8#
发表于 2006-10-17 | 只看该作者
原帖由 getlist 于 2006-10-17 22:54 发表弱智“站长”何其多。

估计ADSENSE的问答系统天天都收到这样的问题。也难为回答这些问题的这程序了。不知道这些计算机一天要吐几次。
用得着这么说人家嘛。

像我们这些菜鸟加懒人没办法。

自己一个一个的加js太累,用后台多快。复制粘贴,搞定。呵呵。

其实自己懒,大部分人都是会的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|广告联盟网  

GMT, 2024-9-30 , Processed in 0.071000 second(s), 20 queries .

Powered by Discuz! X3.2

© 2005-2021 www.ggads.com GGADS 广告联盟网

快速回复 返回顶部 返回列表