PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Creating a Rollover javascript with form embedded

  1. Hello,

    Please can you help?!

    I am trying to create a rollover image, which when the mouse goes over will popup in the same window a 'join mailing list' gravity form. Something similar in simplicity as...
    http://jdstiles.com/java/imagemenu.html

    How would I go about finding the form code and creating it so it is embedded in the rollover popup. I am not an expert at scripting, so any help you could offer would be greatly appreciated!

    Currently I am just using a simple jpg which links to the mailing list, here is my site - http://bit.ly/bLVtoD

    Many thanks,

    J

    Posted 14 years ago on Monday May 10, 2010 | Permalink
  2. You can find documentation on the proper way to embed a form, either via a shortcode or using the function call here. If you do use the function call method, remember to enqueue the scripts manually by putting the code snippet in your functions.php file.

    http://www.gravityhelp.com/documentation/embedding-a-form

    I'm not sure how well the script you referenced would work with a form. To begin with, the window would have to persist so you could fill out the form.

    You might be better off using a modal (fancybox, etc.) window for the form than the mouseover script.

    http://www.gravityhelp.com/creating-a-modal-form-with-gravity-forms-and-fancybox/

    It should give you the desired effect and should be more flexible.

    Posted 14 years ago on Monday May 10, 2010 | Permalink
  3. Hi Kevin,

    Thank you for your feedback and advice. I am going to try give the modal gravity form with fancybox a go, will report how it goes!

    Best regards,

    J

    Posted 14 years ago on Monday May 10, 2010 | Permalink
  4. Thanks for the note. Good luck with it.

    Posted 14 years ago on Tuesday May 11, 2010 | Permalink