广告联盟网

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

想提高Google Adsense中Firefox推广广告的收入吗

[复制链接]
跳转到指定楼层
1#
发表于 2007-4-23 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
想提高Google Adsense中Firefox推广广告的收入吗?可以试试这样的方法!<br /><br />打开后,在浏览器顶部会有一个模仿IE自带的黄色警告条,比较醒目。点过以后就不会再出现了,除非客户端删除cookie。据说这样推广forefox效果非常好,我就抄过来试试看,不敢独享,公布出来:<br /><br />把下面的内容保存为firefox.js<br /><br />----------------BEGIN-----------------------<br /><br />// This function does the actual browser detection<br />function writeCookie(name, value, hours)<br />{<br />&nbsp;&nbsp;var expire = &quot;&quot;;<br />&nbsp;&nbsp;if(hours != null)<br />&nbsp;&nbsp;{<br />&nbsp; &nbsp; expire = new Date((new Date()).getTime() + hours * 3600000);<br />&nbsp; &nbsp; expire = &quot;; expires=&quot; + expire.toGMTString();<br />&nbsp;&nbsp;}<br />&nbsp;&nbsp;document.cookie = name + &quot;=&quot; + escape(value) + expire;<br />}<br /><br />// Example:<br />// alert( readCookie(&quot;myCookie&quot;) );<br />function readCookie(name)<br />{<br />&nbsp;&nbsp;var cookieValue = &quot;&quot;;<br />&nbsp;&nbsp;var search = name + &quot;=&quot;;<br />&nbsp;&nbsp;if(document.cookie.length &gt; 0)<br />&nbsp;&nbsp;{<br />&nbsp; &nbsp; offset = document.cookie.indexOf(search);<br />&nbsp; &nbsp; if (offset != -1)<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;offset += search.length;<br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;end = document.cookie.indexOf(&quot;;&quot;, offset);<br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;if (end == -1) end = document.cookie.length;<br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;cookieValue = unescape(document.cookie.substring(offset, end))<br />&nbsp; &nbsp; }<br />&nbsp;&nbsp;}<br />&nbsp;&nbsp;return cookieValue;<br />}<br /><br /><br /><br />function hasIE_hasIE() {<br />var ua = navigator.userAgent.toLowerCase();<br />return ((ua.indexOf('msie') != -1) &amp;&amp; (ua.indexOf('opera') == -1) &amp;&amp; <br />&nbsp; &nbsp;&nbsp; &nbsp;(ua.indexOf('webtv') == -1) &amp;&amp;<br />&nbsp; &nbsp;&nbsp; &nbsp;(location.href.indexOf('seenIEPage') == -1));<br />}<br /><br />function hasIE_showLayer(whichLayer)<br />{<br />if (document.getElementById)<br />&nbsp;&nbsp;{<br />&nbsp; &nbsp; var style2 = document.getElementById(whichLayer).style;<br />&nbsp; &nbsp; style2.display = &quot;block&quot;;<br />&nbsp;&nbsp;}<br />else if (document.all)<br />&nbsp;&nbsp;{<br />&nbsp; &nbsp; var style2 = document.all[whichLayer].style;<br />&nbsp; &nbsp; style2.display = &quot;block&quot;;<br />&nbsp;&nbsp;}<br />else if (document.layers)<br />&nbsp;&nbsp;{<br />&nbsp; &nbsp; var style2 = document.layers[whichLayer].style;<br />&nbsp; &nbsp; style2.display = &quot;block&quot;;<br />&nbsp;&nbsp;}<br />}<br /><br />// Hides and shows sections of the page based on whether or not it's<br />// running in IE<br />function hasIE_hideAndShow()<br />{<br />if (hasIE_hasIE())<br />{<br />&nbsp;&nbsp;hasIE_showLayer(&quot;hasIE_level1&quot;); <br />}<br />else{}<br />}<br /><br />function hasIE_ContinueWithoutFF() {<br />&nbsp;&nbsp;if (location.href.indexOf('?') != -1)<br />&nbsp; &nbsp; location.href += '&amp;seenIEPage=1';<br />&nbsp;&nbsp;else<br />&nbsp; &nbsp; location.href += '?seenIEPage=1';<br />}<br />function closediv(i) {<br />&nbsp;&nbsp;writeCookie(&quot;status&quot;,&quot;showed24&quot;,240);<br />&nbsp;&nbsp;document.getElementById(i).style.display='none'; <br />}<br /><br />document.write(&quot;&lt;table id=\&quot;hasIE_level1\&quot; style='display:none;clear:both;line-height:100%;' height=\&quot;22\&quot; width=\&quot;100%\&quot; cellspacing=0 cellpadding=0 border=0&gt;&lt;tr&gt;&lt;td&gt;&lt;div style=\&quot;background:#FFFFBB; text-align: center; padding:2px 0 3px; border-bottom:1px solid #ffd532;position:absolute; top:0; left:0; width:100%; z-index:100\&quot;&gt;&lt;div id=\&quot;iewarning\&quot; style=\&quot;width:19px; float:left;\&quot;&gt;&lt;img align=\&quot;absmiddle\&quot; src=\&quot;\&quot; border=\&quot;0\&quot; /&gt;&lt;/div&gt;&lt;div id=\&quot;closeimg\&quot; style=\&quot;width:19px; float:right;\&quot;&gt;&lt;a href=\&quot;javascript:closediv('hasIE_level1');\&quot; title=\&quot;关闭提示\&quot;&gt;&lt;img src=\&quot;\&quot; align=\&quot;absmiddle\&quot; border=\&quot;0\&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=\&quot; margin-top:4px;marign-left:4px;font-size:12px;color:#092E20\&quot;&gt;发现您正在使用老掉牙的IE浏览器,强烈推荐您在 Windows 操作系统中使用最安全的浏览器: &lt;a href=\&quot;http://www.******.net/AD/Firefox/firefox.html\&quot; title=\&quot;FireFox火狐浏览器2.0下载\&quot; target=\&quot;_blank\&quot;&gt;&lt;font color=\&quot;#ee0000\&quot;&gt;FireFox火狐浏览器2.0,点击下载&lt;/a&gt;&lt;/font&gt; !&lt;/div&gt;&lt;/div&gt;&lt;div style=\&quot;clear:both\&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&quot;); <br /><br />if(document.referrer.indexOf(&quot;hao123&quot;)==-1 &amp;&amp; document.referrer.indexOf(&quot;hao222&quot;)==-1)<br />{<br />&nbsp;&nbsp;if(readCookie(&quot;status&quot;) != &quot;showed24&quot;)<br />&nbsp;&nbsp;{<br />&nbsp; &nbsp; hasIE_hideAndShow();<br />&nbsp;&nbsp;}<br />}<br /><br />----------------END-------------------------------
2#
发表于 2007-4-23 | 只看该作者
楼主把URL编辑下吧
3#
发表于 2007-4-23 | 只看该作者
这个不错哈
4#
发表于 2007-4-23 | 只看该作者
不算作弊吗?
5#
发表于 2007-4-23 | 只看该作者
没发现关闭按钮图标
6#
发表于 2007-4-26 | 只看该作者
这种不算作弊么?有没有知道?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT, 2024-10-3 , Processed in 0.066984 second(s), 19 queries .

Powered by Discuz! X3.2

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

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