Hello, I have an <img> tag and I''d like a form to appear and overlay that image upon clicking on some button. The image would be still visible beneath the form through some transparancy effect. I tried the DOM Popup Kit but the results on Safari were pretty poor (to be fair, the doc clearly states that this browser is not tested) although, I must say, I was pretty happy with the results on IE and Firefox. Is there another library that would handle Safari in a better fashion? Or maybe if someone could point me to a strategy to achieve that effect? Thank you in advance. Jean-Christophe ____________________________________________________________________________________ Got a little couch potato? Check out fun summer activities for kids. http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Jean-Christophe Roux wrote:> Hello, > > I have an <img> tag and I''d like a form to appear and overlay that > image upon clicking on some button. The image would be still visible > beneath the form through some transparancy effect. I tried the DOM > Popup Kit but the results on Safari were pretty poor (to be fair, the > doc clearly states that this browser is not tested) although, I must > say, I was pretty happy with the results on IE and Firefox. Is there > another library that would handle Safari in a better fashion? Or maybe > if someone could point me to a strategy to achieve that effect? Thank > you in advance. > Jean-ChristopheYou can try <input type="image" .../> which allows you to make a form submit button out of an image. You can also use an <a> with a background image. Generally laying elements over top of <img> elements is unnecessary and overly complex. - Ken Snyder --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I wouldn''t use the <form> tag for any kind of visual layout, its interpretation varies considerably in different browsers. You could make things a lot easier if you used a div with a background-image property set to the src of your <img> tag now. That way you can nest elements inside of it, like a form! and then upon some action reveal the form and it will appear to be a layer on top of the image with the form controls. On Aug 6, 2:50 pm, Ken Snyder <kendsny...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Jean-Christophe Roux wrote: > > Hello, > > > I have an <img> tag and I''d like a form to appear and overlay that > > image upon clicking on some button. The image would be still visible > > beneath the form through some transparancy effect. I tried the DOM > > Popup Kit but the results on Safari were pretty poor (to be fair, the > > doc clearly states that this browser is not tested) although, I must > > say, I was pretty happy with the results on IE and Firefox. Is there > > another library that would handle Safari in a better fashion? Or maybe > > if someone could point me to a strategy to achieve that effect? Thank > > you in advance. > > Jean-Christophe > > You can try <input type="image" .../> which allows you to make a form > submit button out of an image. You can also use an <a> with a > background image. Generally laying elements over top of <img> elements > is unnecessary and overly complex. > > - Ken Snyder--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---