SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict
    Join Date
    Aug 2005
    Posts
    254
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to remove JS in print?

    Is it possible to program a web page so that JS is removed in the print version.

    I need to remove some JS in print because it is messing up the page display - any ideas how?

    Thanks
    Steven

  2. #2
    Caveat surfer Buddy Bradley's Avatar
    Join Date
    May 2003
    Location
    Cambridge, UK
    Posts
    2,366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What does the script do to the page? Perhaps you need to rethink what the default settings (display, visibility, etc.) before the JavaScript is applied.

  3. #3
    SitePoint Addict
    Join Date
    Aug 2005
    Posts
    254
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The JS allows a user to activate dynamic menus - but it doesn't look right in print

    http://www.open.ac.uk/skillsforstudy/sitemap.php


    Steven

  4. #4
    Caveat surfer Buddy Bradley's Avatar
    Join Date
    May 2003
    Location
    Cambridge, UK
    Posts
    2,366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why would you want to print dynamic menus, it's not like you can click on them on paper. For that page, I would use a print stylesheet to change the layout into a series of headers and links, so the menu items are represented more accurately as being headings covering a series of links.

    It looks like the print mess is caused by absolute positioning, so reset it to "position: static; display: block;" in your print styles.


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
  •