常德seo:黑帽SEO之若何刷 ALEXA 排名
常德seo:黑帽SEO之若何刷 ALEA 排名
常德seo今天要讲到的是刷ALEA 排名,先做一个简朴先容:
Alexa排名是指网站的世界排名,主要分为综合排名和分类排名,Alexa提供了包罗综合排名、到访量排名、页面接见量排名等多个评价指标信息,大多数人把它看成当前较为权威的网站接见量评价指标。
2002年5月Alexa放弃了自己的搜索引擎转而与Google互助。
Alexa天天在网上搜集跨越1,000GB的信息,然后举行整合公布,他搜集的网址链接数目已经跨越了Google。
第一步,首先下载安装 alexa工具条,若是已经安装了,那跳过这一步即可。若是还没有安装,请下载安装。
第二步,确保 alexa工具条是可以事情的,xp 系统下有的时刻alexa 工具条不能正常显示,解决办法是安装 一个 yahoo 助手,然后在上网助手中,选择ldquo;插件阻挡rdquo;,打开后,在工具插件中,第一项就是ldquo;ALEA 工具条rdquo;,选择它,然后在对话框底部,点ldquo;允许弹出rdquo;。
第三步,确立一个 alexa.htm页面,代码如下
lt;htmlgt;
lt;headgt;
lt;titlegt;alexa 排名演示lt;/titlegt;
lt;script languagequot;javascriptquot;gt;
var nInterval;
function chkRefresh()
{
winwindow.open(quot;alexa.aspxquot;,quot;mzsquot;,quot;quot;);
nIntervalsetInterval(quot;go()quot;,15000);
}
function go()
{
if(win.closedtrue){chkStop();}else{
win.locationquot;alexa.aspxquot;;}
}
function chkStop()
{
window.clearInterval(nInterval);
win.close();
}
lt;/scriptgt;
lt;/headgt;
lt;bodygt;
p分页题目e lt;input type39;button39; id39;btn39; stylequot;width:60pxquot; valuequot;最先刷quot; onclickquot;chkRefresh();quot;gt;
lt;input typequot;buttonquot; valuequot;住手刷quot; namequot;btnStopRefreshquot; onclickquot;chkStop();quot;gt;
lt;/bodygt;
lt;/htmlgt;
第四步,确立一个 alexa.aspx页面,html 代码
lt;htmlgt;
lt;headgt;
lt;titlegt;alexalt;/titlegt;
lt;/headgt;
lt;body MS_POSITIONINGquot;FlowLayoutquot;gt;
lt;form idquot;Form1quot; methodquot;postquot; runatquot;serverquot;gt;
lt;/formgt;
lt;script languagequot;javascriptquot;gt;
//每隔一定时间自动挪用该页面,此时该页面用 ajax 随机挪用数据库 url,从而实现 alexa 刷新
//debugger;
var dt alexa.GetUrl().value.Tables[0];
if (dt.Rows.length gt; 0)
{
window.location.hrefdt.Rows[0].url;
}
lt;/scriptgt;
lt;/bodygt;
lt;/htmlgt;
cs 代码
public class alexa : System.Web.UI.Page
{
private void Page_Load(object sender, System.EventArgs e)
{
Utility.RegisterTypeForAjax(typeof(alexa));
}
[AjaxMethod()]
public DataSet GetUrl()
{
DataSet ds new DataSet();
string strConnection System.Configuration.ConfigurationSettings.AppSettings[quot;Conn Strquot;];
SqlConnection conn new SqlConnection(strConnection);
SqlCommand cmd conn.CreateCommand();
cmd.CommandText quot;select top 1 from alexa order by newid()quot;;
SqlDataAdapter da new SqlDataAdapter(cmd);
da.Fill(ds);
conn.Close();p分页题目e
if(ds!null)
{
return ds;
}
else
{
return null;
}
}
Web Form Designer generated code
}
第五步,可以用接见目录的方式,也可以用数据库的方式来读取 url,我这里是按数据库的方式来演示的,
确立一个表,结构如下
if exists (select from dbo.sysobjects where id object_id(N39;[dbo].[alexa]39;) and OBJECTPROPER TY(id, N39;IsUserTable39;) 1)
drop table [dbo].[alexa]
GO
CREATE TABLE [dbo].[alexa] (
[id] [int] IDENTITY (1, 1) NOT NULL ,
[url] [nvarchar] (500) COLLATE Chinese_PRC_CI_AS NULL
) ON [PRIMARY]
GO
第六步,把你网站的所有页面都录入到数据库,直接在查询分析器中用 in sert 语句,就不用录入页面了
第七步,最先用刷气力的工具刷流量
(责任编辑:网络)
发表评论
西安阳光房
回复曾经是梦想家,现在没了梦,只剩下想家。
西安汇林华城
回复这次期末考,我会用实力告诉你,我们年级共有多少人。
西安市建筑科技大学
回复这么多年没掉入桃色陷阱,靠的就是两个字,没钱。
西安大金中央空调
回复暗恋的人没有,想暗杀的倒有一堆。
西安交通网违章查询
回复面对困难,再坚持一会儿,就会习惯的。