I am having trouble returning things from this function. Below is the function.
function switchframeAQUA(v) {
if (v == "0") {
document.getElementById("picframe").src = "/frames/cod-liver-oil_pic.html";
document.getElementById("blurbframe").src = "/frames/cod-liver-oil_blurb.html";
} else if (v == "1") {
document.getElementById("picframe").src = "/frames/fish-oil_pic.html";
document.getElementById("blurbframe").src = "/frames/fish-oil_blurb.html";
} else if (v == "2") {
} else if (v == "3") {
} else if (v == "4") {
} else if (v == "5") {
} else if (v == "6") {
} else if (v == "7") {
} else if (v == "8") {
} else if (v == "9") {
} else if (v == "10") {
} else if (v == "11") {
} else {
document.getElementById("picframe").src = "/frames/cod-liver-oil_pic.html";
document.getElementById("blurbframe").src = "/frames/cod-liver-oil_blurb.html";
}
};
This below, is where this is called and the entire system. Just so you can all get the basic idea :D
<select name="aqua" style="width: 160px" class="auto-style5" onchange="switchframeAQUA(aqua.options[this.SelectedIndex].value)">
<option value="0" >Cod liver oil</option>
<option value="1" >Fish oil</option>
<option value="2">Evening Primrose oil</option>
<option value="3">Evening Primrose + Starflower oil</option>
<option value="4">Starflower oil</option>
<option value="5">Linseed oil</option>
<option value="6">Super Multi Minerals</option>
<option value="7">Magnesium + Vit B6</option>
<option value="8">Flaxseed oil</option>
<option value="9">Omega 3/6/9 Blend (Organic)</option>
<option value="10">Flaxseed oil (Organic)</option>
<option value="11">Super Multi Minerals</option>
</select>
This doesn't do anything!
Seriously, nothing is returned at all and nothing changes.
Any help would be much appreciated as I have tried working at this for nearly two days now =[
Cheers!
Jack