在下列代码中onMouseover 和document.bgColor='black';document.fgColor='White'的意思是什么?

来源:百度知道 编辑:UC知道 时间:2024/05/27 14:58:16
<a href="" onMouseover="alert('为什么把鼠标放到这里?');alert('我不是说过不允许的吗?');alert('你还碰');alert('呀,上瘾了是不是。');alert('不准点了!');alert('我');alert('再');alert('说');alert('最');alert('后');alert('一');alert('遍');alert('真拿你没办法');alert('还点?');alert('I 服了 YOU');alert('进来吧!');document.bgColor='black';document.fgColor='White';window.href='../index.asp';">
中onMouseover 和document.bgColor='black';document.fgColor='White'的意思是什么?

onMouseover 表示当鼠标移到热点上时触发的事件,就是弹出alert,document.bgColor='black';document.fgColor='White'分别是设置背景色和前景色

onMouseover=“JAVASCRIPT语句”表示鼠标以后在这个东西上面以后,会执行那些JAVASCRIPT语句

alert('内容');这个JAVASCRIPT语句在屏幕上弹出指定内容的消息。

document.bgColor='black';document.fgColor='White'这两个语句把网页的背景设置为黑色、前景设置为白色。