CyanBlue
11-20-2006, 10:20 PM
I am laying out the buttons in HTML file...
<div id="nextActive" name="nextActive" class="active"><a href="javascript:goNext();"><em>N</em>ext</a></div>
<div id="nextFlash"><a href="javascript:goNext2();"><em>N</em>ext</a></div>
and I positioned those two layers into the exactly the same area in the CSS file because what I want to is to make the next button flash when it needs to be...
I have a JavaScript function that hides the normal next image file and displays the animated gif file for the nextFlash layer...
var style1 = document.getElementById('nextActive').style;
style1.display = "none";
var style2 = document.getElementById('nextFlash').style;
style2.display = "block";
It does the job but the problem is that I cannot make that animated gif image in the nextFlash layer clickable to execute the goNext2() function...
I see the image blinking but I cannot click it... Anybody know what I am missing??? :(
<div id="nextActive" name="nextActive" class="active"><a href="javascript:goNext();"><em>N</em>ext</a></div>
<div id="nextFlash"><a href="javascript:goNext2();"><em>N</em>ext</a></div>
and I positioned those two layers into the exactly the same area in the CSS file because what I want to is to make the next button flash when it needs to be...
I have a JavaScript function that hides the normal next image file and displays the animated gif file for the nextFlash layer...
var style1 = document.getElementById('nextActive').style;
style1.display = "none";
var style2 = document.getElementById('nextFlash').style;
style2.display = "block";
It does the job but the problem is that I cannot make that animated gif image in the nextFlash layer clickable to execute the goNext2() function...
I see the image blinking but I cannot click it... Anybody know what I am missing??? :(