Kane250 Posted June 28, 2008 Share Posted June 28, 2008 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 https://forums.phpfreaks.com/topic/112369-preloading-a-rollover-submit-button/ Share on other sites More sharing options...
Kane250 Posted June 29, 2008 Author Share Posted June 29, 2008 bump for suggestions. Link to comment https://forums.phpfreaks.com/topic/112369-preloading-a-rollover-submit-button/#findComment-576997 Share on other sites More sharing options...
Kane250 Posted June 29, 2008 Author Share Posted June 29, 2008 nobody? Link to comment https://forums.phpfreaks.com/topic/112369-preloading-a-rollover-submit-button/#findComment-577440 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.