Over a million developers have joined DZone.

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 %>
Topics:

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

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

{{ parent.tldr }}

{{ parent.urlSource.name }}