|
Javascript onClick button display image.
Hi,
wondering if anyone could help me.
I have a small script which opens an external application, at the click of a button.
What i want to do is extend the script, so that once the button is pressed and image will display next to the button on the web page.
i have a default image which should always show, unless the button is clicked upon, in which case the image should change.
My code so far is as follows:-
<script language="JavaScript">
function func_snapshot()
{
var myshell = new ActiveXObject( "WScript.shell" );
myshell.run( '"C:/Documents and Settings/klp/My Documents/SNAPSHOT PRODUCT IMPORT-EXPORT-CATALOGUE PROGRAM/snapshot.exe"', 1, true );
}
</script>
<INPUT TYPE="button" NAME="button2" VALUE="SnapShot" ONCLICK="func_snapshot()"></INPUT>
<IMG src="C:/Documents and Settings/klp/My Documents/My Pictures/3.jpg" width="25" height="25" name='snapshotpic'>
Can anyone help, please.
Cheers.
|