title: how to control popup with ruby on rails, mouse roll-over
body: <p>I have an application where user can see a list of cells. For each cell the user can see two images of the cell as popup menu. The problem is that all images are downloaded when a list is selected and that makes my page very slow.
  I would like that the image is downloaded only if mouse is rolled-over the link.
  For information: I’m using DOM popup kit <a href="http://www.methods.co.nz/popup/popup.html" rel="nofollow noreferrer">link text</a></p>
  
  <p>Here the main page and link to popup menu</p>
  
  <pre><code>&lt;div id="span_div"&gt;
      &lt;span id="cell_link_&lt;%= @cell.cellid %&gt;" class="popup_link" Popup.modal = true&gt;&lt;%= @cell.cellname%&gt;
       &lt;%= render :partial =&gt; 'cell_popup' %&gt;
       &lt;%= javascript_tag "new Popup('cell_popup_#{@cell.cellid}','cell_link_#{@cell.cellid}')" %&gt;
      &lt;/span&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>Here a partial for cell images</p>
  
  <pre><code>&lt;div id="cell_popup_&lt;%= @cell.cellid %&gt;" class="popup popup_draghandle" style="display:none"&gt;
  &lt;table width="418" border="0"&gt;
    &lt;tr&gt;
      &lt;td width="201" align="center" valign="top"&gt;Raw&lt;/td&gt;
      &lt;td width="201" align="center" valign="top"&gt;Repaired&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td align="center" valign="top"&gt;
          &lt;% if @full_report == true then%&gt;
          &lt;%raw_morph = @raw_morph.last%&gt;
          &lt;img src="&lt;%= url_for(:action =&gt; 'jpegfile', :controller =&gt; 'neuronviewer',:morph_id =&gt; raw_morph.morphologyid)%&gt;" alt="" width="200" height="200"/&gt;
          &lt;%end%&gt;
      &lt;/td&gt;
      &lt;td align="center" valign="top"&gt;
          &lt;%if @repaired == true then%&gt;
          &lt;%repaired_morph = @repaired_morph.last%&gt;
          &lt;img src="&lt;%= url_for(:action =&gt; 'jpegfile', :controller =&gt; 'neuronviewer', :morph_id =&gt; repaired_morph.morphologyid)%&gt;" alt="" width="200" height="200"/&gt;
  
      &lt;/td&gt;
    &lt;/tr&gt;
    &lt;%end%&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p></p>
  
  <p>Anyone have any idea to do that?</p>