少了调用函数:<html>
<head>
<script language="javescript">
<!--
function welcome(){
alert(“正在制作中!”);
alert(“谢谢光临!”);
alert("请你下次再来!”);
}
welcome();
-->
</script>
</head>
<body>
</body>
</html>

解决方案 »

  1.   

    <html>
    <head>
    <script language="javescript">
    <!--
    function welcome(){
    alert(“正在制作中!”);
    alert(“谢谢光临!”);
    alert("请你下次再来!”);
    }
    -->
    </script>
    </head>
    <body onload="welcome()">
    </body>
    </html>
    你也没使函数运行
    所以不能用
    你那么写就和没写一样
     
     
      

  2.   

    xiaoyiypx (雄) :
     alert("成功!") 注意里面的双引号!!
     是",而不是“”
      

  3.   

    <html>
    <head>
    <script language="javescript">
    <!--alert("正在制作中!");
    alert("谢谢光临!");
    alert("请你下次再来!”);-->
    </script>
    </head>
    <body >
    </body>
    </html> 这样也可以。
      

  4.   

    <html>
    <head>
    <script language="Javascript">
    function welcome(){
    alert("正在制作中!");
    }
    function left(){
    alert("谢谢光临!");
    alert("请你下次再来!");
    }
    </script>
    </head>
    <body onload="welcome()" onUnload="left()">
    </body>
    </html>
      

  5.   

    你的
    <script language="javescript">
    中的"javescript"写错了,是"Javascript"
      

  6.   

    HTML中加入SCRIPT的方法有两种1.<script>,上面已经说过2.事件句柄,例:<body onload="alert('hello')">
      

  7.   

    <html>
    <head>
    </head>
    <body>
    <script language="javescript">
    <!--
    function welcome(){
    alert(“正在制作中!”);
    alert(“谢谢光临!”);
    alert("请你下次再来!”);
    }
    -->
    </script></body>
    </html>再<head>定义的函数,不能自己调用的 
      

  8.   

    <html>
    <head>
    </head>
    <body>
    <script language="javescript">
    <!--
    function welcome(){
    alert(“正在制作中!”);
    alert(“谢谢光临!”);
    alert("请你下次再来!”);
    }
    -->
    </script></body>
    </html>再<head>定义的函数,不能自己调用的