有一段简单的html代码,运行出错!!!
<html>
<head>
<title>beep </title>
<style>
body
{
width:130;
height:130;
}
</style>
<script>
System.Sound.beep;
function setContentText()
{
System.Sound.beep();
}
</script>
</head>
<body onload="setContentText()">
<span id="gadgetContent" style="font-family: Verdana; font-size: 8pt;"> </span>
</body>
</html>
这是在msdn中的一段代码,运行后提示System没有定义.不知道为什么?有那位告诉我一下
System.Sound.beep; 是什么。。。
asp.net还是html?
是asp.net里的
参考:
http://school.itzcn.com/special-spid-19.html
上面讲解的比较详细,希望对你有所帮助。
那你这个肯定不行。
先搞明白如何创建一个asp.net页面,asp.net页面和html有什么不同吧。
既然是 ASP NET的
<script runat=server>
System.Sound.beep;
function setContentText()
{
System.Sound.beep();
}
</script>
如果是asp.net,就是后台执行,结果是服务器叫一声。。。
呜呜呜
代码没有错误
可能是计算机时间上有错
调整到正确sj应该可以了
相关问答:
css制作的弹出菜单,鼠标移出后菜单消失,我现在想让鼠标移出后菜单保留。就像伊利公司(www.yili.com)一样。
是不是要改菜单弹出的js或css代码。代码如下:就是不知如何改?
function menuFix()
{var sfEls = doc ......
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using Syst ......
如题,在WINDOWS底下的CODE会,但在LINUX下不知道如何实现,JS的代码应该是不一样的。 求教。
分不够再加。
http://topic.csdn.net/u/20100113/08/17ba1e71-4c33-43f6-91a5-0e031c86e5ed.html
linux ......
在html中引用同一文件夹中的my.js文件:
<script src="my.js"></script>
其中my.js如下:
JScript code:
Ext.onReady(fun);
function fun(){
var tb = new Ext.Toolbar({width:300, ......
我的问题如下:
我现在想拦截百度主页中“把百度设为主页”这个链接的点击事件,该链接的代码如下:
<a onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www. ......