quesiton about tables

liunx

Guest
question, how do you refrence table cells? i know you can name frame cells, but how would you refrence table cells. what i am trying to do is use a table in my webpage and open up the various menu links inside one of the table cells whenever a user clicks a link. however, i am having trouble. any help is appreciated<br />
<br />
<br />
<br />
<td background="images/bg.jpg" width="400" height="300" colspan="2" rowspan="13"><br />
<div id="Layer1" <br />
style="position:absolute; left:200px; top:100px; width:400px; height:300px; z-index:1; overflow: auto"><br />
<!-- PAGE CONTENT --><br />
<blockquote><font face="arial" size="2" color="#ffffff"><strong><br />
<br><br />
Home Page<br />
<hr width="100%" size="1" color="#ffffff" noshade><br />
<p>This Template is provided for free by <br><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"http://illdesign.yoll.net">Illusive Design</a>.<br><br />
<p><br>If you use this template please provide a link back to my site.<br> <br />
<br><br><br><br />
<p>Thanks for your support!<br />
<p><center><a href=http://www.webdeveloper.com/forum/archive/index.php/"http://illdesign.yoll.net" target="_blank" <br />
onMouseOver="window.status='Visit Illusive Design for all your web design needs!'; return true;" <br />
onMouseOut="window.status=''; return true;"><img src=http://www.webdeveloper.com/forum/archive/index.php/"images/ill_button.gif" width="88" height="31" border="0"></a></center><br />
<hr width="100%" size="1" color="#ffffff" noshade><br />
<!-- Copyright --><br />
<font size="1" color="#ffffff"><br />
<strong>Copyright &copy; 2001 Illusive Design. All rights reserved.<br><br />
Best viewed in IE5+ 800x600 32bit colors.</strong></font><br />
<!-- Copyright --><br />
<br><br><br><br><br><br><br><br />
</strong></font></blockquote><br />
<!-- PAGE CONTENT --><br />
</div><br />
</td><!--content-->You can reference a table cell a few ways. One would be to give it an id, and reference it with document.getElementById("theid")<!--content-->so i would enter<br />
id="MainCell" <br />
and then refrence it?<!--content-->Yes, that will allow you to reference it... BTW, what are you trying to do once you reference it?<!--content-->my webpage is <!-- w --><a class="postlink" href="http://www.djcoffeebrown.com">www.djcoffeebrown.com</a><!-- w --> and i am using a template. i want the user to be able to click a link and it open in the main table cell.<!--content-->i tried the document.getElementById("theid") option and it didn't work. it opened up the link in a new page. not inside the MainCell<!--content-->HTML does not allow to load html pages inside a table cell or any other element for that matter ,except the frames and IFRAMES..<!--content-->
 
Back
Top