I am trying to upgrade my site to xhtml 1.1. I modified this code and it wouldn't work. so I dropped it back into 1.0 transitional and it still didn't work. can anyone see what wrong. and how do i make it 1.1 friendly. You can view the full source at
<html>
<body>
<div id="main">
<script type="Javascript">
kokaneeblade = new Array();
kokaneeblade[1] = "Graphics/Trolls/Blade N.png";
function kblade(optionid){document.getElementById("kb").src = kokaneeblade[optionid];}
</script>
<p class="style1">
<img alt="" class="style6" src="Graphics/Trolls/Blade N.png" id="kb" />
<select id="kb" class="style3" name="Kokane Blade" onchange="javascript: kblade(this.value);">
<option style="color:green" selected="selected">Blade</option> <option style="color:green" value="1">Nickel (N)</option> </select>
</p>
</div>
</body>
</html>
<html>
<body>
<div id="main">
<script type="Javascript">
kokaneeblade = new Array();
kokaneeblade[1] = "Graphics/Trolls/Blade N.png";
function kblade(optionid){document.getElementById("kb").src = kokaneeblade[optionid];}
</script>
<p class="style1">
<img alt="" class="style6" src="Graphics/Trolls/Blade N.png" id="kb" />
<select id="kb" class="style3" name="Kokane Blade" onchange="javascript: kblade(this.value);">
<option style="color:green" selected="selected">Blade</option> <option style="color:green" value="1">Nickel (N)</option> </select>
</p>
</div>
</body>
</html>