papillonstudios Posted September 7, 2009 Share Posted September 7, 2009 I am creating a wordpress theme. But on the search form i want the button to show up as an image. Buts its not. I have tried two different methods Method 1: <input type="image" src="images/search.png" alt="Submit button"> Method 2: <a href="javascript:document.myform.submit()" onmouseover="document.myform.sub_but.src='images/search.png'" onmouseout="document.myform.sub_but.src=images/search.png'" onclick="return val_form_this_page()"> <img src="images/search.png" width="143" height="39" border="0" alt="Submit this form" name="sub_but" /> Whats goin on that its not showing the image. all it shows is submit query. I have checked and the location and file type of the images is all correct. I have even tried using the exact url to the image and it doesnt work either. Quote Link to comment Share on other sites More sharing options...
papillonstudios Posted September 7, 2009 Author Share Posted September 7, 2009 *bump* Quote Link to comment Share on other sites More sharing options...
papillonstudios Posted September 7, 2009 Author Share Posted September 7, 2009 HELLO CANT ANYONE HELP Quote Link to comment Share on other sites More sharing options...
ldb358 Posted September 8, 2009 Share Posted September 8, 2009 can you show me the whole form or page Quote Link to comment Share on other sites More sharing options...
papillonstudios Posted September 10, 2009 Author Share Posted September 10, 2009 <form method="get" id="searchform" action="<?php bloginfo('home'); ?>/"> <div> <table> <tr> <td><input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" size="15" /></td> <td><input type="image" src="images/search.png" id="searchsubmit" /></td> </tr> </table> </div> </form> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.