方法二:在css里面设,要IE5。5才支持这种效果。 style="BORDER-LEFT: #000000 1PX DASHED; BORDER-RIGHT: #000000 1PX DASHED; BORDER-TOP: #000000 1PX DASHED; BORDER-BOTTOM: #000000 1PX DASHED"
22,看看在网页中调用HHCtrl控件效果。
代码如下: 〈object id="HHC" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"〉〈/object〉〈script〉 HHC.TextPopup("哈哈,大家好,我是闪梦!","",50,5,128255,346751);〈/script〉
22,如何让一张图片有浅到深的渐变。
〈SCRIPT language=javascript1.2〉 〈!-- function high(which2){ theobject=which2 highlighting=setInterval("highlightit(theobject)",50) } function low(which2){ clearInterval(highlighting) which2.filters.alpha.opacity=40 } function highlightit(cur2){ if (cur2.filters.alpha.opacity〈100) cur2.filters.alpha.opacity+=10 else if (window.highlighting) clearInterval(highlighting) } 〈/script〉 〈img onmouseout=low(this) onmouseover=high(this) style="FILTER: alpha(opacity=40)"src="http://www.webjx.com/htmldata/sort/logo.gif" 〉
23,双击鼠标左键来滚动背景,单击停止。
〈SCRIPT language=javascript〉 var currentpos,timer; function initialize() { timer=setInterval("scrollwindow()",16); } function sc(){ clearInterval(timer); } function scrollwindow() { currentpos=document.body.scrollTop; window.scroll(0,++currentpos); if (currentpos != document.body.scrollTop) sc(); } document.onmousedown=sc document.ondblclick=initialize 〈/SCRIPT〉
24,如何在同一页面设置不同文字链接效果的样式.
代码如下: 〈HTML〉〈HEAD〉〈TITLE〉如何在同一页面设置不同文字链接效果的样式〈/TITLE〉 〈meta http-equiv="Content-Type" content="text/html; charset=gb2312"〉 〈style type="text/css"〉 〈!-- a:hover { font-size: 9pt; color: #FF0000; text-decoration: underline} a:link { font-size: 9pt; color: #006699; text-decoration: underline} a:visited { font-size: 9pt; color: #006699; text-decoration: underline} a:active { font-size: 9pt; color: #FF0000; text-decoration: none} a.r1:hover { font-size: 9pt; color: #FF0000; text-decoration: underline overline} a.r1:link { font-size: 9pt; color: #000000; text-decoration: underline overline} a.r1:visited { font-size: 9pt; color: #99CC00; text-decoration: underline overline} a.r1:active { font-size: 9pt; color: #000000; text-decoration: underline overline} --〉 〈/style〉 〈/head〉 〈body bgcolor="#FFFFFF" text="#000000"〉 〈a href="#"〉下划线链接 〈/a〉 〈p〉〈/p〉 〈a href="#" class="r1"〉双下划线链接〈/a〉
上一篇:网页制作全攻略,网页制作学习
下一篇:网页代码常用小技巧总结续,网页制作学习
|