二。<style>
.normal {color:red;}
.start {color:blue;}
</style>
然后我們?cè)谝淖兊淖智昂蠹由舷旅娴拇a:
<SPAN onmouseover = "this.className = ‘normal‘"
onmouseout = "this.className=‘start‘" class=start> here </SPAN>
上面的代碼加上去,讓你的連接文字在鼠標(biāo)上去的時(shí)候變色。
三。下面的兩種方法是彈出公告欄的。:
方法一:
在<head></head>之間插入如下一段JavaScript代碼:
<script language="JavaScript">
<!--
var gt = unescape(‘%3e‘);
var popup = null;
var over = "Launch Pop-up Navigator";
popup = window.open(‘‘, ‘popupnav‘, ‘width=200,height=170,resizable=0,scrollbars=auto,‘);
if (popup != null) {
if (popup.opener == null) {
popup.opener = self;
}
popup.location.href = ‘test.htm‘;
}
// -->
</script>
方法二:
直接在<body>與</body>插入如下一段代碼:
<script language="JavaScript">
window.open("test.htm","測(cè)試公告窗口","width=340,height=163,toolbar=0,status=0,menubar=0,resize=0");
</script>
<marquee width=90%>
<a href=" <a href="</marquee>
聯(lián)系客服