share.js

来自「飞机订票系统源代码 飞机订票系统源代码 飞机订票系统源代码」· JavaScript 代码 · 共 52 行

JS
52
字号
function sModuleTitleA(strTitleName,intWidth)
{
var s;
s = "<table width=" + intWidth + " border=0 cellspacing=0 cellpadding=0 align=center>";
s += "	<tr><td bgcolor=#999966><img src=/images/0.gif width=1 height=1 border=0></td></tr>";
s += "	<tr><td><img src=/images/0.gif width=1 height=1 border=0></td></tr>";
s += "	<tr><td bgcolor=#3E7CBB><img src=/images/0.gif width=1 height=2 border=0></td></tr>";
s += "	<trvalign=bottom><td bgcolor=#3E7CBB align=center height=16><font color=#FFFFFF>" + strTitleName + "</font></td></tr>";
s += "</table>";
return s;
}
function DrawModuleTitleA(strTitleName,intWidth)
{
return document.write(sModuleTitleA(strTitleName,intWidth));
}


function sModuleTitleB(strTitleName,intWidth,strAlign,intSpace,strIconSrc)
{
var s;
if (!strAlign) strAlign="right";
s = "<table width=" + intWidth + " border=0 cellpadding=0 cellspacing=0>";
s += "	<tr height=6 bgcolor=#FFD57D>";
s += "		<td valign=top colspan=3><img src=/images/a1.gif border=0></td></tr>";
s += "	<tr><td><img src=/images/0.gif height=1 border=0></td></tr>";
s += "	<tr valign=bottom bgcolor=#3E7CBB align=center height=16>"
if (intSpace) 
	s += "	<td width=" + intSpace + ">&nbsp;</td>";
s += "<td width=" + (intWidth-2*intSpace) + " align=" + strAlign + ">";
if (strIconSrc) s += "<img align=right src=" + strIconSrc + ">";
s += "<font color=#ffffff>" + strTitleName + "</font></td>";
if (intSpace) 
	s += "	<td width=" + intSpace + ">&nbsp;</td>";
s += "</tr>";
s += "</table>";	
return s;
}

function DrawModuleTitleB(strTitleName,intWidth,strAlign,intSpace,strIconSrc)
{
return document.write(sModuleTitleB(strTitleName,intWidth,strAlign,intSpace,strIconSrc));
}

function ad_button(src,href,alt,target)
{
var s;
s='';
s+='<a href="' + href + '" target="' + target + '" alt="' + alt + '">';
s+='<img vspace="0" hspace="0" width="120" height="60" border="0" src="' + src + '"></a>';
document.write(s);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?