vkidv
04-14-2003, 10:22 AM
i cant seem to get a script to work, probably because i made it myself:
<script language="JavaScript">
function gothere(){
if (!window.newwindow) {
newwindow=window.open("loading.htm","win1","width=200,height=100") }
}
newwindow.location=thebox.example.options[thebox.example.selectedIndex].value
focus1=newwindow.focus()
</script>
the script is meant to open the value of whatever the selection value in the combo box into new window (it should detect if it is already open or not)
im rather tired and i can seem to notice any mistakes..
also in the combo box
<select name="example" onChange="gothere()">
<option value="ceramics1.htm">ceramanics</option>
<option selected value="loading.htm">--please select an option--</option>
<option value="index.htm">poo</option></select></td>
</tr><tr>
<td width="180" height="61"></form>
also, not as important. but how do i make each selection have a different background colour? like selection ceramanics has a background of blue. and 'poo'* green? i think this can be done with CSS but im not sure.
*dont ask...just quick to type..
<script language="JavaScript">
function gothere(){
if (!window.newwindow) {
newwindow=window.open("loading.htm","win1","width=200,height=100") }
}
newwindow.location=thebox.example.options[thebox.example.selectedIndex].value
focus1=newwindow.focus()
</script>
the script is meant to open the value of whatever the selection value in the combo box into new window (it should detect if it is already open or not)
im rather tired and i can seem to notice any mistakes..
also in the combo box
<select name="example" onChange="gothere()">
<option value="ceramics1.htm">ceramanics</option>
<option selected value="loading.htm">--please select an option--</option>
<option value="index.htm">poo</option></select></td>
</tr><tr>
<td width="180" height="61"></form>
also, not as important. but how do i make each selection have a different background colour? like selection ceramanics has a background of blue. and 'poo'* green? i think this can be done with CSS but im not sure.
*dont ask...just quick to type..