PDA

View Full Version : ie 5.0 vs ie 6.0


alaios
09-17-2004, 03:21 PM
A)
<a href="#bef" onclick="document.searchForm.submit();" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('search','','administrator/images/preview_f2.png',1);">

B)
<input name="search" type="button" onclick="document.searchForm.submit();" onmouseover="MM_swapImage('search','','administrator/images/preview_f2.png',1);" onmouseout="MM_swapImgRestore();" value="&Aring;&yacute;&ntilde;&aring;&oacute;&ccedil;">

Hi there.... look at the A & B points .... The first works fine for the most of the most brosers except for i.e 5.0 ..... The A works fine in i.e 6.... I suppose that the i.e 5.0 doesnot support javascript events of links.... Do u know if my suspition is true?

Thx a lot

jbot
09-17-2004, 03:40 PM
IE 5 does support rollovers.

Willy Duitt
09-17-2004, 03:43 PM
(A) should be returning false on the onclick event in order to cancel the href and (B) should be an input type submit, not an input type button with an onclick event....

.....Willy

alaios
09-17-2004, 11:30 PM
thx....can u give me the code with the correct a answer?? How i must return false???