# Rails and tooltip

**URL:** <https://www.ruby-forum.com/t/rails-and-tooltip/92079>\
**Category:** Rails\
**Created:** [April 15, 2007, 10:45pm UTC](https://www.ruby-forum.com/t/rails-and-tooltip/92079 "2007-04-15T22:45:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sonney\_Mrgic](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@Sonney\_Mrgic](https://www.ruby-forum.com/u/Sonney_Mrgic)\
**Post date:** [April 15, 2007, 10:45pm UTC](https://www.ruby-forum.com/t/rails-and-tooltip/92079/1 "2007-04-15T22:45:06Z")

</div>

Hi,

I’d like to create a netflix like tooltip, tooltip with html content  
that appears when mouse over an image, but using rails. I couldn’t  
find any discussion/tutorial/example on this. Does anyone know if  
there is a best practice example of that?

Maybe something in this fashion:

\<%= link\_to\_remote(  
image\_tag(image.gif),  
:onmouseover =\>…,  
:loading =\>  
:update =\>  
:url =\> { :action =\> :…, :id =\> …}  
:complete =\> visual\_effect(:appear, “div”)  
)%\>  
Using prototype pop up window?

Cheers,  
Mark

---

<div class="post-metadata">

**Author:** ![Sonney\_Mrgic](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@Sonney\_Mrgic](https://www.ruby-forum.com/u/Sonney_Mrgic)\
**Post date:** [April 16, 2007, 12:26am UTC](https://www.ruby-forum.com/t/rails-and-tooltip/92079/2 "2007-04-16T00:26:24Z")

</div>

Search on google for what you want and then implementing it in rails is  
easy. Put images, javascripts and stylesheets in appropriate folders in  
public folder. And use them as you would use any other javascript  
library. I am not using the html content but I am using the bubble  
tooltip from

> **[Balloon Tooltip](http://www.dhtmlgoodies.com/index.html?whichScript=bubble_tooltip)**
>
> Balloon tooltip script from DHTMLGoodies.com

Sonney Mrgic wrote:

> Hi,
> 
> I’d like to create a netflix like tooltip, tooltip with html content  
> that appears when mouse over an image, but using rails. I couldn’t  
> find any discussion/tutorial/example on this. Does anyone know if  
> there is a best practice example of that?
> 
> Maybe something in this fashion:
> 
> \<%= link\_to\_remote(  
> image\_tag(image.gif),  
> :onmouseover =\>…,  
> :loading =\>  
> :update =\>  
> :url =\> { :action =\> :…, :id =\> …}  
> :complete =\> visual\_effect(:appear, “div”)  
> )%\>  
> Using prototype pop up window?
> 
> Cheers,  
> Mark
