load image of choice karan chanana
TRANSCRIPT
Load Image of Choice<html>
<head><meta http-equiv=”Content-Type” content=”text/html; charset=windows-1252″><title>JavaScript Example 19.2</title></head><body><script>function checkItem(){for(count=0;count<6;count++){if (MyForm.item[count].checked)document.write ( “<img src = \”" +(Math.round(count)+1)+“.jpg\” width = \”50\” height = \”50\” />”);
}}</script><form><input value=”Select and Click” onclick=”checkItem()”><br><input value=”One”><label>One Dot</label><br><input value=”Two”><label>Two Dots</label><br><input value=”Three”><label>Three Dots</label><br><input value=”Four”><label>Four Dots</label><br><input value=”Five”><label>Five Dots</label><br><input value=”Six”><label>Six Dots</label><br>
</form></body>
</html>