- <?php defined('_JEXEC') or die('Restricted access'); ?><?php
- JHTML::_('behavior.modal');
- foreach ($items as $item)
- {
- $_width = $item->landing_width;
- $_height = $item->landing_height;
- $_image = "http://www.alfaguarainfantilyjuvenil.com/images/gran_exito_crepusculo.jpg";
- ?>
- <a class="modal" id="popup" rel="{handler: 'iframe', size: {x: <?php echo $_width;?>, y: <?php echo $_height;?>}}" >
- <img src="<?php echo $_image; ?>" border=0>
- </a>
- <?php
- }
- ?>
- <script>
- window.addEvent('domready', function(){
- window.addEvent('load', function(){
- SqueezeBox.fromElement($('popup'));
- });
- });
- </script>
I´m making a module where it displays a popup with an image an a link to the users.
I want to load the image, but without the image displaying in the page, but rather just in the squeezbox.
Here is my code:
I know that with the line:
- <img src="<?php echo $_image; ?>" border=0>
Thanks in advance


