function class_GetNews($)
{
this.Init=function()
{
$.get("/ajax_getnews.ashx",function(html)
{
$("#divSeoNews").html(html);
});
}
}
if(typeof(jQuery)=="undefined")
{
document.write("");
var fnCheckLoadjQuery=function()
{
if(typeof(jQuery)=="undefined")
{
window.setTimeout(fnCheckLoadjQuery,10);
}
else
{
(new class_GetNews(jQuery)).Init();
}
};
}
else
{
(new class_GetNews(jQuery)).Init();
}
// JScript 文件
function $(id)
{
return document.getElementById(id);
}
function createXmlHttp()
{
var xmlHttp;
// 检测MSXMLHTTP版本,为了兼容IE各个版本
var activeKey = new Array("MSXML2.XMLHTTP.5.0","MSXML2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP");
if(window.ActiveXObject)
{
for(var i=0;i请填写正确的邮件地址";
emails.focus();
return false;
}
if(ukeyword=="Your Keywords")
{
alert("Please fill out your keyword");
keyword.focus();
return false;
}
if(uweburl=="Your website URL")
{
alert("Please fill out your website URL");
weburl.focus();
return false;
}
if(uposition=="Your targeted Position in Google submit")
{
alert("Please fill out Your targeted Position");
position.focus();
return false;
}
var url = "Email.aspx?action=PostUrl&keyword="+ encodeURI(ukeyword)+ "&weburl=" + encodeURI(uweburl)+"&position="+encodeURI(uposition)+"&names="+encodeURI(unames)+"&emails="+encodeURI(uemails)
var post={};
post.keywords=$("#keyword").val();
post.website=$("#weburl").val();
post.position=$("#position").val();
$.ajax({type:"post",url:"Quotation.ashx?act=PostUrl",data:post,success:function(json)
{
alert(json);
}
});
var xmlhttp2 = createXmlHttp();
xmlhttp2.open("GET",url,true);
xmlhttp2.send(null);
ukeyword.value = "";
uweburl.value = "";
uposition.value="";
//alert("Thank you for your inquiry,we'll reply within 24 hours!");
// getList();
}