fuzz
12-12-2003, 05:09 PM
Im trying to make a dropdownmenu that opens a hidden frame with custom bgsound, any scripts for that?
heres what i tried (i dont know javascript well):
<SCRIPT LANGUAGE="JavaScript">
function openindex()
{
var OpenWindow=window.open("", "tttp","height=192,width=256");
OpenWindow.document.write("<body bgcolor='#3CA0CF'>")
OpenWindow.document.write("<bgsound loop=infinite src="(value).mid">")
OpenWindow.document.write("<img src='tttp.gif'>")
OpenWindow.document.write("<br>")
OpenWindow.document.write("<center><a href='javascript:self.close()' target='_self'>Close</a></center>")
}
</SCRIPT>
<form name="tttp">
<select style="font-size:12px;color:#006699;font-family:verdana;background-color:#ffffff;" name="menu" onChange="javascript:openindex()" target="_self" (document.tttp.menu.options[document.tttp.menu.selectedIndex].value);">
<option value="DD_SZ">Donald's Dock Street</option>
<option value="DD_SZ_activity">Donald's Dock Building</option>
</select>
</form>
heres what i tried (i dont know javascript well):
<SCRIPT LANGUAGE="JavaScript">
function openindex()
{
var OpenWindow=window.open("", "tttp","height=192,width=256");
OpenWindow.document.write("<body bgcolor='#3CA0CF'>")
OpenWindow.document.write("<bgsound loop=infinite src="(value).mid">")
OpenWindow.document.write("<img src='tttp.gif'>")
OpenWindow.document.write("<br>")
OpenWindow.document.write("<center><a href='javascript:self.close()' target='_self'>Close</a></center>")
}
</SCRIPT>
<form name="tttp">
<select style="font-size:12px;color:#006699;font-family:verdana;background-color:#ffffff;" name="menu" onChange="javascript:openindex()" target="_self" (document.tttp.menu.options[document.tttp.menu.selectedIndex].value);">
<option value="DD_SZ">Donald's Dock Street</option>
<option value="DD_SZ_activity">Donald's Dock Building</option>
</select>
</form>