View Full Version : Watermarking or something similar??
Hi Everyone!
Does anyone have any advice to printing a watermark on an embedded web object when the user selects print?
Let me explain....
I have an application that contains over 200 html files of individual instructions for individual projects. The html files are displayed in a web object when an item is selected from a list box.
In my trial version I would like to have a watermark or any text printed over the instruction when the user clicks on the print button for that instruction sheet. I do not want the watermark to print on the full version.
Does anyone have any suggestions or experience doing that? I would love to do it via code if at all possible.
Thanks for you help!!
Sue
Corey
04-10-2006, 01:36 PM
The easiest way to handle this is probably going to be inserting code for a background image (watermark) into the body tag of the HTML page to be printed, at the time of printing. One idea anyhow.
That could work.....but it would be in the background and behind graphics instead of on top of them, correct? I have some graphic templates on the instruction sheet that I want to have something printed on top of them until they are registered for the software.
I know I can take the graphics into an editor and do what I want but .... I'm trying to avoid that tedious stuff ;) if at all possible.
My standby option is to disable the print button until the app is registered but that's not my favorite option.
Thanks for the idea and I'll play around with it to see if I can get by with that.
Any other suggestions are invited too!!
Sue
The easiest way to handle this is probably going to be inserting code for a background image (watermark) into the body tag of the HTML page to be printed, at the time of printing. One idea anyhow.
Corey
04-10-2006, 01:45 PM
You could use CSS to create a layer containing your watermark over top of the page content I think, but I'm no expert on that...
You could use CSS to create a layer containing your watermark over the page content I think, but I'm no expert on that...
Hmmmmm....CSS?? That might work. I haven't used that in a long time but I will check it out and see if it's possible. Thanks!
Sue
Corey
04-10-2006, 02:05 PM
AFAIK it is possible, CSS "layers" is probably what you want to check into...
AFAIK it is possible, CSS "layers" is probably what you want to check into...
Thanks, Corey...I found a couple ways to use the layers that I'll try.
Appreciate the point in the right direction!!
Sue
Corey
04-10-2006, 02:47 PM
Let us know how it turns out. :)
Roboblue
04-10-2006, 02:49 PM
i think i would disable the print feature WITH a message that printing is only available in the full version. this will emphasize the difference between the trial and full version.
Just be sure to disable the web object in the trial version. Or they can just right click and save/copy image.
i think i would disable the print feature WITH a message that printing is only available in the full version. this will emphasize the difference between the trial and full version.
Just be sure to disable the web object in the trial version. Or they can just right click and save/copy image.
Thanks, Roboblue! I am struggling with whether to allow printing or not in the trial version. I can see pros and cons of each.
I did think about the right click thing and I've disabled the right click on the web object with javascript to discourage that ;D
I sure appreciate this collaboration!!
Thanks!
Sue
Roboblue
04-10-2006, 03:17 PM
if you want to protect your text, disabling right click won't do it. You can still use left click to select and and copy
if you want to protect your text, disabling right click won't do it. You can still use left click to select and and copy
I found the following to "discourage" that too:
Below is a little trick that will stop your visitors from copying and pasting your webpage information. Anyone with experience may know a way around this trick. However it will make it hard enough to discourage them and get them moving on to easier targets.
Add the following html code to your BODY tag:
Here is how your BODY tag may look once implemented:
<body bgcolor="#FFFFFF" ondragstart="return false" onselectstart="return false">
ondragstart="return
false" onselectstart="return false"
Sue
Intrigued
04-10-2006, 05:45 PM
I found the following to "discourage" that too:
Below is a little trick that will stop your visitors from copying and pasting your webpage information. Anyone with experience may know a way around this trick. However it will make it hard enough to discourage them and get them moving on to easier targets.
Add the following html code to your BODY tag:
Here is how your BODY tag may look once implemented:
<body bgcolor="#FFFFFF" ondragstart="return false" onselectstart="return false">
ondragstart="return
false" onselectstart="return false"
Sue
One way I believe around such is to use, fwiw:
Shift+F10 (simulates a right-click style popup menu).
I know you stated that
Anyone with experience may know a way around this trick." I just wanted to share such for anyone reading such.
:yes
Roboblue
04-10-2006, 05:57 PM
If you can get by without a scroll bar, disabling the web object would superscede the need for any code in the html.
If you can get by without a scroll bar, disabling the web object would superscede the need for any code in the html.
I tried that but then the functionality is disabled. What I have is a list box with a list of projects. The list box is populated from a folder where all the html's are. When the user selects a project from the list box then the web object displays that html file.
If I disable the web object a project will not appear in the web object when selected.
Is there another way to do it so that the functionality remains while not allowing the user to print the content in the web object?
Sue
Roboblue
04-10-2006, 09:11 PM
If I disable the web object a project will not appear in the web object when selected.
Is there another way to do it so that the functionality remains while not allowing the user to print the content in the web object?
Sue
You can try this apz. This will allow you to load url's into a disabled web object AND have the scroll bar functioning. All the rest of the disabled characteristics will be there
You MAY want to use this in conjunction with your right click script and it'll work fairly well. There is a way to right click that you'll see when you look at the code. But I don't think most people would notice it. Especially if you always have a VERTICAL scroll bar. And You can set that in your html code.
All the hint you'll get
You can try this apz. This will allow you to load url's into a disabled web object AND have the scroll bar functioning. All the rest of the disabled characteristics will be there
You MAY want to use this in conjunction with your right click script and it'll work fairly well. There is a way to right click that you'll see when you look at the code. But I don't think most people would notice it. Especially if you always have a VERTICAL scroll bar. And You can set that in your html code.
All the hint you'll get
Thank you!
I'll take a look and give it a try. I appreciate the suggestions!
Sue
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.