100·ÖÇóÖúÒ»¸öÎÊÌ⣺¸ÄÔìÒ»¸öJavascript´úÂë
ÎÒÊÖ±ßÓÐcsdnÂÛ̳µ¯³öÐÅÏ¢´°¿ÚµÄ´úÂë(¿ÉÒÔ´Óhttp://www.codefans.netÏÂÔØ)£¬µ«ËüÏÔʾµÄÖ»Êǹ̶¨µÄÐÅÏ¢£¬ÏÖÔÚÏë¸ÄÔìÒ»ÏÂÒÔ±ãÄÜͨ¹ýºǫ́µ÷ÓÃSql Server 2000Êý¾Ý¿â×Ô¶¯½«Êý¾Ý±íÖеÄÐÅÏ¢×÷Ϊµ¯³ö´°¿ÚÏÔʾµÄÐÅÏ¢¡£csdnÂÛ̳µ¯³öÐÅÏ¢´°¿ÚµÄÔ´´úÂëÖ÷ÒªÓÉÒÔϼ¸¸öÎļþ×é³É£º
1. index.html ----- Æðʼҳ £¨¹Ø¼üµÄ¾ÍÒ»ÌõÓï¾ä£º<SCRIPT src="js.js"></SCRIPT>£©
2. js.js ----- µ¯³ö´°¿ÚËùÏÔʾµÄÐÅÏ¢ÄÚÈÝ£¬JavascriptÎļþ
3. msg.js ----- ¿ØÖÆÐÅÏ¢´°¿ÚµÄµ¯³öÓë¹Ø±Õ£¬JavascriptÎļþ
ÆäËü»¹Óм¸¸öcssÑùʽÎļþºÍͼƬÎļþ£¬Î޹ؽôÒª¡£
js.jsµÄÄÚÈÝÈçÏ£º
document.writeln("<SCRIPT language=JavaScript src=\"msg.js\" type=text\/javascript><\/SCRIPT>");
document.writeln("<link href=\"message.css\" rel=\"stylesheet\" type=\"text\/css\"\/>");
document.writeln("<div style=\"display: block;\" id=\"_popup_msg_container\">");
document.writeln("<div class=\"im_popupWindow\" id=\"im_popupWindow_miniMsg\" wistate=\"max\" style=\"display: block; height: 244px;\">");
document.writeln(" <h6 class=\"wi_draggable\"><a href=\"#\" onclick=\"_message_tips_pop('down');return false;\"><img src=\"x.gif\" class=\"founctionpic3\" alt=\"colse\"\/> <\/a><\/h6>");
document.writeln(" <div c
Ïà¹ØÎÊ´ð£º
ÓÃjavascript½«Êý¾Ýµ¼³öµ½Îı¾Îļþ(txt)ÖÐ..
Ê×ÏȼÙÉèÒѾÓÐÁËÐèҪдÈëµÄÎı¾ÄÚÈÝ var txtContent ="ÐèҪдÈëµÄÄÚÈÝ";
ÏÖÔÚÐèÒªÓÃjavascript½«ÄÚÈÝдÈëtxtÎļþ(Õâ¸ötxtÎļþ²»´æÔÚ,ÐèÒª´´½¨)ÖÐ,È»ºóдºÃÖ ......
<html>
<head>
<title></title>
</head>
<body>
<font color="#0000FF"><b>ÇëÔÚÎı¾¿ò1ÖÐÊäÈëÎÄ×Ö£º</b>
<form>
<input ......
ÎҾͻáһЩ¼òµ¥±íµ¥ÑéÖ¤£¬ÏëÌá¸ßjavascript£¬µ«ÊÇϵĺܶණÎ÷²»ÊÇÌ«¼òµ¥¾ÍÊÇ×ÊÁÏÌ«ÉÙ£¬»òÊÇ×ÊÁϲ»È«£¬ÊÓÆµµÄ»°ÏÂÔØ»¨Á˺ܶàʱ¼ä£¬ÏÂÔØÍê²Å·¢ÏÖ²»ÊʺÏ×Ô¼º£¬À˷Ѻܶàʱ¼ä£¬ËùÒÔÇë¸ßÊÖÃÇÖ¸Òýһϣ¬ÄÇЩ½Ì³Ì»ò×ÊÁÏÊÊºÏ ......
<script language="javascript">
function click() {
if (event.button==2) { //button==1Ϊ×ó¼ü
alert('µã»÷²é¿´ÎÄÕÂÏêϸÄÚÈÝ£¡')
}
}
document.onmousedown=click
</script>
ÒÔÉÏ ......
¸÷λʹÓÃjsµÄ¸ßÊÖ. СµÜÎʼ¸¸öÎÊÌâ,Çë´ó¼Ò°ïæ½â´ð.À§ÈÅÁËÎÒ2¸öÐÇÆÚÁË.Ò»Ö±²»Ì«Ã÷°×.
±ÈÈç :
Div1 ÊÇÒ»¸ö²ã;
var myitem=new Item(document.getElem ......