Tom's Hardware > Forum > Smartphones & PDAs > Windows Mobile > document.form.Img.src doesn't work in Pocket IE

document.form.Img.src doesn't work in Pocket IE

Forum Smartphones & PDAs : Windows Mobile - document.form.Img.src doesn't work in Pocket IE

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

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>

Sponsored Links
Register or log in to remove.
Tom's Hardware > Forum > Smartphones & PDAs > Windows Mobile > document.form.Img.src doesn't work in Pocket IE
Go to:

There are 636 identified and unidentified users. To see the list of identified users, Click here.

Please mind

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.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them