Results 1 to 9 of 9

Thread: fadeshow: printing html page shows dark pictures

  1. #1
    Join Date
    Apr 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default fadeshow: printing html page shows dark pictures

    1) Script Title: fadeshow (javascript)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...nslideshow.htm

    3) Describe problem: When printing an html page that uses the fadeshow script, the photos are dark/faded views of the picture that is up at the time.

    I move the mouse over the photo I want to "hold" then print the page - it is so faded and unclear it's unacceptable.

    How do I print a clear photo that is being displayed?

    Thanks in advance!
    Randy

  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

    You could try a print specific stylesheet to overcome what you are describing, which sounds like partial opacity:

    Code:
    <style type="text/css" media="print">
    * {
    -khtml-opacity : 1!important;
    -moz-opacity : 1!important;
    opacity : 1!important;
    filter : none!important;
    }
    </style>
    Put the above in the head of your page. Worked here in local testing.
    Last edited by jscheuer1; 05-08-2008 at 09:11 AM. Reason: add test results
    - John
    ________________________

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

  3. #3
    Join Date
    Apr 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi John,
    Thank you for the script - it worked to print the picture properly, but now the entire page is pushed off to the right and cuts off 50% of the page. What am I missing?
    Randy

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

    How? I mean is the page's layout itself changed, or only as printed?

    Pages will often change layout as printed, if that's all it is, it probably has nothing to do with my previous advice, but could probably be changed/fixed anyway.

    If you give me a link to your page (which I would need anyway to figure this out), I could probably see for myself, but it would help to know.

    And:

    Please post a link to the page on your site that contains the problematic code so we can check it out.


    Notes: I would also want to know what browser you are using that gives the result you mention. And, on a technical note, what I wrote in my last post was not a script. If that was the 'script' you were thanking me for, it isn't a script, it's css style. Either way, you're welcome.
    - John
    ________________________

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

  5. #5
    Join Date
    Apr 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Footnote: If I change my printer settings to Landscape 8.5 x 11 (legal size), then the page prints on the right side of the page just fine (with a lot of white space on the left).

  6. #6
    Join Date
    Apr 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You're right it's CSS not a script <my bad>.
    The problem only exists in IE 7 (more than 50% of my users), but prints just fine in FireFox, Safari and Netscape.

  7. #7
    Join Date
    Apr 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

  8. #8
    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 see what you mean. Your page is in quirks mode (no valid URL DOCTYPE), so I suspect that has something to do with it. It would be hard to search through everything you are doing on that page to find the one or more things that, when their filter(s) are removed causes this in IE 7. However, we don't have to do that. Each slide show this script makes has a master division with an id of master[num], numbered 0 to however many slide shows you have on the page. In this case, with just one slide show, it would be master0. So we can change our print stylesheet to:

    Code:
    <style type="text/css" media="print">
    #master0 * {
    -khtml-opacity : 1!important;
    -moz-opacity : 1!important;
    opacity : 1!important;
    filter : none!important;
    }
    </style>
    Once again, worked here.
    - John
    ________________________

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

  9. #9
    Join Date
    Apr 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You're a genius! THANK YOU!!!!

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
  •