Jump to content

Preloading a rollover submit button?


Kane250

Recommended Posts

I'm using this code, which acts as a submit button for my form and is also a rollover. However, the rollover image does not preload and I don't think I can do it like I preloaded the other rollovers on my page. Can someone tell me what I have to add to this?

 

In my CSS:

.button {
border:0px;
outline:0px;
background:url('images/emailcheck.png');
width: 41px;
height: 33px;
}
.button-over {
border:0px;
outline:0px;
background:url('images/emailcheckro.png');
width: 41px;
height: 33px;
}

 

In my HTML

<input type="submit" value="" class="button" onclick="wopen('mainsub.php', 'popup', 400, 375); return true;" onmouseover="this.className='button-over';" onmouseout="this.className='button';" />

 

Can anyone help me out???

 

Thanks!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.