軟件是一系列按照特定順序組織的計(jì)算機(jī)數(shù)據(jù)和指令的集合。一般來(lái)講軟件被劃分為編程語(yǔ)言、系統(tǒng)軟件、應(yīng)用軟件和介于這兩者之間的中間件。硬件是“計(jì)算機(jī)硬件”的簡(jiǎn)稱。與“軟件”相對(duì),電子計(jì)算機(jī)系統(tǒng)中所有實(shí)體部件和設(shè)備的統(tǒng)稱。
如果嫌棄自己的頁(yè)面太單調(diào)不妨設(shè)置一個(gè)歡迎頁(yè)面,這樣的頁(yè)面用JavaScript也能實(shí)現(xiàn),大家熟知下下面的代碼吧。

JavaScript教程之創(chuàng)建一個(gè)歡迎cookie
《/P》
《P》《html》
《head》
《script type=“text/javascript”》
function getCookie(c_name)
{
if (document.cookie.length》0)
{
c_start=document.cookie.indexOf(c_name + “=”)
if (c_start!=-1)
{
c_start=c_start + c_name.length+1
c_end=document.cookie.indexOf(“;”,c_start)
if (c_end==-1) c_end=document.cookie.length
return unescape(document.cookie.substring(c_start,c_end))
}
}
return “”
}《/P》
《P》function setCookie(c_name,value,expiredays)
{
var exdate=new Date()
exdate.setDate(exdate.getDate()+expiredays)
document.cookie=c_name+ “=” +escape(value)+
((expiredays==null) ? “” : “; expires=”+exdate.toGMTString())
}《/P》
《P》function checkCookie()
{
username=getCookie(‘username’)
if (username!=null && username!=“”)
{alert(‘Welcome again ’+username+‘!’)}
else
{
username=prompt(‘Please enter your name:’,“”)
if (username!=null && username!=“”)
{
setCookie(‘username’,username,365)
}
}
}
《/script》
《/head》
《body onLoad=“checkCookie()”》
《/body》
《/html》