SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    E-business guru Eirik's Avatar
    Join Date
    Nov 2000
    Location
    Oslo, Norway
    Posts
    413
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Form manipulating table style

    Hi,

    I would like to use Javascript (triggered by various form elements) to instantly update the style of a table (font size, font face, background colours and so on). I did my share of reading up on DOM sometime in the past, and I belive that the key to success lies within it, but I can't understand how to access the style of a specific table and change it.

    If anyone could point me to a good tutorial, or give me a few lines of code, I would greatly appreciate it !

    Thanks in advance !
    Sincerely,

    Eirik Johansen
    Netmaking AS

  2. #2
    Perl/Mason Guru Flawless_koder's Avatar
    Join Date
    Feb 2002
    Location
    Gatwick, UK
    Posts
    1,206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Easy enough - use classes.

    < table id="first" class="blue-table">
    ....

    to change the class
    document.all.first.className='other class name';

    Flawless
    ---=| If you're going to buy a pet - get a Shetland Giraffe |=---


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •