Results 1 to 2 of 2

Thread: Switch Content Script II - print questions and answers regardless of expand state

  1. #1
    Join Date
    Dec 2009
    Location
    Australia
    Posts
    1
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Switch Content Script II - print questions and answers regardless of expand state

    1) Switch Content Script II


    2) http://www.dynamicdrive.com/dynamici...chcontent2.htm

    3) Describe problem

    I've adapted the script for use on my page http://www.environment.gov.au/water/...ip-sa/faq.html

    It works wonderfully, except the page will only print both the questions and answers if the user first selects expand all.

    My client want the questions and answers to appear on a printed version of the page regardless of whether the Contract All or Expand All option is selected (hence the reason I've had to stick a PDF download on the page as the 'printable' version)

    Do you have a solution for this?

    Apologies if someone has already asked this question - I did search through previous posts but couldn't find an answer to this for version II of the switch content script (though I did find something for what I guessed was v.I of the script but I couldn't see a way to apply this to a v.II implementation)

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Assuming the DIVs you're expanding/ contracting are DIV tags, you can use CSS to specify that they expand when printed:

    Code:
    <style type="text/css">
    
    @media print{
    	div{
    	display:block !important;
    	}
    }
    
    </style>
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    jbruce (12-07-2009)

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
  •