Results 1 to 2 of 2

Thread: Watermark Background Image Script

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

    Default Watermark Background Image Script

    Hi
    I want to use the script to display an image within a table? Does anybody have any idea about how I would do this?

    Thanks for your help

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    The Watermark Background Image Script doesn't need to be a script, it is just css style applied via javascript. It could be applied using only style (and thereby work even on non-javascript enabled browsers) by putting this style block in the head of the page:

    Code:
    <style type="text/css">
    body {
    background:url('notebook.jpg') white center no-repeat fixed;
    }
    </style>
    If you wanted it to be applied to a table instead of the body, give your table an id, say - bgtable:

    HTML Code:
    <table id="bgtable"><tr><td>Hi</td></tr></table>
    Then use the table's id as a selector in the style block:

    Code:
    <style type="text/css">
    #bgtable {
    background:url('notebook.jpg') white center no-repeat fixed;
    }
    </style>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •