najaru 971 Posted February 17, 2013 Share Posted February 17, 2013 Per inserire in un template un link con una finestrella popup è possibile utilizzare questo codice ci sono due diversi tipo di posizione della finestra <a href='#' id='modal1'>Tipo popop 1</a><br /><br /><a href='#' id='modal2'>Tipo popop 2</a><div id='mymodalcontent' style='display:none;'> <h3>Titolo</h3> <div class='fixed_inner'> Contenuto Finestra - Contenuto Finestra - Contenuto Finestra - Contenuto Finestra - Contenuto Finestra - Contenuto Finestra - Contenuto Finestra - Contenuto Finestra - Contenuto Finestra - Contenuto Finestra - Contenuto Finestra - Contenuto Finestra - Contenuto Finestra - Contenuto Finestra - Contenuto Finestra - Contenuto Finestra - Contenuto Finestra - </div></div><script type='text/javascript'> $('modal1').observe( 'click', function(e) { _var = new ipb.Popup( 'booboo', { type: 'pane', initial: $('mymodalcontent').innerHTML, hideAtStart: false, w: '600px', h: 250} ); Event.stop(e); return false; }); $('modal2').observe( 'click', function(e) { _vvar = new ipb.Popup( 'beebee', { type: 'balloon', stem: true, initial: $('mymodalcontent').innerHTML, hideAtStart: false, w: '600px', attach: { target: $('modal2'), position: 'auto', 'event': 'click' }, h: 250} ); Event.stop(e); return false; });</script> 3 Link to post Share on other sites
Caffpow 21 Posted February 18, 2013 Share Posted February 18, 2013 (edited) manca forse un padding nel contenitore del testo. e sarebbe carino che ci fosse lo sfondo "annerito" comunque stavo proprio cercando di capire come fare dei popup chiudibili. Edited February 18, 2013 by Caffpow Link to post Share on other sites
najaru 971 Posted February 18, 2013 Author Share Posted February 18, 2013 non so. l'ho scopiazzato sul forum ufficiale Link to post Share on other sites
gianpiero 217 Posted February 24, 2013 Share Posted February 24, 2013 simpatica, inserendola nei Custom sidebar Block in modalità RAW/HTML non serve toccare il template Link to post Share on other sites
gianpiero 217 Posted February 25, 2013 Share Posted February 25, 2013 grazie ho utilizzato la finestra, per il padding ho messo brutalmente una tabella in html, sbrigativo e poco elegante <table width="90%" border="0" align="center" cellpadding="4" cellspacing="4">contenuto della finestra</table> Link to post Share on other sites
BomAle 434 Posted September 23, 2013 Share Posted September 23, 2013 Bastava mettere class=ipsBox per il padding...Grazie najaru magari si riesce a fare un bbcode, sarebbe perfetto Link to post Share on other sites
trattore 146 Posted December 21, 2014 Share Posted December 21, 2014 (edited) grz mille! la stavo cercando! Edited December 21, 2014 by trattore Link to post Share on other sites
trattore 146 Posted December 21, 2014 Share Posted December 21, 2014 non c'è un modo per rendere la popup ridimensionabile, nel senso quando riduco il browser e la finestra popup è gia aperta, questa rimane fissa nella posizione del browser a tutta pagina, e mi si sposta tutta a destra se riduco il browser... Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now