Coinbase

Author Topic: Simple ads  (Read 3399 times)

0 Members and 1 Guest are viewing this topic.

Offline canadiancray

  • Newbie
  • *
  • Posts: 2
Simple ads
« on: May 19, 2007, 03:17:55 pm »
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??

Offline canadiancray

  • Newbie
  • *
  • Posts: 2
Re: Simple ads
« Reply #1 on: May 19, 2007, 03:57:16 pm »
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>

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Simple ads
« Reply #2 on: May 22, 2007, 03:52:56 pm »
Have you tried without the html tags. I don't think you need those.

SMF Ads Support Forum

Re: Simple ads
« Reply #2 on: May 22, 2007, 03:52:56 pm »
.