You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
846 B
JavaScript
20 lines
846 B
JavaScript
userislogin();
|
|
|
|
function userislogin(){
|
|
|
|
document.getElementById('login').innerHTML = "<a href='http://my.fpwap.com/dl.html?location="+window.location.href+"' target='_self'>怬</a>";
|
|
|
|
document.getElementById('reg').innerHTML = "<a href='http://my.fpwap.com/reg.html?location="+window.location.href+"' target='_self'>×¢²á</a>";
|
|
|
|
$.ajax({
|
|
|
|
url:"http://fahao.fpwap.com/xmw/fun.php?action=islogin",
|
|
|
|
type: 'GET',
|
|
|
|
dataType: 'jsonp',
|
|
|
|
jsonp: "callbackparam",
|
|
|
|
jsonpCallback:"returnJsonplog",
|
|
|
|
timeout: 10000,
|
|
|
|
success: function(data){
|
|
|
|
if(data.status==1){
|
|
|
|
document.getElementById('login').innerHTML = "<a href='http://my.fpwap.com'>"+data.username+"</a>";
|
|
|
|
document.getElementById('reg').innerHTML = "<a href='http://my.fpwap.com/fun.php?action=loginout' target='_self'>Í˳ö</a>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|