<html>
<head>
<title></title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="vs_targetSchema" content=" http://schemas.microsoft.com/intellisense/ie5">
<script id=clientEventHandlersJS language=javascript>
<!--
function window_onscroll() {
it315.style.top = document.body.scrollTop + 50;
it315.style.left = document.body.scrollLeft;
}
//-->
</script>
</head>
<body language=javascript onselectstart="return false" onscroll="return window_onscroll()">
<TEXTAREA id="Textarea1" name="Textarea1" rows="500" cols="500">
将这个文本框设置得很大,以便浏览器窗口中出现滚动条
</TEXTAREA>
<a id=it315 href=" http://www.it315.org" style="LEFT: 0px; POSITION: absolute; TOP: 50px; word-break: keep-all">IT资讯交流网</a>
</body>
</html>
一个小问题。上面<body language=javascript onselectstart="return false" onscroll="return window_onscroll()">这句里onscroll="return window_onscroll()">
去掉return的效果也一样,这个是VS生成的代码。自动加了return,
什么情况下一定要加上return呢?