Change bgsound in a frame with JS?!?
Posted on 1998-11-19
I have a frames-based slideshow. Basically, each slide is defined in a parent array ([title], [caption], [imgURL]). The client can scroll fwd or back through the slides using buttons in a static frame (frames) via JS.
Now I have added a 4th (optional) parameter, namely [sound]. I want the bgsound (*.mid) to change programmatically, but ONLY WHEN A SLIDE CONTAINING A NEW SOUND ARGUMENT IS ENCOUNTERED.
I tried using <BODY><BGSOUND SRC ="./DUELING.MID"> in the static frames, but don't know how to change the SRC argument programmatically (if this is even possible). Also, does NN still not support this tag?!?
If not, is it possible to use EMBED in either the parent or frames in such a way that the SRC can be accessed and reset programmatically with JS???