Front Page 2003 and Rotating Banner Ads

E

ErinR

Hello....

I'm trying to determine the best way to create a rotating banner ad for use
with FP2003. I want each image to link to a separate URL. I understand that
the Banner Ad Manager included in FP2003 does not support linking to more
than on URL, so I need a different option.

Does anyone have any programs that they have purchased that they
particularly like and feel are easy to use? I’m weary of using Java only
because from what I’ve read it isn’t supported by Windows XP, and I use XP.
Am I going to have a hard time finding something that isn’t Java related?

My other idea would be to just have a different image appear (one at a time)
each time that the page is refreshed, and each image would link to a
different URL. Would I have more options if I choose to do it this way?

I’m new to this and open to any and all suggestions...

Thanks!
 
T

Trevor L.

ErinR said:
Hello....

My other idea would be to just have a different image appear (one at
a time) each time that the page is refreshed, and each image would
link to a different URL. Would I have more options if I choose to do
it this way?

This will display a random image every time the page is refreshed

<html>
<head>
<script type="text/javascript">
function selectimg()
{
no=Math.round(Math.random()*8)
document.images('imgno').src
= (no == 1) ? "images/display/trevor.jpg"
: (no == 2) ? "images/display/trevor-and-carole.jpg"
: (no == 3) ? "images/display/trevor-and-carole.gif"
: "images/04-04-18-trevor.jpg"

document.getElementById('linkno').href
= (no == 1) ? "about.html"
: (no == 2) ? "album.html"
: (no == 3) ? "siteinfo.html"
: "sitemap.html"

document.getElementById('linktext').innerHTML
= (no == 1) ? "about.html"
: (no == 2) ? "album.html"
: (no == 3) ? "siteinfo.html"
: "sitemap.html"
}
</script>
</head>

<body onload="selectimg()">
<a href="" id="linkno"><img id="imgno" src=""><span
id="linktext"></span></a>
</body>
</html>

I just added the code for the links, and almost didn't expect it to work,
but it does :))
You can leave out the <span> if you don't want to display the name of the
page being linked to.

Is this what you want ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Images are pixelated when saving to PDF 0
banner ads 3
Banner Ads 2
are you using Banner Ads? 0
banner ads 3
Placing banner ads 3
How to hyperlink FP2k's Rotating banner ads ? 4
How to rotate banner ads? 9

Top