Solved

Rollover with input type=image

Posted on 2000-03-20
4
295 Views
Last Modified: 2012-06-27
I'd like to use a rollover effect with a graphic that I'm using with a <input type=image> tag. I know how to do it using <a href>, but I'd like to use it in a form instead. Can this be done, and if so, how?
0
Comment
Question by:JOK
  • 2
  • 2
4 Comments
 

Accepted Solution

by:
Deathead earned 100 total points
ID: 2637360
Unfortunately it cannot be doneusing the input tag..
a work around would be to make an href rollover and make it submit the form via javascript
<a href="#" onmouseover="change" onmouseout="changeback" onClick="document.formname.submit()"><img tag></a>

That will get the effect of what you want
X.Deathead
0
 
LVL 3

Author Comment

by:JOK
ID: 2640272
I was afraid of that. I'm working with code from someone else and it doesn't look like I can easily change the onClick code.

Oh well, thanks anyways.
0
 

Expert Comment

by:Deathead
ID: 2640420
if you post the code I could help you out...
0
 
LVL 3

Author Comment

by:JOK
ID: 2640573
What I've got works. But like I said, there's a bunch of stuff with the onClick now and I don't want to mess with it too much. Thanks anyways.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Mobile menu navigation , its html and css 6 54
CSS grid style change 2 33
After moving to webstite page stopped working 7 85
Angular 2 - Issue in page Layout 2 47
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now