fuli3665
asked on
adding tables to page
The solution for my last question is very good. I now have another one. It is in the following page:
http://www.pinyinology.com/wheel/display/wheel.html
Thanks a lot for your help.
http://www.pinyinology.com/wheel/display/wheel.html
Thanks a lot for your help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I don't understand the question. If you need more tables, add them.
Or am I missing something?
Or am I missing something?
ASKER
I don't know how to modify the code to the second table to be interactive Please open the following page:
http://www.pinyinology.com/listing/quote/test2.html
Thanks for your help.
http://www.pinyinology.com/listing/quote/test2.html
Thanks for your help.
Here's the code for the first table:
<table id='first'>
<tr>
<script type='text/javascript'>
for( var i=0;i<text2beshown.length; i++ ){
document.write('<td><span id="td'+i+'"> </span></td>');
}
</script>
</tr>
</table>
<form>
<input type='button' value='show letters' name='name1' onClick="showIt()"/>
<input type='button' value='reset' name='name2' onClick="hideIt()" />
</form>
And here is the code for the second table:
<table id='second' style='border-collapse:col lapse;'>
<tr>
<td> </td><td> < /td><td>&n bsp;</td>< td> < /td><td>&n bsp;</td>< td> < /td><td>&n bsp;</td>
</tr>
</table>
<form>
<input type='button' value='show letters' style='margin-right:15px;' >
<input type='button' value='reset'>
</form>
----------
See the difference?
<table id='first'>
<tr>
<script type='text/javascript'>
for( var i=0;i<text2beshown.length;
document.write('<td><span id="td'+i+'"> </span></td>');
}
</script>
</tr>
</table>
<form>
<input type='button' value='show letters' name='name1' onClick="showIt()"/>
<input type='button' value='reset' name='name2' onClick="hideIt()" />
</form>
And here is the code for the second table:
<table id='second' style='border-collapse:col
<tr>
<td> </td><td> <
</tr>
</table>
<form>
<input type='button' value='show letters' style='margin-right:15px;'
<input type='button' value='reset'>
</form>
----------
See the difference?
ASKER
Thanks for your help. Now the gap problem is solved. I modified the code following your advice.
I still need to add more interactive tables to the page. There are three one-row tables in the following page. Only the first one has interaction, but not the next two. I code them in html to show my intention. If you can show me how to add another table, I may be able to add more by myself.
http://www.pinyinology.com/listing/quote/test.html
If possible, please help more. Thanks..