You are here: Script compatibility with browsers « HTML « IT news, forums, messages
Script compatibility with browsers

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация