网页CSS和弹出公告栏

王朝html/css/js·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

一。<!--

a {text-decoration:none}

a:hover {color: red;text-decoration:none}

--!>

上面的代码加到<head></head>中,让你的链接的文字没有底线。

二。<style>

.normal {color:red;}

.start {color:blue;}

</style>

然后我们在要改变的字前后加上下面的代码:

<SPAN onmouseover = "this.className = 'normal'"

onmouseout = "this.className='start'" class=start> here </SPAN>

上面的代码加上去,让你的连接文字在鼠标上去的时候变色。

三。下面的两种方法是弹出公告栏的。:

方法一:

在<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","测试公告窗口","width=340,height=163,toolbar=0,status=0,menubar=0,resize=0");

</script>

<marquee width=90%>

<a href="http://www.hongen.com/default.htm"target=_blank>带有超链接的跑马灯!点我试试?</a>

<a href="http://www.hongen.com/pc/index.htm"target=_blank>还有一条呢!点我试试?</a>

</marquee>

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航