Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
iwics2 #1
how to fix random banner changes?
OK - got my positioning in the right place, but what am I doing wrong, since
out of my 6 images (the random banners) only one will show up? All are in the
same folder/path...after the 1st one loads successfully, when I reload, I just
get a "?" mark logo in my banner area.
How to fix this?
Here's what I got in my head section:
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! [url]http://javascript.internet.com[/url] -->
<!-- Begin
var maxAdNo = 6
var adNo
var myAd = new Array()
myAd[0] = '<img src="images/banners/homeBanner.jpg" width="800" height="212"
border="0">'
myAd[1] = '<img src="images/banners/homeBanner2.jpg" width="800" height="212"
border="0">'
myAd[2] = '<img src="images/banners/homeBanner3.jpg" width="800" height="212"
border="0">'
myAd[3] = '<img src="images/banners/homeBanner4.jpg" width="800" height="212"
border="0">'
myAd[4] = '<img src="images/banners/HomebannerTinCan.swf" width="800"
height="212" border="0">'
myAd[5] = '<img src="images/banners/SFbanner.swf" width="800" height="212"
border="0">'
// End -->
</script>
Here's what I got in my body section:
<tr>
<td align="middle" bgcolor="#336600"><img height="10" src="images/spacer.gif"
width="3" /></td></tr>
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td bgcolor="#ffffff" height="1"><img height="1" src="images/spacer.gif"
width="3" /></td></tr>
<tr>
<td width="800">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
adNo = Math.round(Math.random() * maxAdNo)
document.write(myAd[adNo])
// End -->
</script>
</td>
Thanks
KB
iwics2 Guest
-
Has anyone seen the "Mad Mad House" banner or the Pizza Hut banner? [video]
Has anyone seen these two banners anyplace? I've run into both of them on Yahoo and am desperately seeking a tutorial or any resources on how these... -
Using Math.random to go to random frames
Hello everyone. My cerebral density is preventing me from seeing the solution to this problem. I have the following code which causes the user to... -
Random Flash Banner like Macromedia Homepage
Hello everyone, Would anyone know of a tutorial on how to perform a random swf banner like that of the Macromedia home page? Would that be... -
Help with Web Banner
Hi! I need some help getting started with a web banner. I want the banner to include 2-3 images and some text. How do I insert images into the... -
Random image in a random place.
Anyone know javascript? I have a grid(4 x 4) of 16 spacer images and a few text links on the side. Each text link represents a different folder of...



Reply With Quote

