vivienne2
07-10-2007, 12:02 PM
I found this article which was kind of interesting re: google adsense in strict xhtml sites: http://www.webwicked.com.au/journalentry-29.html.
I am trying it but it is a bit above my head considering I am not entirely sure that I can even embed an object successfully.
So what I have done is create a file called google.php with the following text:
<?php header("Content-Type: text/html;charset=utf-8"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<title>Sponsorship</title>
<style type="text/css">
body { margin: 0; padding: 0; width: 728; height:90}
</style>
</head>
<body>
<script type="text/javascript">
<!--
google_ad_client = "VALUE HERE";
google_alternate_color = "FFFFFF";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "000000";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "CC0000";
google_ui_features = "rc:6";
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</body>
</html>
Then I called this in my page like this:
<object data="/wkyp/jsfiles/googles.php" type="text/html"></object>
This is in this page: http://d691798.i86.quadrahosting.com.au/wkyp/
Needless to say it doesnt work but if anyone can see easily a mistake I could have made, I would really appreciate it
Thanks!
Vivienne
I am trying it but it is a bit above my head considering I am not entirely sure that I can even embed an object successfully.
So what I have done is create a file called google.php with the following text:
<?php header("Content-Type: text/html;charset=utf-8"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<title>Sponsorship</title>
<style type="text/css">
body { margin: 0; padding: 0; width: 728; height:90}
</style>
</head>
<body>
<script type="text/javascript">
<!--
google_ad_client = "VALUE HERE";
google_alternate_color = "FFFFFF";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "000000";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "CC0000";
google_ui_features = "rc:6";
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</body>
</html>
Then I called this in my page like this:
<object data="/wkyp/jsfiles/googles.php" type="text/html"></object>
This is in this page: http://d691798.i86.quadrahosting.com.au/wkyp/
Needless to say it doesnt work but if anyone can see easily a mistake I could have made, I would really appreciate it
Thanks!
Vivienne