Welcome visitor
* Login
* Register
It is currently January 21st, 2019, 3:20 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » JavaScript



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  JavaScript inside a table
PostPosted: February 11th, 2010, 10:34 pm 

Posts: 16
How can I run a javascript (a slideshow) inside a table?

All javascript that I know refers to the involved elements using the getElementById syntax and the table is the one that has the Id, so how can I call the contents of that table?


Top
 Profile  
 
  Re: JavaScript inside a table
PostPosted: February 12th, 2010, 5:33 am 
User avatar

Posts: 137
The Id property is supported by almost each element of your website, even if one of them is indisde a table.

For example:
<img src="pic.jpg" id="im01">
<table id="tab01"></table>
<!--you can also have the image inside the table, even inside a cell-->
<table id="tab01">
<tr>
<td id="cell01"><img src="pic.jpg" id="im01"></td>
</tr>
</table>
hth, ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » JavaScript


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron