Thanks Mike:
I combined your response with the assistance from another response, and came
up with the following:
1. "PauseShow" subroutine changed to the following:
function PauseShow() {
if (play == true) {
document.getElementById('PauseButton').value = "Play";
play = false;
}
else {
document.getElementById('PauseButton').value = "Pause";
play = true;
pictimer = timer + delta;
SlideShow('slidepic');
}
}
2. Modified the HTML definition for the "Pause" button as follows:
<input type="button" value="Pause" name="PauseButton" id="PauseButton"
onclick="PauseShow()" style="font-family: sans-serif; font-size: 8pt">
That seems to have fixed the problem. Thanks!
Brian
<in********************@hotmail.com> wrote in message nd
news:11*********************@g14g2000cwa.googlegro ups.com...
Brian.Steele wrote:http://www.spiceisle.com/cgi-bin/sli...mages&type=jpg
The "Pause" button works in IE, but not in Firefox. Any ideas why?
The answer is the Firefox Javascript Console (Tools > Javascript
Console) which when you click the pause buttons says
Error: e has no properties
Source File:
http://www.spiceisle.com/cgi-bin/sli...mages&type=jpg
Line: 325
Look at line 325 which says
e.value = "Play";
e is defined at 324
var e = document.getElementById('PauseButton');
and you have no element in the page with an id of 'PauseButton'. At
line 453 use id instead of name.
If you have any other ideas on how the javascript can be improved, please
let me know.
A slightly flippant suggestion perhaps - don't use Microsoft Frontpage.
hth
mike