網(wǎng)站建設(shè)是指使用標(biāo)識(shí)語言(markup language),通過一系列設(shè)計(jì)、建模、和執(zhí)行的過程將電子格式的信息通過互聯(lián)網(wǎng)傳輸,最終以圖形用戶界面(GUI)的形式被用戶所瀏覽。簡單來說,網(wǎng)頁設(shè)計(jì)的目的就是產(chǎn)生網(wǎng)站。簡單的信息如文字,圖片(GIF,JPEG,PNG)和表格,都可以通過使超文件標(biāo)示語言、可擴(kuò)展超文本標(biāo)記語言等標(biāo)示語言放置到網(wǎng)站頁面上。 運(yùn)行代碼框 <script>var oPopup = window.createPopup();function rdl_doClick(){var oMessage=document.all("oMessage");with (oPopup.document.body) {style.backgroundColor="lightyellow";style.border="solid black 1px";innerHTML=oMessage.value;}oPopup.show(70, 70, 180, 60);}</script><input id=oMessage type=text size=40 value="點(diǎn)擊彈出窗口外面的區(qū)域關(guān)閉它。"><br><br><a href="#" onmouseover="rdl_doClick()" onmouseout="oPopup.hide();">顯示彈出窗口 </a> [Ctrl+A 全部選擇 提示:你可先修改部分代碼,再按運(yùn)行]還有用titile 運(yùn)行代碼框 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><STYLE type=text/css>BODY {MARGIN-TOP: 0px; FONT-SIZE: 9pt; MARGIN-LEFT: 4px; MARGIN-RIGHT: 0px; FONT-FAMILY: "宋體"}A {FONT-WEIGHT: 400; FONT-SIZE: 13px; COLOR: black; TEXT-DECORATION: none}A:hover {FONT-WEIGHT: 400; FONT-SIZE: 13px; COLOR: red; TEXT-DECORATION: underline}A:active {FONT: 9pt "宋體"; CURSOR: hand; COLOR: #ff0033}</style><title>Untitled Document</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><body><script>function show(tips,flag,url){var my_tips=document.all.mytips;if(flag){ my_tips.style.display=""; if (url!=null){my_tips.innerHTML="<img src='"+url+"'align=left>"+tips;} else{ my_tips.innerHTML=tips;} my_tips.style.left=event.clientX+10; my_tips.style.top=event.clientY+10; }else { my_tips.style.display="none"; }}</script><a href="#" tips="自定義提示" onmousemove=show(this.tips,1) onmouseout=show(this.tips,0)>測試鏈接</a><a href="#" tips="又一個(gè)自定義提示" onmousemove=show(this.tips,1,'http://be10.ods.org/51js/images/standard/online_member.gif') onmouseout=show(this.tips,0)>測試鏈接</a> <a href="#" tips="中華人民共和國中華人民共和國自定義提示" onmousemove=show(this.tips,1,'http://be10.ods.org/51js/images/standard/online_moderator.gif') onmouseout=show(this.tips,0)>測試鏈接</a> <div id=mytips style="position:absolute;width:150;height:16;border:1 gray solid;font-size:9pt;background-color:#ffffff;color:red;display:none;filter: progid:DXImageTransform.Microsoft.Shadow(color=#999999,direction=135,strength=3);"></div></body></html> [Ctrl+A 全部選擇 提示:你可先修改部分代碼,再按運(yùn)行]運(yùn)行代碼框 <html><head><script Language="JavaScript">//***********默認(rèn)設(shè)置定義.*********************tPopWait=50;//停留tWait豪秒后顯示提示。tPopShow=5000;//顯示tShow豪秒后關(guān)閉提示showPopStep=20;popOpacity=99;//***************內(nèi)部變量定義*****************sPop=null;curShow=null;tFadeOut=null;tFadeIn=null;tFadeWaiting=null;document.write("<style type='text/css'id='defaultPopStyle'>");document.write(".cPopText { background-color: #F8F8F5;color:#000000; border: 1px #000000 solid;font-color: font-size: 12px; padding-right: 4px; padding-left: 4px; height: 20px; padding-top: 2px; padding-bottom: 2px; filter: Alpha(Opacity=0)}");document.write("</style>");document.write("<div id='dypopLayer' style='position:absolute;z-index:1000;' class='cPopText'></div>");function showPopupText(){var o=event.srcElement;MouseX=event.x;MouseY=event.y;if(o.alt!=null && o.alt!=""){o.dypop=o.alt;o.alt='實(shí)現(xiàn)鼠標(biāo)經(jīng)過超鏈時(shí)的提示圖層'}; if(o.title!=null && o.title!=""){o.dypop=o.title;o.title=""};if(o.dypop!=sPop) {sPop=o.dypop;clearTimeout(curShow);clearTimeout(tFadeOut);clearTimeout(tFadeIn);clearTimeout(tFadeWaiting);if(sPop==null sPop=="") {dypopLayer.innerHTML="";dypopLayer.style.filter="Alpha()";dypopLayer.filters.Alpha.opacity=0;}else {if(o.dyclass!=null) popStyle=o.dyclass else popStyle="cPopText";curShow=setTimeout("showIt()",tPopWait);}}}function showIt(){dypopLayer.className=popStyle;dypopLayer.innerHTML=sPop;popWidth=dypopLayer.clientWidth;popHeight=dypopLayer.clientHeight;if(MouseX+12+popWidth>document.body.clientWidth) popLeftAdjust=-popWidth-24else popLeftAdjust=0;if(MouseY+12+popHeight>document.body.clientHeight) popTopAdjust=-popHeight-24else popTopAdjust=0;dypopLayer.style.left=MouseX+12+document.body.scrollLeft+popLeftAdjust;dypopLayer.style.top=MouseY+12+document.body.scrollTop+popTopAdjust;dypopLayer.style.filter="Alpha(Opacity=0)";fadeOut();}function fadeOut(){if(dypopLayer.filters.Alpha.opacity<popOpacity) {dypopLayer.filters.Alpha.opacity+=showPopStep;tFadeOut=setTimeout("fadeOut()",1);}else {dypopLayer.filters.Alpha.opacity=popOpacity;tFadeWaiting=setTimeout("fadeIn()",tPopShow);}}function fadeIn(){if(dypopLayer.filters.Alpha.opacity>0) {dypopLayer.filters.Alpha.opacity-=1;tFadeIn=setTimeout("fadeIn()",1);}}document.onmouseover=showPopupText;</script></head><BODY><a href="#" title="我想請問斑竹?<br>作者:農(nóng)民<br>發(fā)表于2002-6-3 20:17:16<br>最后跟貼:呵呵,是住我們......">我想請問斑竹?</a>接著前面的 </body></html> [Ctrl+A 全部選擇 提示:你可先修改部分代碼,再按運(yùn)行]運(yùn)行代碼框 <a href="#" title="藍(lán)色理想">www.blueidea.com</a><img src=http://www.okasp.com/logo.gif alt="www.blueidea.com"> [Ctrl+A 全部選擇 提示:你可先修改部分代碼,再按運(yùn)行]由js控制的代碼,還可以臨時(shí)解決 alt 顯示速度慢的問題運(yùn)行代碼框 <SCRIPT language=JavaScript1.2><!--tPopWait=50;tPopShow=50000;showPopStep=10;popOpacity=100;sPop=null;curShow=null;tFadeOut=null;tFadeIn=null;tFadeWaiting=null;document.write("<style type='text/css'id='defaultPopStyle'>");document.write(".cPopText { background-color: #FFFFFF; border: 1px #000000 solid; font-size: 12px; padding-right: 4px; padding-left: 4px; height: 20px; padding-top: 2px; padding-bottom: 2px; filter: Alpha(Opacity=0)}");document.write("</style>");document.write("<div id='dypopLayer' style='position:absolute;z-index:1000;' class='cPopText'></div>");function showPopupText(){var o=event.srcElement;MouseX=event.x;MouseY=event.y;if(o.alt!=null && o.alt!=""){o.dypop=o.alt;o.alt='實(shí)現(xiàn)鼠標(biāo)經(jīng)過超鏈時(shí)的提示圖層'};if(o.dypop!=sPop) {sPop=o.dypop;clearTimeout(curShow);clearTimeout(tFadeOut);clearTimeout(tFadeIn);clearTimeout(tFadeWaiting); if(sPop==null sPop=="") {dypopLayer.innerHTML="";dypopLayer.style.filter="Alpha()";dypopLayer.filters.Alpha.opacity=0; }else {if(o.dyclass!=null) popStyle=o.dyclass else popStyle="cPopText";curShow=setTimeout("showIt()",tPopWait);}}}function showIt(){dypopLayer.className=popStyle;dypopLayer.innerHTML=sPop;popWidth=dypopLayer.clientWidth;popHeight=dypopLayer.clientHeight;if(MouseX+12+popWidth>document.body.clientWidth) popLeftAdjust=-popWidth-24else popLeftAdjust=0;if(MouseY+12+popHeight>document.body.clientHeight) popTopAdjust=-popHeight-24else popTopAdjust=0;dypopLayer.style.left=MouseX+12+document.body.scrollLeft+popLeftAdjust;dypopLayer.style.top=MouseY+12+document.body.scrollTop+popTopAdjust;dypopLayer.style.filter="Alpha(Opacity=0)";fadeOut();}function fadeOut(){if(dypopLayer.filters.Alpha.opacity<popOpacity) {dypopLayer.filters.Alpha.opacity+=showPopStep;tFadeOut=setTimeout("fadeOut()",1);}else {dypopLayer.filters.Alpha.opacity=popOpacity;tFadeWaiting=setTimeout("fadeIn()",tPopShow);}}function fadeIn(){if(dypopLayer.filters.Alpha.opacity>0) {dypopLayer.filters.Alpha.opacity-=1;tFadeIn=setTimeout("fadeIn()",1);}}document.onmouseover=showPopupText;//--></script><img src="http://www.blueidea.com/img/commonhttp://www.okasp.com/logo.gif" alt="blue!dea welcome you"> [Ctrl+A 全部選擇 提示:你可先修改部分代碼,再按運(yùn)行]大多數(shù)人在上網(wǎng)的時(shí)候,都會(huì)瀏覽網(wǎng)頁提供給我們的信息。
|