Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Aug 2008
    Location
    Mumbai
    Posts
    40
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Watermark background on web page

    I want code for water mark background which does nt scroll I hv the code but it is nt working Is it so that it will work on ftp only??

    <script language="JavaScript1.2">

    if (document.all||document.getElementById)
    document.body.style.background="url('logo.jpg') white center no-repeat fixed"

    </script>

    Plz help

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Why don't you apply it directly in CSS, like
    Code:
    body{
    background=url('logo.jpg') white center no-repeat fixed;
    }
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • Users who have thanked abduraooft for this post:

    Neha Shah (10-11-2008)


  •  

    Posting Permissions

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