Platinum Partner

Display Images In Separate Div On Mouseover Of List Entry

Exerpt of prog to handle images from 35mm film. Main admin page displays a table of films. On mouseover of each row  thumbnails of the pictures in that film are displayed in a separate div. 
 
Exerpt of list.rhtml 

 { :action => :preview ,  :id => roll.id})%>;">


Exerpt of controller.rb

  def preview
    @pictures = Picture.find(:all, :conditions => ["roll_id = #{params[:id]} "])
    render(:partial => "preview")
  end


_preview.rhtml 

<% for picture in @pictures%>
 alt= <%= picture.thumb_url %> height=60 >
<% end %>
{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}