Hi
At the moment this method just creates normal table cells, can someone help me make it create cells with an image which is clickable from my other table command i have used before
I would like it to create something like this:
This is the code that will work if you test it, but its not what I want
please help.
At the moment this method just creates normal table cells, can someone help me make it create cells with an image which is clickable from my other table command i have used before
I would like it to create something like this:
Code:
<td><a href="javascript:methodOne(0)"><img src="desktop/image1.jpg" width=50 height=50></a> </td>
Code:
<script> function DOM(obj,id){ var tar=document.getElementById(id); for (var zxc0=0;zxc0<obj.selectedIndex;zxc0++){ var table=document.createElement('TABLE'); table.border='1'; var tbdy=document.createElement('TBODY'); table.appendChild(tbdy); for (var zxc1=0;zxc1<1;zxc1++){ var tr=document.createElement('TR'); tbdy.appendChild(tr); for (var zxc2=0;zxc2<3;zxc2++){ var td=document.createElement('TD'); td.width='100'; td.appendChild(document.createTextNode(zxc2)); tr.appendChild(td); } } tar.appendChild(table); } } </script> <select onchange="DOM(this,'target');" > <option >DOM Method</option> <option >1</option> <option >2</option> <option >3</option> <option >4</option> <option >5</option> <option >6</option> </select> <div id="target" ></div>

Comment