|
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]
|