How do I add sounds to my java menu buttons? They work on the hom.

W

WLWK4FD

The sounds work on the home page and I copied the code from that page and
pasted it to my other pages but the sounds don't work on the other pages. I
can't figure out why.
 
T

Teri Carnright

It's possible that your other pages are in a different directory, and that
the path to the sound is not valid on them. Without a URL, I don't know for
sure, though,

Teri
:)
 
T

Teri Carnright

Hi, Denna~

Looks like the script is missing in the <head> section for the sounds. On
your home page, you will see:

function FP_playSound(path) {//v1.0
var b,d=document,e,es,i,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); }

This is not repeated on the inside pages. Copy and paste it into place in
the header section and you should be fine

Teri
:)
 
Top