/    Sign up×
Community /Pin to ProfileBookmark

quesiton about tables

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+ 800×600 32bit colors.</strong></font>
<!– Copyright –>
<br><br><br><br><br><br><br>
</strong></font></blockquote>
<!– PAGE CONTENT –>
</div>
</td>

to post a comment
HTML

6 Comments(s)

Copy linkTweet thisAlerts:
@pyroMay 27.2003 — You can reference a table cell a few ways. One would be to give it an id, and reference it with document.getElementById("theid")
Copy linkTweet thisAlerts:
@coffeebrown83authorMay 27.2003 — so i would enter

id="MainCell"

and then refrence it?
Copy linkTweet thisAlerts:
@pyroMay 27.2003 — Yes, that will allow you to reference it... BTW, what are you trying to do once you reference it?
Copy linkTweet thisAlerts:
@coffeebrown83authorJun 01.2003 — 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.
Copy linkTweet thisAlerts:
@coffeebrown83authorJun 01.2003 — 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
Copy linkTweet thisAlerts:
@khalidali63Jun 01.2003 — HTML does not allow to load html pages inside a table cell or any other element for that matter ,except the frames and IFRAMES..
×

Success!

Help @coffeebrown83 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...