Posted by Uli666 on 12/04/06 15:41
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>
----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Navigation:
[Reply to this message]
|