-
KevinAsked on March 13, 2017 at 10:41 PM
I have two images on my desktop. One for the idle state of the submit button (no mouseover) and one for the active state of the submit button (on mouseover).
-
Chriistian Jotform SupportReplied on March 14, 2017 at 1:46 AM
To create a mouse hover effect for the submit button, please inject this custom CSS on your form:
.form-submit-button {
background: url(IMAGE URL) no-repeat top center;
border: none !important;
box-shadow: 0 !important;
height: 100px;
width: 100px;
}
.form-submit-button:hover {
background: url(IMAGE URL) no-repeat top center;
border: none !important;
box-shadow: 0 !important;
}
Just replace the IMAGE URL with the link of the image.
If you need further assistance, do let us know.
Regards. -
KevinVu001Replied on March 14, 2017 at 2:46 AMHi Chriistian,
This code works great in the css editor however when I go to open in the
browser the spot where idle button image is supposed to be is blank and on
hover only a thin horizontal line shows up (i.e. a small part of the active
button image). What should I do?
Thanks,
Kevin
... -
Ashwin JotForm SupportReplied on March 14, 2017 at 4:18 AM
Hello Kevin,
I did check your last edited form "Enhanced Investor Form" but it does not have any css code injected which was shared by my colleague.
Please share the URL of both the images you have and want to display on mouse over and on idle. We will try to help you achieve this.
We will wait for your response.
Thank you!
-
KevinVu001Replied on March 14, 2017 at 10:46 AMHi ashwin_d,
I did try to inject the css code but I removed it once I got the above
error since I was showing the site to my client yesterday night. Please
find below the url of the two button images:
- idle -
https://www.jotform.com/uploads/KevinVu001/form_files/neon%20gradient%20idle%20v2.465.png
-
active -
https://www.jotform.com/uploads/KevinVu001/form_files/neon%20gradient%20active%20v2.794.png
Thanks,
Kevin
... -
David JotForm Support ManagerReplied on March 14, 2017 at 12:35 PM
Please remove the image you uploaded through the submit button properties. And inject my colleagues code, I have already added the URL of the images, so please inject the following code: https://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes
.form-submit-button{
font-size: 0px !important;
}
#input_7.form-submit-button:hover{
background: url('https://cms.jotform.com/uploads/image_upload/image_upload/BDAVID/40395_neon%20gradient%20active%20v2.794.png') no-repeat top center !important;
border: none !important;
box-shadow: 0 !important;
height: 100px;
}
#input_7.form-submit-button{
background: url('https://cms.jotform.com/uploads/image_upload/image_upload/BDAVID/40397_neon%20gradient%20idle%20v2.465.png') no-repeat top center !important;
border: none !important;
box-shadow: 0 !important;
height: 100px !important;
}
Result: https://form.jotformpro.com/70724310231946
Let us know if you need more help.
-
KevinVu001Replied on March 14, 2017 at 11:46 PMThis works great. Thank you so much I really appreciate it!
...