Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <tr>
- <td colspan="4" style="text-align:right;"><html>
- <head>
- <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.js"></script>
- <script>
- $(document).ready(function() {
- $('.nav-toggle').click(function(){
- //get collapse content selector
- var collapse_content_selector = $(this).attr('href');
- //make the collapse content to be shown or hide
- var toggle_switch = $(this);
- $(collapse_content_selector).toggle(function(){
- if($(this).css('display')=='none'){
- //change the button label to be 'Show'
- toggle_switch.html('More Information');
- }else{
- //change the button label to be 'Hide'
- toggle_switch.html('Hide');
- }
- });
- });
- });
- </script>
- <style>
- button {
- background:none!important;
- border:none;
- padding:0!important;
- /*optional*/
- font-family:arial,helvetica,sans-serif; /*input has OS specific font-family*/
- text-decoration:underline;
- cursor:pointer;
- }
- .round-border {
- border: 0px solid #eee;
- border: 0px solid rgba(0, 0, 0, 0.05);
- -webkit-border-radius: 0px;
- -moz-border-radius: 0px;
- border-radius: 0px;
- padding: 0px;
- margin-bottom: 0px;
- }
- </style>
- </head>
- <body>
- <section class="round-border">
- <div>
- <button href="#collapse1" class="nav-toggle">More Information</button>
- </div>
- <div id="collapse1" style="display:none">
- <div id="justify" style="width:574px;text-align:left">
- <p>First lot of information.</p>
- </div>
- </section>
- </body>
- </html></td>
- </tr>
- <tr>
- <td colspan="4" style="text-align:right;"><html>
- <head>
- <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.js"></script>
- <script>
- $(document).ready(function() {
- $('.nav-toggle').click(function(){
- //get collapse content selector
- var collapse_content_selector = $(this).attr('href');
- //make the collapse content to be shown or hide
- var toggle_switch = $(this);
- $(collapse_content_selector).toggle(function(){
- if($(this).css('display')=='none'){
- //change the button label to be 'Show'
- toggle_switch.html('More Information');
- }else{
- //change the button label to be 'Hide'
- toggle_switch.html('Hide');
- }
- });
- });
- });
- </script>
- <style>
- button {
- background:none!important;
- border:none;
- padding:0!important;
- /*optional*/
- font-family:arial,helvetica,sans-serif; /*input has OS specific font-family*/
- text-decoration:underline;
- cursor:pointer;
- }
- .round-border {
- border: 0px solid #eee;
- border: 0px solid rgba(0, 0, 0, 0.05);
- -webkit-border-radius: 0px;
- -moz-border-radius: 0px;
- border-radius: 0px;
- padding: 0px;
- margin-bottom: 0px;
- }
- </style>
- </head>
- <body>
- <section class="round-border">
- <div>
- <button href="#collapse1" class="nav-toggle">More Information</button>
- </div>
- <div id="collapse1" style="display:none">
- <div id="justify" style="width:574px;text-align:left">
- <p>Second lot of information</p>
- </div>
- </section>
- </body>
- </html></td>
- </tr>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment