1 hyter Jan 03, 2008 04:17
3 hyter Jan 03, 2008 04:24
:'-( Ok.
4 laibcoms Jan 03, 2008 07:54
Just hardcode it to your skin instead :) That's what I did.
5 edb Jan 03, 2008 09:02
Cha-ching!!! Laibcoms wins the "you rock" prize for completing the answer. My bad yah?
6 hyter Jan 03, 2008 17:43
Laibcoms,
I do have it hardcoded into my skin, but I wanted it above certain items.
7 afwas Jan 03, 2008 18:00
Use an <iframe> in a freeHTML widget.
8 hyter Jan 03, 2008 18:22
So I would put my ad script onto a separate HTML, than make the iFrame's source that page?
9 yabba Jan 03, 2008 19:04
Or use javascript for the random if/else ;)
¥
10 hyter Jan 03, 2008 19:18
This is what I have for Javascript only, but it isn't work... any help?
<script>
var number = Math.round(101*Math.random());
if (number > 50)
{
<!--
google_ad_client = "pub-XXXXXXXXXXX0578";
//120x240, created 1/2/08
google_ad_slot = "XXXXXX136";
google_ad_width = 120;
google_ad_height = 240;
google_cpa_choice = ""; // on file
//-->
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
}
else
{
<!--
google_ad_client = "pub-XXXXXXXXXXX0578";
//120x240, created 1/2/08
google_ad_slot = "XXXXXXX271";
google_ad_width = 120;
google_ad_height = 240;
//-->
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
}
</script>
11 yabba Jan 03, 2008 19:28
It needs to be more like this :
<script type="text/javascript">
<!--
var number = Math.round(101*Math.random());
if (number > 50)
{
google_ad_client = "pub-XXXXXXXXXXX0578";
//120x240, created 1/2/08
google_ad_slot = "XXXXXX136";
google_ad_width = 120;
google_ad_height = 240;
google_cpa_choice = ""; // on file
}
else
{
google_ad_client = "pub-XXXXXXXXXXX0578";
//120x240, created 1/2/08
google_ad_slot = "XXXXXXX271";
google_ad_width = 120;
google_ad_height = 240;
}
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
¥
12 hyter Jan 03, 2008 19:37
Works perfect. Thanks.
Probably because it's not HTML ;)
The free html widget does not allow PHP code. HTML and, as far as I know, javascript are okay, but server-side stuff is simply not gonna work.