title: Firefox/Javascript not displaying image - Joomla
body: <p>I customized the content module so the title of an article displays an image before the text and the text is displayed with two colors!!</p>
  
  <p>The relevant part of the code is at follows:</p>
  
  <pre><code>&lt;h2 class="title"&gt;
    &lt;?php if ($params-&gt;get('link_titles') &amp;&amp; !empty($this-&gt;item-&gt;readmore_link)) : ?&gt;
  &lt;a href="&lt;?php echo $this-&gt;item-&gt;readmore_link; ?&gt;"&gt;
      &lt;span class="image-title2"&gt;&amp;nbsp;&lt;/span&gt;
      &lt;?php 
      $titles = explode(" ",$this-&gt;item-&gt;title);
  
          for ($i=0; $i&lt;count($titles)-1; $i++){
              echo '&lt;span style="float:left;padding-left:7px;color:#303030;"&gt;'.$this-&gt;escape($titles[$i]).'&lt;/span&gt;';
  
          }?&gt; 
          &lt;span style="color:#06cfef;float:left;padding-left:7px;"&gt;&lt;?php echo $this-&gt;escape($titles[$i]);?&gt;&lt;/span&gt;&lt;/a&gt;
          &lt;div class="clear"&gt;&lt;/div&gt;
  &lt;?php else : ?&gt;
      &lt;div&gt;&lt;span class="image-title"&gt;&lt;/span&gt;
      &lt;?php
          $titles = explode(" ",$this-&gt;item-&gt;title);
          for ($i=0; $i&lt;count($titles)-1; $i++){
              echo '&lt;div style="float:left;padding-left:7px;"&gt;'.$this-&gt;escape($titles[$i]).'&lt;/div&gt;';
  
          }?&gt; 
          &lt;div style="color:#06cfef;float:left;padding-left:7px;"&gt;&lt;?php echo $this-&gt;escape($titles[$i]);?&gt;&lt;/div&gt;&lt;/div&gt;
          &lt;div style="clear:both;"&gt;&lt;/div&gt;
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p></p>
  
  <p>In both IE and Google Chrome everything is displayed as wanted (apart from ie which has some positioning problem but i'm not focusing on that now)</p>
  
  <p>In firefox, I can see the content loading correctly but just before the page finish loading the image disappears... I disabled javascript in FF and all is displayed correctly but I just can't understand why!!</p>
  
  <p>You can take a look at this url: <a href="http://sostudent.com/joomla/" rel="nofollow">http://sostudent.com/joomla/</a></p>
  
  <p>Can anyone please help??</p>