Destramic Posted November 18, 2006 Share Posted November 18, 2006 i have a problem...i want to9 be able to have my select box displayed and when the user goes through the options the background colour will change...ive made it possible with input and textarea but for some reason or other i cannot get it to work on select box..can anyone help please?[code] <select id="error_type" name="error_type" onmouseover="this.className='mouse_over';" onmouseout="this.className='this.class';"> <optgroup label="Select Error Type"> <option value=""></option> <option value="Broken Link" <?php echo $broken_link; ?>>Broken Link</option> <option value="Spelling Mistake" <?php echo $spelling_mistake; ?>>Spelling Mistake</option> <option value="Spam" <?php echo $spam; ?>>Spam</option> <option value="Other" <?php echo $other; ?>>Other</option> </optgroup>[/code] </select> Quote Link to comment https://forums.phpfreaks.com/topic/27721-onmouseover-out/ Share on other sites More sharing options...
fenway Posted November 19, 2006 Share Posted November 19, 2006 SELECTs are strange MFC controls, not sure if you can do this at all. Quote Link to comment https://forums.phpfreaks.com/topic/27721-onmouseover-out/#findComment-127192 Share on other sites More sharing options...
Destramic Posted November 20, 2006 Author Share Posted November 20, 2006 there should be a way of changing the css class of a select box easily? Quote Link to comment https://forums.phpfreaks.com/topic/27721-onmouseover-out/#findComment-127538 Share on other sites More sharing options...
fenway Posted November 21, 2006 Share Posted November 21, 2006 Yes, there should be, but I don't know if all browsers will allow you to style this control. Quote Link to comment https://forums.phpfreaks.com/topic/27721-onmouseover-out/#findComment-127684 Share on other sites More sharing options...
Destramic Posted November 21, 2006 Author Share Posted November 21, 2006 anyone know how? Quote Link to comment https://forums.phpfreaks.com/topic/27721-onmouseover-out/#findComment-128107 Share on other sites More sharing options...
fenway Posted November 22, 2006 Share Posted November 22, 2006 Have you tried setting the style directly? Quote Link to comment https://forums.phpfreaks.com/topic/27721-onmouseover-out/#findComment-128605 Share on other sites More sharing options...
Destramic Posted November 22, 2006 Author Share Posted November 22, 2006 yes...could get it to work Quote Link to comment https://forums.phpfreaks.com/topic/27721-onmouseover-out/#findComment-128791 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.