Modulo Formulário tipo " pop-up"

Mais
12 anos 8 meses atrás #53268 por liclopes
liclopes replied the topic: Re: Modulo Formulário tipo " pop-up"
1. Pode usar o framework nativo do joomla com o código JHTML::_('behavior.modal');
Exemplo:
JHTML::_('behavior.mootools');
JHTML::_('behavior.modal', 'a.modal-button');
?>
<div class="fixedform">
<a class="modal-button" href=" JRoute::_('index.php?Itemid=190&option=com_facileforms&tmpl=component');" rel="{handler: 'iframe', size: {x: 500, y: 400}}"><img src="/templates/mp/pcs/sugestia.png" width="26" height="120" border="0" alt="Twoja sugestia" /></a></div>

Exemplo com IE Fix:
//adding mootols
JHTML::_('behavior.mootools');
//adding modal css
$document =& JFactory::getDocument();
$document->addStyleSheet('/media/system/css/modal.css');

//creating modal
$link = JRoute::_('index.php?Itemid=190&option=com_facileforms&tmpl=component');
$rel="{handler: 'iframe', size: {x: 500, y: 400}}";
?>
<div class="fixedform"><a class="modal-button" href="<?php echo $link ?>" rel="<?php echo $rel ?>"><img src="/templates/mp/pcs/sugestia.png" width="26" height="120" border="0" alt="Twoja sugestia" /></a></div>

//adding modal js
<script type="text/javascript" src="/media/system/js/modal.js"></script>
<script type="text/javascript">
      window.addEvent('domready', function() {

         SqueezeBox.initialize({});

         $$('a.modal-button').each(function(el) {
            el.addEvent('click', function(e) {
               new Event(e).stop();
               SqueezeBox.fromElement(el);
            });
         });
      });
</script>
Mais info em: http://www.fititnt.org/html/jhtmlbehavior/modal.html

2. Existe também o módulo YJ Pop Login ( http://extensions.joomla.org/extensions ... ation/8646 ) abre o formulário de login e o de registro em popup usando javascript yj_login_pop.js
JHTML::_('behavior.mootools'); 
$document->addScript(JURI::base() . 'modules/mod_yj_pop_login/src/yj_login_pop.js');
?>
<script type="text/javascript">
window.addEvent('domready', function() {
		$("login_pop").setStyles({
			left: (window.getScrollLeft() + (window.getWidth() - 290)/2)+'px'
	
		}); 

		$("reg_pop").setStyles({
			left: (window.getScrollLeft() + (window.getWidth() - 445)/2)+'px'

		}); 
});
</script>
Links no módulo
<a href="javascript&#058;;" onclick="this.blur();showThem('login_pop');return false;" id="openLogin"><?php echo JText::_('LOG-IN'); ?>
<a href="javascript&#058;;" onclick="this.blur();showThem('reg_pop');return false;" id="openReg"><?php echo JText::_('REGISTER'); ?>

Please Entrar ou Registrar to join the conversation.

Mais
9 anos 6 meses atrás #97998 por rogeriorleal
rogeriorleal replied the topic: Re: Modulo Formulário tipo &quot; pop-up&quot;
Olá colegas!

Vocês conhecem alguma extensão similar à que o colega Dellatorre busca?

Também estou procurando uma extensão em que um popup, janela modal, ou janela flutuante carregue um formulário de contato.

Busco exatamente uma que faça igual ao botão "Free Pass" do site <!-- w -->[url=http://www.academiahammer.com.br" onclick="window.open(this.href);return false;]www.academiahammer.com.br[/url]<!-- w --> que aparece ao rolar a página para baixo.

Se puderem me ajudar, agradeço!

Please Entrar ou Registrar to join the conversation.