Click to See Complete Forum and Search --> : quesiton about tables


coffeebrown83
05-26-2003, 06:57 PM
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



<td background="images/bg.jpg" width="400" height="300" colspan="2" rowspan="13">
<div id="Layer1"
style="position:absolute; left:200px; top:100px; width:400px; height:300px; z-index:1; overflow: auto">
<!-- PAGE CONTENT -->
<blockquote><font face="arial" size="2" color="#ffffff"><strong>
<br>
Home Page
<hr width="100%" size="1" color="#ffffff" noshade>
<p>This Template is provided for free by <br>
<a href="http://illdesign.yoll.net">Illusive Design</a>.<br>
<p><br>If you use this template please provide a link back to my site.<br>
<br><br><br>
<p>Thanks for your support!
<p><center><a href="http://illdesign.yoll.net" target="_blank"
onMouseOver="window.status='Visit Illusive Design for all your web design needs!'; return true;"
onMouseOut="window.status=''; return true;"><img src="images/ill_button.gif" width="88" height="31" border="0"></a></center>
<hr width="100%" size="1" color="#ffffff" noshade>
<!-- Copyright -->
<font size="1" color="#ffffff">
<strong>Copyright &copy; 2001 Illusive Design. All rights reserved.<br>
Best viewed in IE5+ 800x600 32bit colors.</strong></font>
<!-- Copyright -->
<br><br><br><br><br><br><br>
</strong></font></blockquote>
<!-- PAGE CONTENT -->
</div>
</td>

pyro
05-26-2003, 07:04 PM
You can reference a table cell a few ways. One would be to give it an id, and reference it with document.getElementById("theid")

coffeebrown83
05-26-2003, 07:08 PM
so i would enter
id="MainCell"
and then refrence it?

pyro
05-26-2003, 07:23 PM
Yes, that will allow you to reference it... BTW, what are you trying to do once you reference it?

coffeebrown83
05-31-2003, 09:08 PM
my webpage is www.djcoffeebrown.com 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.

coffeebrown83
05-31-2003, 09:42 PM
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

khalidali63
05-31-2003, 10:45 PM
HTML does not allow to load html pages inside a table cell or any other element for that matter ,except the frames and IFRAMES..