U
Uli666
Hi all!
I found this script that's very useful to me. The only problem is that it
only works in IE. Can you please help me to make it compatible with others
browsers (at lest Firefox)? I read that the problem is about the
document.all, but I don't know how to change it.
Thank you very much.
Ui666
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<bgsound src="#" loop="0" autostart="true" id="soundFile">
<script type="text/javascript">
function gotoNextPage(page) {
window.location='link.html';
}
function playSound(sound) {
document.all.soundFile.src="sound.wav";
window.setTimeout("gotoNextPage('" + sound + "');",3000);
}
</script>
</head>
<body>
<p><a href="link.html" onclick="playSound('sound'); return false;">
Page 2</a></p>
</body>
</html>
I found this script that's very useful to me. The only problem is that it
only works in IE. Can you please help me to make it compatible with others
browsers (at lest Firefox)? I read that the problem is about the
document.all, but I don't know how to change it.
Thank you very much.
Ui666
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<bgsound src="#" loop="0" autostart="true" id="soundFile">
<script type="text/javascript">
function gotoNextPage(page) {
window.location='link.html';
}
function playSound(sound) {
document.all.soundFile.src="sound.wav";
window.setTimeout("gotoNextPage('" + sound + "');",3000);
}
</script>
</head>
<body>
<p><a href="link.html" onclick="playSound('sound'); return false;">
Page 2</a></p>
</body>
</html>