Scott Kulik
2008-Dec-18  05:18 UTC
anyone know a good way to do a caption popup on mouseover?
I have been using overlib (javascript library) to create popups on mouseover but it has issues with some browsers. I just need something simple and was wondering if any had any suggestions. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Emanuele Tozzato
2008-Dec-18  05:55 UTC
Re: anyone know a good way to do a caption popup on mouseover?
I needed something very simple and flexible, so I put this in my app.html.erb:
<div id="info_bubble">
</div>
this in app.js
function info(obj, msg){
	if (msg) {
		$(''info_bubble'').innerHTML = msg;
		$(''info_bubble'').style.top = obj.y + ''px''
		$(''info_bubble'').style.left = 30 + obj.x +
''px''
		$(''info_bubble'').style.visibility =
''visible'';
	} else { $(''info_bubble'').style.visibility =
''hidden'' }
}
this is app.css
#info_bubble {
	opacity: .80;
	filter: alpha(opacity=80);
	position:absolute;
	border:1px #333 solid;
	visibility:hidden;
	font-size:10px;
	font-family: verdana;
	color:#000;
	font-weight:bold;
	background:#85a5d6;
	padding:5px;
}
and added the tag on the object :onMouseOver => "info(this,
''download'')", :onMouseOut => "info()"
it worked for me, but I have the bad habit to do everything in house.. :)
On Wed, Dec 17, 2008 at 9:18 PM, Scott Kulik
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
> I have been using overlib (javascript library) to create popups on
> mouseover but it has issues with some browsers.
>
> I just need something simple and was wondering if any had any
> suggestions.
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
-- 
Emanuele Tozzato
+1 (619) 549 3230
4955 Narragansett Ave Apt #9
San Diego Ca 92107-3157
http://mekdigital.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
Scott Kulik
2008-Dec-18  18:28 UTC
Re: anyone know a good way to do a caption popup on mouseover?
cool thanks i''ll test it out this week! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Scott Kulik
2008-Dec-18  23:01 UTC
Re: anyone know a good way to do a caption popup on mouseover?
Scott Kulik wrote:> cool thanks i''ll test it out this week!i just got it working. i like it because it''s so simple but is there anyway to have the popup show up at the mouse pointer instead of a fixed location? i dont know javascript very well offhand. also, it looks like it''s getting invalid argument on IE7 :( -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Emanuele Tozzato
2008-Dec-18  23:19 UTC
Re: anyone know a good way to do a caption popup on mouseover?
I did not try it on god-damn-IE.. =) you should modify the js part with code from this example http://www.codelifter.com/main/javascript/capturemouseposition1.html, the script was originally based on mouse position, but I thought it was annoying.. :) On Thu, Dec 18, 2008 at 3:01 PM, Scott Kulik <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Scott Kulik wrote: >> cool thanks i''ll test it out this week! > > i just got it working. i like it because it''s so simple but is there > anyway to have the popup show up at the mouse pointer instead of a fixed > location? > > i dont know javascript very well offhand. > > also, it looks like it''s getting invalid argument on IE7 :( > -- > Posted via http://www.ruby-forum.com/. > > > >-- Emanuele Tozzato +1 (619) 549 3230 4955 Narragansett Ave Apt #9 San Diego Ca 92107-3157 http://mekdigital.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Scott Kulik
2008-Dec-19  05:42 UTC
Re: anyone know a good way to do a caption popup on mouseover?
Emanuele Tozzato wrote:> I did not try it on god-damn-IE.. =) > > you should modify the js part with code from this example > http://www.codelifter.com/main/javascript/capturemouseposition1.html, > the script was originally based on mouse position, but I thought it > was annoying.. :) >hmm...looks like the link is redirecting to their homepage. i''ll take a look around the site. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Pardee, Roy
2008-Dec-19  17:14 UTC
Re: anyone know a good way to do a caption popup on mouseover?
title= tag attributes maybe? -----Original Message----- From: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-talk@googlegroups.com] On Behalf Of Scott Kulik Sent: Wednesday, December 17, 2008 9:18 PM To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Subject: [Rails] anyone know a good way to do a caption popup on mouseover? I have been using overlib (javascript library) to create popups on mouseover but it has issues with some browsers. I just need something simple and was wondering if any had any suggestions. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---