How to load an image inside the squeezbox?

a place to get help

Moderator: 1.2 Moderators

Forum rules
  • Every time you need help create a new thread (but please use the search function before, as your problem maybe has already been solved)
  • use code highlighting (help)
  • After your problem has been solved you have to rename the subject to "[solved] <Topicname>" AND set the Topic icon as solved (the green check)

How to load an image inside the squeezbox?

Postby linker85 on Thu Mar 04, 2010 10:56 pm

Hi I´m using mootools from joomla 1.5
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:
  1.  
  2. <?php defined('_JEXEC') or die('Restricted access'); ?><?php
  3.     JHTML::_('behavior.modal');
  4.     foreach ($items as $item)
  5.     {
  6.         $_width  = $item->landing_width;
  7.         $_height = $item->landing_height;
  8.                $_image  = "http://www.alfaguarainfantilyjuvenil.com/images/gran_exito_crepusculo.jpg";
  9. ?>
  10. <a class="modal" id="popup" rel="{handler: 'iframe', size: {x: <?php echo $_width;?>, y: <?php echo $_height;?>}}" >
  11.              <img src="<?php echo $_image; ?>" border=0>
  12. </a>
  13. <?php
  14.     }
  15. ?>
  16. <script>
  17.       window.addEvent('domready', function(){
  18.        window.addEvent('load', function(){
  19.              SqueezeBox.fromElement($('popup'));
  20.        });
  21.       });
  22. </script>
  23.  


I know that with the line:
  1. <img src="<?php echo $_image; ?>" border=0>
I will load the image in the page and in the squeezbox, so I was wondering if there is a way to just load it just in the squeezbox?
Thanks in advance :)
linker85
 
Posts: 1
Joined: Thu Mar 04, 2010 10:47 pm

Return to Help

Who is online

Users browsing this forum: No registered users and 1 guest