colorthumbs[i].addEventListener('click', function(){
var colorcode = this.getAttribute('colorcode');
var thumbimg = document.getElementById('productthumbs').getElementsByTagName('img');
for(var i = 0; i < thumbimg.length; i++) {
<div id="colorpanel" style="border-bottom:1px solid lightgray;">
<p><b>Select Color</b></p>
<div class='productthumbs'>
<img class="thumbimg" src="Images/p1s1c1.jpeg" alt="color1" colorcode="1" selected="selected" style="border-color:brown;"/>
</div>
</div>
This has to be xhtml strict 1.0 only nothing else. been working on a ton of errors and now down to these last three.
Line 83, Column 92: there is no attribute "colorcode" Line 83, Column 105: there is no attribute "selected" Line 117, Column 94: there is no attribute "tabIndex"