Results 1 to 6 of 6

Thread: How to see Watermark when load with http:// .. /word.htm

  1. #1
    Join Date
    Dec 2005
    Location
    Provence, France
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to see Watermark when load with http:// .. /word.htm

    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

  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

    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.
    - John
    ________________________

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

  3. #3
    Join Date
    Dec 2005
    Location
    Provence, France
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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. I’d 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

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    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

    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:

    Code:
    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:

    Code:
    <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.
    - John
    ________________________

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

  6. #6
    Join Date
    Dec 2005
    Location
    Provence, France
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

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
  •