Resize Cell background image?

Discussion in 'Javascript' started by YavolGurrick, Dec 1, 2004.

  1. YavolGurrick

    YavolGurrick Guest

    I have a cell in a table whose background image
    I'd like to periodically swap. However, both
    images are of different heights. How can I do
    this in Javascript?

    document.getElementById( 'SomeCellID' ).style.backgroundImage = "url(
    'AltImage.png' )";

    The above line swaps the image, but it is cropped
    to the existing cell height.

    Any feedback will be well appreciated.
     
    YavolGurrick, Dec 1, 2004
    #1
    1. Advertising

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. Joe Butler
    Replies:
    15
    Views:
    9,461
    Barefoot Kid
    Oct 22, 2003
  2. Michel
    Replies:
    14
    Views:
    7,278
    Michel
    Jul 4, 2004
  3. RJ
    Replies:
    1
    Views:
    249
    Eliyahu Goldin
    Feb 17, 2005
  4. Replies:
    2
    Views:
    1,277
    Adrienne
    Feb 13, 2005
  5. Kevin
    Replies:
    0
    Views:
    117
    Kevin
    Aug 30, 2003
Loading...

Share This Page