ex12-22.htm
来自「《JAVASCRIPT 动态网页编程实例手册》一书中的源代码」· HTM 代码 · 共 23 行
HTM
23 行
<html><head><title>增强鼠标指针功能演示 </title>
<script>
<!--
function enhancecursor() {
cursorplus.style.posLeft=event.clientX-10;
cursorplus.style.posTop=event.clientY-10;
}
// -->
</script>
</head>
<body onMouseMove="enhancecursor();" >
<div ID="cursorplus"
style="position:absolute;top:10;left:10;height:20;width:20;background-color:red">
</div> <center>
<h3>《新嫁娘》 </h3><br>
<h2>作者:王建 </h2><br><br>
<h1>三日入厨下,洗手作羹汤。 </h1>
<h1>未谙姑食性,先遣小姑尝。 </h1>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?