ユーザーがセルのリストを表示できるアプリケーションがあります。セルごとに、ユーザーはセルの 2 つの画像をポップアップ メニューとして表示できます。問題は、リストを選択するとすべての画像がダウンロードされるため、ページが非常に遅くなることです。マウスがリンクの上に置かれた場合にのみ画像がダウンロードされるようにしたいと思います。情報: DOM ポップアップ キットのリンク テキストを使用しています
ここにメインページとポップアップメニューへのリンクがあります
<div id="span_div">
<span id="cell_link_<%= @cell.cellid %>" class="popup_link" Popup.modal = true><%= @cell.cellname%>
<%= render :partial => 'cell_popup' %>
<%= javascript_tag "new Popup('cell_popup_#{@cell.cellid}','cell_link_#{@cell.cellid}')" %>
</span>
</div>
ここにセル画像の部分があります
<div id="cell_popup_<%= @cell.cellid %>" class="popup popup_draghandle" style="display:none">
<table width="418" border="0">
<tr>
<td width="201" align="center" valign="top">Raw</td>
<td width="201" align="center" valign="top">Repaired</td>
</tr>
<tr>
<td align="center" valign="top">
<% if @full_report == true then%>
<%raw_morph = @raw_morph.last%>
<img src="<%= url_for(:action => 'jpegfile', :controller => 'neuronviewer',:morph_id => raw_morph.morphologyid)%>" alt="" width="200" height="200"/>
<%end%>
</td>
<td align="center" valign="top">
<%if @repaired == true then%>
<%repaired_morph = @repaired_morph.last%>
<img src="<%= url_for(:action => 'jpegfile', :controller => 'neuronviewer', :morph_id => repaired_morph.morphologyid)%>" alt="" width="200" height="200"/>
</td>
</tr>
<%end%>
</table>
誰でもそれを行う考えがありますか?