Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Clicking Javascript
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Clicking Javascript
Clicking Javascript
10-05-2009 10:07 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hi
Could someone give me a hand with a javascript script I have on my page to rotate ads for our sponsors please?. I thought I used to be able to click these but they don't seem to be clickable.
I'm not that technical and Javascript is scrictly cut and paste for me.
Any help would be appreciated if you get a xhance to look at the source code. The element is at the bottom of the home page but you will see all the code is dumped into the Head .
www.mulbartonfootball.org.uk
Could someone give me a hand with a javascript script I have on my page to rotate ads for our sponsors please?. I thought I used to be able to click these but they don't seem to be clickable.
I'm not that technical and Javascript is scrictly cut and paste for me.
Any help would be appreciated if you get a xhance to look at the source code. The element is at the bottom of the home page but you will see all the code is dumped into the Head .
www.mulbartonfootball.org.uk
Message 1 of 2
(672 Views)
1 REPLY 1
Re: Clicking Javascript
11-05-2009 9:11 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hi
This is the way that I do it:
in the <body> put
Make a folder on the Server called "banner-bin" in it put "banners_468x60.js" Open NotePad and put in:
and save it as: banners_468x60.js
This is the way that I do it:
in the <body> put
<!-- Begin Banner 468x60 Code --><script LANGUAGE="javascript" TYPE="text/javascript" SRC="http://www.YourDomain.org.uk/banner-bin/banners_468x60.js"></script>
<!-- End Banner 468x60 Code -->
Make a folder on the Server called "banner-bin" in it put "banners_468x60.js" Open NotePad and put in:
<!-- Begin
var how_many_ads = 2;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {
txt="";
url="http://www.plus.net/myreferrals/new.html?w645oK3%2FCguHYxTpF%2BrJmaN1pUvjjiG3D1bVskuKOJ4%3D";
alt="Paying too much for broadband? Move to PlusNet broadband and save £££s. Free setup now available - terms apply. PlusNet broadband.";
banner="http://portal.plus.net/images/referrals/adsl-broadband/super-fast/move-for-free-2mb.gif";
width="468";
height="60";
}
if (ad==2) {
txt="";
url="http://petitions.number10.gov.uk/dataprofiling/";
alt="WARNING. IF YOUR ISP IS: BT, Virgin Media, Talktalk. Your ISP is a Phorm Partner. Find a Phorm free internet service provider. Pleas sign the number 10 petition to stop this.";
banner="http://www.dhea.org.uk/banner-images/warning_on_phorm.gif";
width="500";
height="60";
}
document.write('');
document.write('<a href=\"' + url + '\" target=\"_blank\">');
document.write('<img src=\"' + banner + '\" width=')
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + alt + '\" border=0><br>');
document.write('<small>' + txt + '</small></a>');
document.write('');
// End -->
and save it as: banners_468x60.js
Message 2 of 2
(127 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page