Response title
This is preview!




$('div.accordion').accordion({fillSpace: true, header: 'h3', active: 4, beforeActivate: function(event, ui) { $('div.accordion', ui.newPanel)[1].refresh(); }});
i tried that to
$('div.accordion').accordion({fillSpace: true, header: 'h3', active: 4, beforeActivate: function(event, ui) { $('<body>', ui.newPanel)[1].refresh(); }});
I used some fonction javascript like onclick() but don't work too. i dont understand very well the jquery ui
is for that that i need your helpppppp.
<script type='text/javascript' src='http://code.jquery.com/jquery-1.7.1.js'></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.js"></script> <link rel="stylesheet" type="text/css" href="css/normalize.css"> <link rel="stylesheet" type="text/css" href="css/jquery-ui.css"> <style type='text/css'> html, body { height: 100%; padding: 0; margin: 0; overflow: hidden; } #accordion { height: 100%; } </style>
<script type='text/javascript'>//<![CDATA[ $(function(){ $( ".accordion" ).accordion({ fillSpace: true }); $(".accordion").accordion({ header: "h3" , active: 4}); $('div.accordion').accordion({fillSpace: true, header: 'h3', active: 4, beforeActivate: function(event, ui) { $('div.accordion', ui.newPanel)[1].refresh(); }}); $(window).resize(function(){ // update accordion height $( ".accordion" ).accordion( "resize" ) }); });//]]> </script>
</head>
<body>
<div class="accordion"> <h3><a href="#">1<img src="images/blank.gif" style="margin-left: 702px;" border="0" /></a></h3> <div><iframe id="iframe5" src="page6,html" frameborder="0" width="100%" height="100%" align="left" scrolling="auto"></iframe></div> <h3 ><a href="#">2<img src="images/blank.gif" style="margin-left: 586px;" border="0" /></a></h3> <div><iframe id="iframe" name="iframe" src="page5,html" frameborder="0" width="100%" height="100%" align="left" scrolling="auto"></iframe></div> <h3><a href="#">3<img src="images/blank.gif" style="margin-left: 514px;" border="0" /></a></h3> <div><iframe id="iframe3" name="iframe3" src="page4,html" frameborder="0" width="100%" height="100%" align="left" scrolling="auto"></iframe></div> <h3><a href="#">4<img src="images/blank.gif" style="margin-left: 694px;" border="0" /></a></h3> <div><iframe id="iframe4" name="iframe4" src="page3,html" frameborder="0" width="100%" height="100%" align="left" scrolling="auto"></iframe></div> <h3><a href="#">5<img src="images/blank.gif" style="margin-left: 659px;" border="0" /></a></h3> <div><iframe id="iframe1" name="iframe1" src="page2,html" frameborder="0" width="100%" height="100%" align="left" scrolling="auto"></iframe></div> </div>
</body>
© 2012 jQuery Foundation
Sponsored by
and others.
