0

Html-我正在编写一个程序,以便用户单击一个图像并链接到另一个图像和另一个我可以为一个图像执行此操作但我正在努力使用代码将第二个图像链接到第三个等等建议非常感谢?

<!DOCTYPE html>
<html>
<head>
    <title>Untitled</title>
</head>
<body>

    <script language="JavaScript">
        var clockID = 0;
        function UpdateClock() {
            if(clockID) {
                clearTimeout(clockID);
                clockID  = 0;
            }
            var tDate = new Date();
            document.theClock.theTime.value = "" 
                + tDate.getHours() `enter code here`+ ":" 
                + tDate.getMinutes() + ":" 
                + tDate.getSeconds();
            clockID = setTimeout("UpdateClock()", 1000);
        }
        function StartClock() {
            clockID = setTimeout("UpdateClock()", 500);
        }
        function KillClock() {
            if(clockID) {
                clearTimeout(clockID);
                clockID  = 0;
            }
        }
    </script>


    <body onload="StartClock()" onunload="KillClock()">
        <form name="theClock">
            <input type=text name="theTime" size=8 style="text-align: center">
        </form>

    <font face="Tahoma"><a target="_blank" href="http://www.htmlfreecodes.com/"><span style="font-size: 8pt; text-decoration: none"></span></a></font>

    <A HREF = "img2.png">
        <img src= "img1.png">
        <!--<A HREF = "img4.png">
                <img src= "img3.png"> </a>-->
</body>
</html>
4

0 回答 0