HTML将图像链接到图像到图像

时间:2012-08-02 15:31:14

标签: html

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>

0 个答案:

没有答案