Since I have FrontPage 2000 and it's by no means obsolete and just because
Microsoft's license will expire to put MSJavaVirtual Machine on their Update
page. Why not just encourage viewers of one's site to download Java Software
to begin with? After all, Java has been around a long time and I would think
their software will always be an integral part of web page authoring.
Visit
http://www.java.com/en/index.jsp
Jim Buyens said:
-----Original Message-----
I would create a button, choose an AU file to make a
sound effect with a "mouse over". Now when I create a
Hover Button and bring sound into it, it doesn't display
in my browser. Any suggestions?
First, add this script to the <head> section of your page:
<script language="JavaScript">
<!--
function playSound(path) {
var b;
var d=document;
var e;
var es;
var i;
var se="<EMBED SRC='"+path+"' HIDDEN=TRUE LOOP=FALSE
AUTOSTART=TRUE>";
if(d.body){
b = d.body;
}
if(d.getElementsByTagName) {
es = d.getElementsByTagName('embed')
for(i=0; i<es.length; i++) {
e=es(i);
if( e.src==path ) {
if(e.removeNode) {
e.removeNode();
}
break;
}
}
if(b&&b.insertAdjacentHTML) {
b.insertAdjacentHTML("beforeend",se);
}
}
}
// -->
</script>
Then, create a picture to use as your button, and surround
it with a hylerlink like this:
<a href="javascript:;"
onmouseover="playSound('../images/ding.wav');">
<img src="../images/mybutton.gif"></a>
where ../images/ding.wav is the relative path from the
current page to your sound file.
Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------