News:

Help keep this project going by donating or buying adseller pro

Main Menu
Coinbase

Simple ads

Started by canadiancray, May 19, 2007, 04:17:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

canadiancray

I want to ad a very simple advertising area to my website when compared to most here. LOL.

I want to place an add at the top of every page & the user welcome page. I see how to do that in the ad management section.

My forum is for a local Aquarium Club & we just want to have the logo's of our sponsors rotate through this space.

What type of code could I use for this??

canadiancray

I tried adding this code but it won't rotate through the ads for some reason.

Quote<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
<script language="JavaScript1.1">
<!--
var image="";
var banners=0;
function cycle() {
  if (++banners > 2) banners=1;
    loadbanners();
    document.banner1.src = image;
    window.setTimeout('cycle();',7000);
  }
function loadbanners() {
   if (banners==1)
      {
      image="http://i12.photobucket.com/albums/a224/CanadianCray/bigalslogo.jpg";
      }
   if (banners==2)
      {
      image="http://i12.photobucket.com/albums/a224/CanadianCray/bigalslogo2.jpg";
      }
   if (banners==3)
      {
      image="ADVERTGIFHERE";
      }
}
//-->
</script>
<script language="JavaScript1.1">
<!--
var link = "http://www.bigalshamilton.ca"
function urlswitch() {
if (banners==1)
{
link = "http://www.bigalshamilton.ca";
}
if (banners==2)
{
link = "";
}
if (banners==3)
{
link = "";
}
return link;
}
//-->
</script>
</head>

<bodyonLoad="window.setTimeout('cycle();',7000);(loadbanners());(urlswitch());">
<a href="http://planmagic.com" onclick="this.href=urlswitch()">
<img width="103" height="100" border="0" src="http://i12.photobucket.com/albums/a224/CanadianCray/bigalslogo2.jpg" name="banner1"></a>

</body>
</html>

bigguy

Have you tried without the html tags. I don't think you need those.