Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Rollover for <input type="image">?

    I have a form that is using an image as the submit button. I've done it it the good old-fashioned way of
    <form>
    blah
    <input type="image>
    </form>

    What I want is a rollover effect, so that it will be consistent with the rest of my site.

    I've tried adding onMouseOver events to the tag itself and wrapping the tag in <div>'s and adding the event to those as well. The problem is that even when I give the <input> tag name="enter" id="enter" attributes, I get an error saying "enter is undefined"

    Any suggestions?

    The effect should be compatible with DOM browsers, and degrade will back to NN4.0

    Cheers,

    Spyderman

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    TEXAS . . . 'nuf said
    Posts
    468
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I was going to write out what I thought you needed, but wasn't sure what you already had -- especially for the rollover portion. So, I did a quick Google search, and found tons of hits...the following of which may help:

    http://www.idocs.com/tags/forms/index_famsupp_107.html

    http://www.cs.tut.fi/~jkorpela/forms/imagebutton.html (at the bottom)

    http://www.webdevelopersnotes.com/tips/html/21.php3
    Gordo
    "In the End, we will remember not the words of our enemies, but the silence of our friends."
    - Martin Luther King Jr. (1929-1968)

  • #3
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Cool thanks for that. Guess I'll try a google search next time before I make a post!

    Cheers,

    Spyderman

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    TEXAS . . . 'nuf said
    Posts
    468
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Searching these CodingForums.com forums first is generally best. Being that this is the *new* forum site, it's also a good idea to search the *old* forum site (linked in the top right corner). Past that, I always go with an "advanced search" on Google.

    But, it's also not the worst thing in the world to post your queries here as well. It all depends. Regardless, your post and/or the replies to it may well someday help out another individual with the same or similar question.
    Gordo
    "In the End, we will remember not the words of our enemies, but the silence of our friends."
    - Martin Luther King Jr. (1929-1968)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •