|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
|
<html><head></head>
<body>
<p align=center><img src="1.jpg" name="main_img" height="480"></p>
<table>
<tr>
<td><img src="1.jpg" name=img0 width="48" onClick=document.images["main_img"].src="1.jpg"></td>
t;
<td><img src="2.jpg" name=img1 width="48" onClick=document.images["main_img"].src="2.jpg"></td>
</tr>
</table>
</body></html>
|
Save the code as index.html, place two jpg files (1.jpg and 2.jpg) in the same directory, open html-file with IE/Mozilla/Firefox and click on the small images at bottom. The upper image will be replaced with the clicked image. Now, try it with Konqueror
Is the code wrong? How should i impove it?