Results 1 to 4 of 4
Thread: onSubmit image...
Hybrid View
-
10th February 2004 18:37 #1
-
11th February 2004 16:20 #2
-
11th February 2004 23:24 #3
javaScript (javaScript?!?
) 
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script language="JavaScript" type="text/JavaScript">
function changePic(){
window.document.getElementById('pic1').s rc='2.gif';
window.setTimeout('submitTheForm()','100 0');
}
function submitTheForm(){
window.document.myform.submit();
}
</script>
<title>Change The F...ING PIC</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<form action="submit.php" name="myform" id="myform">
<input type="button" name="Submit" value="Click Me!" onclick="javascript:changePic()" />
</form>
<img src="1.gif" id="pic1" />
</body>
</html>
Last edited by NoDude!; 12th February 2004 at 12:19.
-
12th February 2004 00:50 #4





Reply With Quote

Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in