Results 1 to 3 of 3

Thread: Changing background image in Table Cell

  1. #1
    Join Date
    Apr 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Changing background image in Table Cell

    I need to change the background image of a table cell each time a page loads.
    I only see scripts to change the background image of a page and usually that requires an event like a mouseover or click.

    Can anyone please help me out?
    Thanks in advance

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Find a script like that, then just apply it to the cell... I mean... I'm not sure how they work, but it really can't be that hard.
    All you're doing is making it like this:
    Instead of the <body background="IMAGEHERE"> rotate, you need <table><tr><td background"IMAGEHERE"> to rotate... same "background=" code, and format of the url. So.... that might point you in the right direction..

    Oh, also... to make JS start when the page loads, just do this:
    <body onLoad="INSERTJSCOMMANDHERE">

  3. #3
    Join Date
    Apr 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yeah that's what I was think djr33, I just need some specifics. Any body have some examples?

    Thanks

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
  •