當(dāng)前位置:軟件學(xué)堂 > 資訊首頁(yè) > 網(wǎng)絡(luò)編程 > 編程其他 > 查看網(wǎng)站的排名的代碼怎么寫

查看網(wǎng)站的排名的代碼怎么寫

2012/11/12 16:23:34作者:佚名來源:網(wǎng)絡(luò)

移動(dòng)端

【實(shí)例名稱】

查看網(wǎng)站的排名的代碼怎么寫

【實(shí)例描述】

要了解自己網(wǎng)站現(xiàn)在的排名情況,可去alexa網(wǎng)站查看。本例通過一段簡(jiǎn)單的代碼鏈接到alexa網(wǎng)站,讓站長(zhǎng)可以輕松地了解自己網(wǎng)站的情況。

【實(shí)例代碼】

<html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>標(biāo)題頁(yè)-學(xué)無憂(www.denvermotorcycleaccidentlawyer.com)</title> </head> <body> <a href="http://www.alexa.com/data/details?amzn_id=&url=www.baidu.com"> 查看百度的排名</a> </body> </html>

【運(yùn)行效果】

 查看網(wǎng)站的排名運(yùn)行效果

【難點(diǎn)剖析】

本例的重點(diǎn)是鏈接到alexa網(wǎng)站所需要的參數(shù)?!皍rl”參數(shù)表示要查看排名的網(wǎng)站,注意此參數(shù)不能帶“http:∥”標(biāo)識(shí)。

【源碼下載】

為了JS代碼的準(zhǔn)確性,請(qǐng)點(diǎn)擊:查看網(wǎng)站的排名 進(jìn)行本實(shí)例源碼下載 

標(biāo)簽: 網(wǎng)站  排名  代碼