Here's the conversion the way I actually achieved it. Thank you for those responses.
HTML
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>relevant snippets from page</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta content="text/html; charset=us-ascii"
http-equiv="Content-Type" />
<script src="GaS.js" type="text/javascript"></script>
</head>
<ul>
<li id="prev">
<a href="GaS2.html">
<img src="p1images/prevpointer.gif" alt="prev"/>
</a>
</li>
<li id="return">
<a href="../gallery.html">
<img src="p1images/return.gif" alt="return" />
</a>
</li>
<li id="next">
<a href="GaS4.html">
<img src="p1images/nextpointer.gif" alt="next" />
</a>
</li>
</ul>
<embed src="click_x.wav" autostart=false width=0
height=0 id="sound1" enablejavascript="true" volume="30">
javaScript
Code:
function onClickDelayLocation(){
goURL(this.href);
return false;
function goURL(url){
onClickSound();
setTimeout(function(){window.location.href=url},100)
};
};
function onClickSound () {
var thissound=document.getElementById("sound1");
thissound.Play();
}
window.onload = function () {
document.getElementById("prev").getElementsByTagName('A')[0]
.onclick=onClickDelayLocation;
document.getElementById("return").getElementsByTagName('A')[0]
.onclick=onClickDelayLocation;
document.getElementById("next").getElementsByTagName('A')[0]
.onclick=onClickDelayLocation;
}
Bookmarks