Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Watermark on Webpage

Options
  • 18-10-2005 7:13pm
    #1
    Registered Users Posts: 302 ✭✭


    Anybody know how to get a watermark on a webpage to transfer to a printout of the page. For example, I have a GIF containing the word DRAFT which I want as a watermark, and I do this with:
    <BODY BACKGROUND="draft.gif">
    This works fine to view the page, but dissapears when you print the page.


Comments

  • Registered Users Posts: 2,243 ✭✭✭zoro


    That's because it's possible to disable backgrounds when printing - and as it's client side there's nothing you can do about it :)

    Short of actually adding the image to the site normally I'm not sure what you can do


  • Registered Users Posts: 629 ✭✭✭str8_away


    You can try to use layers or set the image as one of tag then set it position in the web page.
    <html><head></head>
    <body>
    Your web page
    
    <div>
       <img src="draft.gif" style="Filter:Alpha(Opacity=50);" style="position:absolute; left:0px; top:0px;" galleryimg="no">
    </div>
    
    </body></html>
    

    style="Filter:Alpha(Opacity=50);
    This will turn the image see through, you can play areound the value from 50 to 30 or any other number

    style="position:absolute; left:0px; top:0px;"
    This sets the image to the top left corner of page. If your image is small then you coud set this to the center of page.

    galleryimg="no"
    Disable the image toolbar on the image in IE.

    Let us know if this works :)


  • Registered Users Posts: 2,243 ✭✭✭zoro


    str8_away - that's a good idea. I thought of doing something like that aswell, but it'd have to be added onto each page manually (unless they're being generated automatically ANYWAY.


Advertisement