PDA

View Full Version : How to see Watermark when load with http:// .. /word.htm



edikaufmann
12-12-2005, 09:52 AM
fixback.htm
http://www.dynamicdrive.com/dynamicindex3/fixback.htm

Is this possible at all?

when loading e.g. a word doc like http://.../word.htm I no longer see the watermark 'behind' the loaded doc 'word.htm'.

code to load word.htm:
<asp:hyperlink id="HyperLink1" style="Z-INDEX: 101; LEFT: 96px; POSITION: absolute; TOP: 160px" runat="server" target="main" NavigateUrl="http://wxppro01/Test/SOS.htm">HyperLink</asp:hyperlink>


Appreciate any hint on how to achieve this ... I might be to young (59) to know!

ed k

jscheuer1
12-12-2005, 02:32 PM
I'm not familiar with asp programming but, it seems to me that the new document would need to have its background set to the watermark image for said image to show up behind it. I would also think that if the newly loaded document leaves portions of the original document visible around its edges, and the watermark image was showing in those areas prior to loading in the new document, those portions of the watermark would still be visible after loading in the new document.

edikaufmann
12-12-2005, 03:44 PM
John, Thank you
I think I can follow your advise and appreciate it. However, I would like to load docs which are not even made by myself i.e. I don't want to change such docs.
I know that I can add the watermark as background in word, however, that means to add a background to every document. Id rather have the background ONCE in the .aspx page!!!!

I don't think that .ASP programming has any influence on this. Rather I am searching for a solution which makes e.g. a word.htm Doc transparent ...

any clue?
edk

Twey
12-12-2005, 04:34 PM
I presume you mean a Word .doc, not a Word .htm? A Word document is opened by another program, not the browser, even if the output may be embedded in a browser window. For this reason, I don't think you can make it transparent.

jscheuer1
12-12-2005, 06:02 PM
Well, if there is nothing on the original document that, if it were to show through, would make the overlay document illegible, and if the overlay document truly is an .htm written in some form of HTML code, there are steps you can take, and see if they do any good. First of all, the Watermark 'script' doesn't really need to be a script, it can be plain css style:


body {
background:url('notebook.jpg') white center no-repeat fixed;
}

This can go in a stylesheet block on the page, preferably in the head of the document:

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

or in an external stylesheet linked to the page. When word saves to .htm and .html it often makes it own external stylesheet to which this could be added. You could also experiment with making the background of the word.htm transparent:

body {
background-color:transparent;
}

A global editor or one with a global edit function could write style to all the overlay pages at once.

I'm a little curious about the syle mentioned in your link:


<asp:hyperlink id="HyperLink1" style="Z-INDEX: 101; LEFT: 96px; POSITION: absolute; TOP: 160px" runat="server" target="main" NavigateUrl="http://wxppro01/Test/SOS.htm">HyperLink</asp:hyperlink>

If it refers to the style of the document being linked to, instead of (as normally would be the case) the style of the link itself, this might be a good spot to introduce some styling.

Just about any change to the overlay document would have to be made on it or in files linked to it. That is, unless there is some convention available in asp to do otherwise, like an include, etc.

edikaufmann
12-13-2005, 06:02 PM
Thanks, most everything you have mentiened I, in fact, have tried. The 'hyperlink' style is, as you think, really just for the hyperlink.

After all I have tried it probably bolds down to:

How to create a transparent background in the HTML code of a word.htm document. I might open a new thread.

Thank you anyway for your time
ed k