Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Random Banner Code?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Random Banner Code?

 Post Reply Post Reply
Author
MortiOli View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 May 2002
Location: United Kingdom
Status: Offline
Points: 514
Post Options Post Options   Thanks (0) Thanks(0)   Quote MortiOli Quote  Post ReplyReply Direct Link To This Post Topic: Random Banner Code?
    Posted: 08 November 2007 at 9:02pm
Hi all,

I run the WWF implemented Google Ads (with my Adsense ID), but what I'd like to do is to rotate the main Google Ad with a banner of my own.

I've had a go, but can't get my head around it.

Would anyone be able to assist please?

Thanks,

Oli
Back to Top
true_king View Drop Down
Groupie
Groupie
Avatar

Joined: 05 November 2007
Location: Hell
Status: Offline
Points: 97
Post Options Post Options   Thanks (0) Thanks(0)   Quote true_king Quote  Post ReplyReply Direct Link To This Post Posted: 09 November 2007 at 2:58am
what you mean i not understand........ what you exactly want to do?
Back to Top
freakyfred View Drop Down
Groupie
Groupie


Joined: 29 March 2007
Location: United Kingdom
Status: Offline
Points: 171
Post Options Post Options   Thanks (0) Thanks(0)   Quote freakyfred Quote  Post ReplyReply Direct Link To This Post Posted: 09 November 2007 at 9:09am
He wants to rotate between the Google adverts and and a banner of his choice.
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 09 November 2007 at 2:37pm
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
MortiOli View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 May 2002
Location: United Kingdom
Status: Offline
Points: 514
Post Options Post Options   Thanks (0) Thanks(0)   Quote MortiOli Quote  Post ReplyReply Direct Link To This Post Posted: 10 November 2007 at 5:30pm
Cheers Scotty, I'll take a look.  However, I'm just after the code really, so it will randomly show either the Google Ads which came with WWF, or my own banner.

I have a licensed WWF forum.
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 10 November 2007 at 5:37pm
Well phpAdsNew is good if you have a few banners you want to show, and you can add Google Ads in easily.

if its just a simple one banner (or a few, and google ads then try:

<%
    Dim intTotal
    Dim intNumber

    intTotal    = 2

    randomize
    intNumber    = int( rnd * intTotal ) + 1

    if intNumber = 1 then
        Response.Write("*code for google ads*")
    elseif intNumber = 2 then
        Response.Redirect("<a href="link.asp"><img src=""yourbanner.gif""></a>")
    end if

%>


if this isnt wot you want, then explain what your trying to do and i'll come up with something else.
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.