📄 addportal.js
字号:
function IsInstallSupMiniQQ(QQVersion){
try{//支持
var xmlhttp=new ActiveXObject("TimwpDll.TimwpCheck");
var n = xmlhttp.GetVersion();
if (n < QQVersion)
{
location.href='http://is.qq.com/up_alarm.shtml';
return false;
}
return true;
}catch(e){//不支持
location.href='http://is.qq.com/up_alarm.shtml';
return false;
}
return false;
}
function RealAddPortal (FpanelID,QQVersion)
{
var boolFals=IsInstallSupMiniQQ(QQVersion);
if(boolFals==true)
{
if(FpanelID==30710)
{
var exe ="Tencent://AddPortal/?Menu=Yes&Exe=QQ&PanelID="+FpanelID;
}
else
{
var exe ="Tencent://AddPortal/?Menu=Yes&PanelID="+FpanelID;
}
location.href=exe;
}
}
function SimpleAddPortal(FpanelID,QQversion,style)
{
var picUrl ,my_version;
var my_width, my_hight;
if(style=='1')
{
my_width=78 , my_hight=32;
picUrl="http://219.133.40.106/scbig.gif";
}
else
{
my_width=99 ; my_hight=23;
picUrl="http://219.133.40.106/scsm.gif";
}
if(QQversion=='')
{
my_version="2.1";
}
else
{
my_version=QQversion;
}
var Exe="<A onclick=RealAddPortal('"+FpanelID+"',"+my_version+") style='cursor:hand'><img src='"+picUrl+"' width='"+my_width+"' height='"+my_hight+"' align='absmiddle' border='0'></a>";
document.write(Exe);
}
function AddPortal (FpanelID,picUrl,style,Version)
{
var my_width, my_width2, my_hight;
var my_url,my_version,Exe;
if(Version=='')
{
my_version="2.1";
}
else
{
my_version=Version;
}
if(style=='2')
{
my_width=32 ;my_width2=48; my_hight=32;
if(picUrl=='')
{
my_url="http://219.133.40.106/logo2.gif";
}
else
{
my_url=picUrl;
}
Exe="<A onclick=RealAddPortal('"+FpanelID+"',"+my_version+") style='cursor:hand'><img src='"+my_url+"' width='"+my_width+"' height='"+my_hight+"' align='absmiddle' border='0'>"+"<img src='http://219.133.40.106/addqq2.gif' width='"+my_width2+"' height='"+my_hight+"' align='absmiddle' border='0'></a>";
}
else if(style=='3')
{
my_width=40 ;my_width2=54; my_hight=41;
if(picUrl=='')
{
my_url="http://219.133.40.106/logo3.gif";
}
else
{
my_url=picUrl;
}
Exe="<A onclick=RealAddPortal('"+FpanelID+"',"+my_version+") style='cursor:hand'><img src='"+my_url+"' width='"+my_width+"' height='"+my_hight+"' align='absmiddle' border='0'>"+"<img src='http://219.133.40.106/addqq3.gif' width='"+my_width2+"' height='"+my_hight+"' align='absmiddle' border='0'></a>";
}
else
{
my_width=24 ;my_width2=208; my_hight=23;
if(picUrl=='')
{
my_url="image/minilogo.gif";
}
else
{
my_url=picUrl;
}
Exe="<A onclick=RealAddPortal('"+FpanelID+"',"+my_version+") style='cursor:hand'><img src='"+my_url+"' width='"+my_width+"' height='"+my_hight+"' align='absmiddle' border='0'>"+"<img src='image/qqminibar.gif' width='"+my_width2+"' height='"+my_hight+"' align='absmiddle' border='0'></a>";
}
document.write(Exe);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -