You are here: Re: Internal table boundaries via style="" « HTML « IT news, forums, messages
Re: Internal table boundaries via style=""

Posted by Toby A Inkster on 06/26/07 15:44

aaronfude wrote:

> So now way to do it other than slapping a style on every td?

You could use Javascript.

<script type="text/javascript">
function StyleTableCells ()
{
var $cell;
var $tableCells = document.getElementsByTagName('TD');
for (var $i=0; $cell=$tableCells[$i]; $i++)
{
$cell.style.border = '2px dotted lime';
$cell.style.fontWeight = 'bold';
}
}
window.onload = StyleTableCells;
</script>

Though I'm guessing if you're unable to add a stylesheet, you're probably
also unable to add a script.

If that fails, choose a better development environment.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 5 days, 19:19.]

A New Look for TobyInkster.co.uk
http://tobyinkster.co.uk/blog/2007/06/22/new-look/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация