Membership is FREE, giving all registered users unlimited access to every DNForum feature, resource, and tool! Optional membership upgrades unlock exclusive benefits like profile signatures with links, banner placements, appearances in the weekly newsletter, and much more - customized to your membership level!

Reply to thread

<!DOCTYPE html>

<html>

<body>


    <h1>JavaScript Can Change Images</h1>


    <imgid="myImage"onclick="changeImage()"src="img/0.jpg"width="180"height="180">

    <table>

        <tr>

            <td><ahref="#"id="1"onclick="changeImage()"> Image1</a></td>


        </tr>

        <tr>

            <td><ahref="#"id="2"onclick="changeImage()"> Image2</a></td>


        </tr>

<tr>

            <td><ahref="#"id="3"onclick="changeImage()"> Image3</a></td>


        </tr>

    </table>




please improve this code. If we click on image 2 link . image link 2 no work.i also use more then 2 images in this code.

Thanks advance.


</body>

</html>


Top Bottom