how to copy all style attributes from one to another object

Discussion in 'Javascript' started by Gerrit Horeis, Aug 12, 2004.

  1. How can I copy all style sheet information from one object to another?
    I tried the following way but it did not work:

    object2.style = object1.style;

    do have to assign all stylesheet information by

    object2.style.color = object1.style.color;

    ?

    Thanks for your responds
     
    Gerrit Horeis, Aug 12, 2004
    #1
    1. Advertisements

  2. Gerrit Horeis wrote:

    > How can I copy all style sheet information from one object to another?
    > [...]


    I have already answered that in your native language in
    de.comp.lang.javascript. You probably want to refrain
    from making multi-postings if you wish your postings to
    be read by a significant number of netizen in the future.


    PointedEars
     
    Thomas 'PointedEars' Lahn, Aug 12, 2004
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John Davison
    Replies:
    3
    Views:
    785
    John Davison
    Jul 22, 2004
  2. Kulbir
    Replies:
    2
    Views:
    11,229
  3. Replies:
    1
    Views:
    932
    Bertilo Wennergren
    Nov 24, 2003
  4. loveNUNO
    Replies:
    2
    Views:
    1,188
    loveNUNO
    Nov 20, 2003
  5. Alex
    Replies:
    2
    Views:
    1,584
  6. Ken Varn
    Replies:
    0
    Views:
    722
    Ken Varn
    Apr 26, 2004
  7. Robert Cohen
    Replies:
    3
    Views:
    549
    Andrew Durstewitz
    Jul 15, 2003
  8. Sparhawk
    Replies:
    5
    Views:
    269
    Harag
    Aug 29, 2004
Loading...