Hi all,
Hope someone can help a newb to web development.
I am using a table and have a field
<td colspan="13">
<a href="#"
onclick="changeBanner();">
<img name="Banner" src="images/Banner0.gif" width="658"height="102" border="0" alt=""/>
</a>
</td>
The changeBanner function is simply:
var i = 0;
function changeBanner()
{
if (i >= 0 && i < 7)
{
i+=1;
Banner.src = "images/Banner" + i + ".gif";
}
else
{
i=0;
Banner.src = "images/Banner" + i + ".gif";
}
}
This is probably a bad way of doing things (not really sure because I am still learning) but it works fine in IE and Opera but will not work in Mozilla FireFox 1.0 or Mozilla 1.75.
Any suggestions are greatly appreciated.
TIA!!!!
Hope someone can help a newb to web development.
I am using a table and have a field
<td colspan="13">
<a href="#"
onclick="changeBanner();">
<img name="Banner" src="images/Banner0.gif" width="658"height="102" border="0" alt=""/>
</a>
</td>
The changeBanner function is simply:
var i = 0;
function changeBanner()
{
if (i >= 0 && i < 7)
{
i+=1;
Banner.src = "images/Banner" + i + ".gif";
}
else
{
i=0;
Banner.src = "images/Banner" + i + ".gif";
}
}
This is probably a bad way of doing things (not really sure because I am still learning) but it works fine in IE and Opera but will not work in Mozilla FireFox 1.0 or Mozilla 1.75.
Any suggestions are greatly appreciated.
TIA!!!!