need help adding ad

Status
Not open for further replies.

dcoates

New Member
Messages
129
Reaction score
0
Points
0
I am having a little trouble adding ads to my site one is a text link java script for the required ad by x10hosting and another is my google adsense. no matter where I put them even in a text field they just don't seem to show up and I am getting lost now. as far as I've ever known it should be a simple copy and paste. I've even tried tried setting different color text to see if that is the problem but no luck. My website is @ stillphotomemory.x10hosting.com I would like if possible to put these ads on the sides of my page but too advanced for me that's why I tried to put them in a tyext field. any help would be great. if you need to look at my code to help let me know.

Thanks Doug
 

Momiji

New Member
Messages
59
Reaction score
0
Points
0
ok so while looking at your source code i can see what your problem is.

You have your Google Ad script inside another script. You need to close the first script for the second to work.

HTML:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Still Photo Memories </title>
</head>
<body bgcolor="#111111" style="padding:0px; margin:0px">

<!-- saved from url=(0013)about:internet -->
<div id="main">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="100%"  style="height:100%"  align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="main.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#111111" />
<embed src="main.swf" quality="high" bgcolor="#111111" width="100%" style="height:100%" name="main" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</div>
<div align="left"><script type="text/javascript" src="http://x10hosting.com/adserve.js?dcoates"></script> <div>

<script>
resizeme= function () {
	
	if (document.body.clientWidth<766) {
		document.getElementById('main').style.width='766';
		}
	else {
		document.getElementById('main').style.width='100%';
	}

	if (document.body.clientHeight<800) {
			document.getElementById('main').style.height='800';
	}
	else {
		document.getElementById('main').style.height='100%';
	
	}
}

window.onresize =function() {
	resizeme();

};
window.onload =function() {
	resizeme();

};
</scritp>
<script type="text/javascript">
<!--google_ad_client = "pub-4827409459359025";
//200x200, created 12/28/07
google_ad_slot = "5615474155";
google_ad_width = 200;
google_ad_height = 200;//-->
</script>
<script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>	
</body>
</html>

Use that code :D
 

dcoates

New Member
Messages
129
Reaction score
0
Points
0
Did you mean to copy and paste the code there? I tried that and still nothing.
 
Last edited:

Momiji

New Member
Messages
59
Reaction score
0
Points
0
well then i do not know what to tell you as the ads that i have placed on my site work just fine.
 

coolv1994

Member
Messages
508
Reaction score
0
Points
16
ok heres your code
HTML:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Still Photo Memories </title>
</head>
<body bgcolor="#111111" style="padding:0px; margin:0px">

<!-- saved from url=(0013)about:internet -->
<div id="main">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="100%"  style="height:100%"  align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="main.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#111111" />
<embed src="main.swf" quality="high" bgcolor="#111111" width="100%" style="height:100%" name="main" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</div>
<div align="left"><script type="text/javascript" src="http://x10hosting.com/adserve.js?dcoates"></script> <div>

<script>
resizeme= function () {
	
	if (document.body.clientWidth<766) {
		document.getElementById('main').style.width='766';
		}
	else {
		document.getElementById('main').style.width='100%';
	}

	if (document.body.clientHeight<800) {
			document.getElementById('main').style.height='800';
	}
	else {
		document.getElementById('main').style.height='100%';
	
	}
}

window.onresize =function() {
	resizeme();

};
window.onload =function() {
	resizeme();

};
</scritp> <-- Code Problem Replace with </script>
<script type="text/javascript">
<!--google_ad_client = "pub-4827409459359025";
//200x200, created 12/28/07
google_ad_slot = "5615474155";
google_ad_width = 200;
google_ad_height = 200;//-->
</script>
<script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>	
</body>
</html>
so replace the </scritp> with </script>. just a typo lol
i like the site its cool
 
Last edited:

dcoates

New Member
Messages
129
Reaction score
0
Points
0
I copied and pasted that one and there either mabye it will take some time to come up but it's not there now. I'll wait and see what happens. but thanks for the help.
Edit:
well it's been 3 hours and still no ads. This is driving me crazy. I need to atleast get the ad for x10hosting up because I need it for the account type I have. the google adsense one would be a bonus.
 
Last edited:

curt15

New Member
Messages
96
Reaction score
0
Points
0
Are you using an Advert blocking program? If so, then it maybe blocking them, so you cannot see them.

Checked out your site, did you make it yourself or did you use a flash site maker? If you dont mind my asking
 
Last edited:

dcoates

New Member
Messages
129
Reaction score
0
Points
0
I am using a template from template monster, Expensive as hell but worth the money. And I don't know anything about any blocking program how do I find that out?

I know my ads are not pop up ads they are just text ads.

If it is easier for u to look at my files I'd be willing to let any body have a look at it.

Guess I forgot about scroll. They are showing up at the bottom of the page But I want them to show up to the left and right of the main flash window. Will that be very hard to do?
 
Last edited:

curt15

New Member
Messages
96
Reaction score
0
Points
0
I've disabled mine. On the bottom of the page, there is some text saying 'Monetize your website!'

It was worth it, its really nice.
 

curt15

New Member
Messages
96
Reaction score
0
Points
0
You would need to change the width of the flash file, so people could see that, you may need to either use CSS or Frames.
 

dcoates

New Member
Messages
129
Reaction score
0
Points
0
Ok I changed my flash size to make enough room to fit my ads on the side but how can I do it I've added a <Div Align="right"> and tried moving the script around but that's not doing anything for me.
 
Status
Not open for further replies.
Top