JavascriptÖжÔÏóµÄ»ù±¾Ó÷¨
ÉùÃ÷£º
function person(name, country)
{
this.name = name;
this.country = country;
}
ʵÀý»¯¶ÔÏó£º
var theauthor = new person('Daniel', 'U.S.A.');
ÒýÓãº
function sayHello(objPerson)
{
return "Hello " + objPerson.name;
}
document.write( sayHello(theauthor) );
Ïà¹ØÎĵµ£º
IE¹¦ÄÜ»ã×Ü
<OBJECT id=WebBrowser height=0 width=0
classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2></OBJECT>
<INPUT onclick=document.all.WebBrowser.ExecWB(1,1) type=button value=´ò¿ª name=Button1>
<INPUT onclick=document.all.WebBrowser.ExecWB(4,1) type=button value=Áí´ ......
//̽²âͼƬÊÇ·ñ´æÔÚ
function IsExist(url)
{
x = new ActiveXObject("Microsoft.XMLHTTP")
x.open("HEAD",url,false)
x.send()
return x.status==200
}
ÅжÏijһ¸öÍøÂçµØÖ·µÄͼƬÊÇ·ñ´æÔÚ£¬Èç¹û´æÔÚ£¬¾Í»á·µ»Øtrue ,²»´æÔھͷµ»Ø false~~~~ ......
ÈÕÖ¾ÔÎÄ£ºhttp://zzgziyu.blog.sohu.com/109589244.html
<script>
("<html
xmlns:v><style>v\\:*{behavior:url(#default#VML)}</style>")
var
ct1=new ct()
function ct(){
="green,yellow,red,blue,gray,purple".split(",")
&nb ......
´¿Í¼Æ¬°æ£º
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Slideshow</title>
<mce:script type="text/javascript" charset="utf-8"><!--
var galleryarra ......
ÓÉÓÚºǫ́ģ°åϵͳµÄÇ¿´ó£¬ÈçrailsµÄerb£¬javascriptµÄÄ£°åϵͳһֱ´¦ÓÚ±»´òѹ״̬£¬µ«ÓÖÓÉÓÚºǫ́µÄ¼¼Êõ·¢Õ¹¹ý¿ì£¬ÈÕÐÂÔÂÒ죬ÒÔ¼°AjaxÓ¦ÓÃµÄÆÕ¼°£¬javascript»¹ÊÇÓÐÒ»½åÖ®µØµÄ¡£ÈçÎÒÃÇÒª´Óºǫ́·µ»ØÒ»¸öHTMLƬ¶Ï£¬µ«ÊÂʵÉÏÎÒÃÇÓÀÔ¶Ö»ÄÜ·µ»ØÎı¾£¨responseText£©»òresponseXML£¬Èç¹ûÄãµÃµ½ÊÇjson£¬Æäʵºǫ́ÒÑÉÔÉÔµ÷ÓÃjavascrip ......