Enter for a chance to win a Ballistic Gaming Computer.
Hi all, I wrote JavaScript to change image after clicking on hyperlink. It works in Mozilla, IE. But then I tried it on Pocket IE (WM 5.0) it doesn't work. Why? And what other way to do it on Mobile IE? Code: <HTML> <HEAD><TITLE>Untitled</TITLE></HEAD> <BODY> <SCRIPT LANGUAGE="JavaScript"> var bShift = false; function ShiftPressed() { if(!bShift) { document.keybrd.ShiftImg.src = "Shift_grey.bmp"; document.keybrd.zImg.src = "z_big.bmp"; bShift = true; } else { document.keybrd.ShiftImg.src = "Shift.bmp"; document.keybrd.zImg.src = "z.bmp"; bShift = false; } } </SCRIPT> <FORM name="keybrd"> <A name="Shift" onClick="ShiftPressed();"> <IMG id="ShiftImg" BORDER=0 SRC="Shift.bmp" height=15 width=28> </A> <A name="keyZ"> <IMG id="zImg" BORDER=0 SRC="z.bmp" height=15 width=15> </A> </FORM> </BODY> </HTML>
You are about to answer a thread that has been inactive for more than 6 months.If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.