ÓÃJavascriptÒÔÀàµÄ·½Ê½½øÐÐðÅÝÅÅÐò
»ù±¾ÉÏÈ«²¿¼ÓÁË×¢ÊÍ,Ò»ÐÐÒ»×¢....ºÇºÇ
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Êý×éÅÅÐò</title>
<mce:style type="text/css"><!--
body{
font-family:ËÎÌå;
font-size:9pt;
background:#EDEDED;
}
h2
{
font-weight:normal;
font-size:18px;
text-align:center;
background:#fff;
border:solid 1px #B8B8B8;
padding:15px 15px 10px 15px;
}
#InputArr
{
width: 218px;
}
#Show
{
margin-top:20px;
width:40%;
min-height:100px;
height:auto;
padding:10px;
background:white;
border:dashed 1px #B8B8B8;
}
--></mce:style><style type="text/css" mce_bogus="1">body{
font-family:ËÎÌå;
font-size:9pt;
background:#EDEDED;
}
h2
{
font-weight:normal;
font-size:18px;
text-align:center;
background:#fff;
border:solid 1px #B8B8B8;
padding:15px 15px 10px 15px;
}
#InputArr
{
width: 218px;
}
#Show
{
margin-top:20px;
width:40%;
min-height:100px;
height:auto;
padding:10px;
background:white;
border:dashed 1px #B8B8B8;
}</style>
</head>
<body>
<h2>¶¨ÒåÒ»¸ö°üº¬6¸öÔªËصÄÕûÐÍÊý×é²¢¸³Öµ£¬È»ºóʹÓÃðÅÝÅÅÐò·¨½øÐÐÅÅÐò£¬²¢½«Ã¿Ò»ÂÖµÄÅÅÐò½á¹ûÏÔʾ³öÀ´</h2>
<mce:script type="text/javascript"><!--
//Êý×éÅÅÐòÀà
function BubleSort() {
//Êý×é³ÉÔ±
BubleSort.prototype.Nums = new Array();
//ÅÅÐòÀúÊ·¼Ç¼
BubleSort.prototype.Hostory = "";
//·ÀÖ¹Óû§Öظ´µã»÷ÅÅÐòÔì³É ÀúÊ·¼Ç¼×Ö¶ÎÖظ´µþ¼Ó
BubleSort.prototype.Flag = true;
//¶¨Ò帳ֵ¸ø[Êý×é³ÉÔ±]µÄ·½·¨.ÕâÀïÊÇÒÔ¿Õ¸ñÀ´·Ö¸î×Ö·û´®ÎªÊý×éµÄ
BubleSort.prototype.SetArr = function(_str)
{
//¶¨ÒåÒ»¸ö±äÁ¿»ñÈ¡·Ö¸îºóµÄÊý×é
Ïà¹ØÎĵµ£º
<html>
<body>
<mce:script language=javascript><!--
todayDate = new Date();
date = todayDate.getDate();
month= todayDate.getMonth() +1;
year= todayDate.getYear();
document.write("½ñÌìÊÇ")
document.write("<br>")
if(navigator.appName == "Netscape")
{
document.w ......
http://news.csdn.net/a/20100424/218105.html
JavaScript µÄ³É¹¦ÈÃÈ˽ò½òÀÖµÀ£¬Îª Web ÍøÒ³±àд JavaScript ´úÂëÒѾÊÇËùÓÐ Web Éè¼ÆʦµÄ»ù±¾¹¦£¬ÕâÃÅÓÐȤµÄÓïÑÔÔ̲Ø×ÅÐí¶à²»ÎªÈËÊìÖªµÄ¶«Î÷£¬¼´Ê¹¶àÄêµÄ JavaScript ³ÌÐòÔ±£¬Ò²Î´ÄÜÍêÈ«³Ô͸¡£±¾ÎÄ´Ó7¸ö·½Ãæ½²Êö JavaScript ÖÐÄÇЩÄã²»ºÜÊìÖªµ«·Ç³£ÊµÓõļ¼ÇÉ¡£
¼òÂÔÓï¾ä
......
1£®ÔÚCOM×é¼þÖе÷ÓÃJavaScriptº¯Êý
// Á¬½Óµã·½Ê½Ò³Ãæjavascript½Å±¾
<object classid="CLSID:B568F111-DFE4-4944-B67F-0728AB2AB30F"
id="testCom" VIEWASTEXT></object>
<script language="JavaScript" for="testCom" event="staTe(s)">
&nbs ......
ÒÔÏÂÊÂÀýΪ½áºÏ±¾È˵çÄÔ¶øÉè¼ÆµÄ²ÎÊý,ÄúÒ²¿É¸ÄΪ×Ô¼ºµÄ³ß´ç
<SCRIPT LANGUAGE="JavaScript">
var chicun;
chicun=screen.width;
if(chicun==1280||chicun==1440||chicun==1600)
{
<!--
function initEcAd() {
document.all.AdLayer1.style.posTop = -100;
document.all.AdLayer1.style.visibility = 'vis ......
ÎÒÃǾ³£ÐèÒªÔÚJavaScriptÖиøElement¶¯Ì¬Ìí¼Ó¸÷ÖÖÊôÐÔ£¬Õâ¿ÉÒÔͨ¹ýʹÓÃsetAttribute()À´ÊµÏÖ£¬Õâ¾ÍÉæ¼°µ½ÁËä¯ÀÀÆ÷µÄ¼æÈÝÐÔÎÊÌâ¡£
setAttribute(string name, string value)£ºÔö¼ÓÒ»¸öÖ¸¶¨Ãû³ÆºÍÖµµÄÐÂÊôÐÔ£¬»òÕß°ÑÒ»¸öÏÖÓеÄÊôÐÔÉ趨Ϊָ¶¨µÄÖµ¡£
1¡¢ÑùʽÎÊÌâ
setAttribute(class, value)ÖÐclassÊÇÖ¸¸Ä±äclassÕâ¸öÊôÐ ......