Hi,
I am designing a web site for a friend’s business (non professional – he is doing me a favour by giving me the chance to get experience) and I am having a problem with Mozilla.
Basically what I am trying to do is have a page wich calls 2 functions via the onLoad event hander in the body tag.
I have done this as follows:
in the <script> </script> tags I have two functions I want to run on body onLoad:
function 1:showimage() – this is a rotating slide show with a fade effect
function 2:showAddress 1 () – this displays the address of one brance on body onload. Branch 2 can be displayed by clicking on text surrounded by <a href>tags , code is further down as this is where I am having problems in Mozilla.
I have bundled these two function into one function to run when the page loads as follows:
function runFunctions(){
showimage();
showAddress1();
}
this is called by :
<body onLoad=”runFunctions()”>
Now this all works fine in IE, but in Mozilla, both functions are called, but then I have problems with the showAddress function
The show address functions are accessed as follows in the HTML:
<a href=”javascript:void(0)”onclick=”showAddress1()”> Main Branch </a>|
<a href=”javascript:void(0)”onclick=”showAddress2()”> Other Branch</a>
I.e. The main Branch address appears on the page straig away (I have used innerHTML to do this) and when the user clicks on “Other Branch” on the page, the second address replaces the first and vice-versa.
In IE everything works fine, but in Mozilla, when I click on the link text (i.e. Main Branch or Other Branch) nothing happens.
Can anybosy tell me why this is not working in Moz but it does in IE?
I have uploaded the page as a test and it can be viewed under the following URL:
[url]http://myweb.tiscali.co.uk/feelutinetchanel/index
many thanks in advance!
LF