Print Page | Close Window

Random Banner Code?

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=24784
Printed Date: 30 March 2026 at 4:19am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Random Banner Code?
Posted By: MortiOli
Subject: Random Banner Code?
Date 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



Replies:
Posted By: true_king
Date Posted: 09 November 2007 at 2:58am
what you mean i not understand........ what you exactly want to do?


Posted By: freakyfred
Date Posted: 09 November 2007 at 9:09am
He wants to rotate between the Google adverts and and a banner of his choice.


Posted By: Scotty32
Date Posted: 09 November 2007 at 2:37pm
try http://www.openads.org - phpAdsNew 

-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: MortiOli
Date 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.


Posted By: Scotty32
Date 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 - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net