Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Dynamic Banner adds


Message #1 by andy@a... on Tue, 20 Feb 2001 17:35:20
How about this:

In the banner frame have a little js function called modifyBanner which
modifies the "src" attribute of the banner image (it can take the source
string as a parameter).

When a new page is loaded, make a js call something like the following:

parent.myBannerFrame.modifyBanner("NewBannerImage.gif") ;


You might need to make small updates to netscape this call, but it should
work.


Cheers,
Anil



----- Original Message -----
From: <andy@a...>
To: "javascript" <javascript@p...>
Sent: Tuesday, February 20, 2001 5:35 PM
Subject: [javascript] Dynamic Banner adds


> Hi
>
> Thanks for all the help so far.
>
> I have a framed site with a top navigation, with a banner add.
>
> Is it possible to dynamically change the banner add depending upon which
> page the user goes to, so enableing me to change the add as the user goes
> through the site?
>
> Thanks
>
> Andy Green
>
>
>


  Return to Index