广告联盟网

标题: JS的具体调用方法和JS生成工具 [打印本页]

作者: Lxyanzi    时间: 2006-10-17
标题: JS的具体调用方法和JS生成工具
一直都用直接加代码

也准备用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;);
作者: Lxyanzi    时间: 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;);

紧凑点是不这样也可以?
作者: 优雅    时间: 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 = \ ...
可以的,去掉换行。
作者: filalu    时间: 2006-10-17
记得有人说是用绝对地址调用非常不好
能给说说坏在那里吗?
作者: 孤帆    时间: 2006-10-17
我好像都是JS调用的。不过都是系统后台广告管理生成的。

生成二个文件,

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

生成后是ad.js和ad1.htm

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

页面在调用ad.js

感觉不是很好。广告统计不到。
作者: getlist    时间: 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
...

作者: 路路    时间: 2006-10-17
原帖由 getlist 于 2006-10-17 22:54 发表弱智“站长”何其多。

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

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

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

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

其实自己懒,大部分人都是会的。




欢迎光临 广告联盟网 (https://ggads.com/) Powered by Discuz! X3.2