📄 menu.php
字号:
} else {
$selectl.style.visibility = 'hidden';
}
}
function hiddenselect" . $selectl . " () {
$selectl.style.visibility = 'hidden';
}
</script>
<table border=0 cellpadding=0 cellspacing=0>
<tr>
<td><img src=images/" . $image . " onClick=\"showselect".$selectl."();\"></td>
</tr>
<tr>
<td height=1><div id=". $selectl . " style=\"position:absolute; width:" . $width . "px; height:" . $height . "px z-index:1; visibility: hidden;border-left:1 solid #ffffff;border-top:1 solid #ffffff;border-right:1 solid #cccccc;border-bottom:1 solid #cccccc;\">";
$string .= "<table border=0 cellpadding=0 width=" . $width . " cellspacing=0 height=" . $height . "><tr><td valign=top><IFRAME name=" . $selectf. " marginHeight=0 frameBorder=0 width=\"100%\" height=".$height." scrolling=no style=\"background:#c0c0c0\">IE</IFRAME></td></tr></table>";
$string .= "</div></td>
</tr>
</table>";
return $string;
}
function SelectFont ($name, $width, $caption, $value, $str) {
$selectl = "select_" . $name;
$selectf = "ifram_" . $name;
$caption = explode (",", $caption);
$value = explode (",", $value);
$j = count ($caption);
$height = 15 * $j;
if ($height > 150) {
$height = 150;
$scrolling = "auto";
} else {
$scrolling = "no";
}
$string_select = "<table width=\"100%\" border=\"0\" cellpadding=\"0%\" cellspacing=\"0\">";
for ($i = 0; $i < $j; $i ++) {
//$string_select .= "<a style=\"line-height:125%\" onmouseover=\"parent.colorover()\" onClick=\"parent.getvalue" . $selectl . " (" . $value[$i] . ")\">" . $caption[$i] . "</a><br>";
$string_select .= "<tr><td nowrap height=12 style=\"font-size:12px\" onmouseover=\"parent.mouseovercolor(this,\'#000080\');parent.showimage (\'font_" . $i . "\');\" onmouseout=\"parent.mouseoutcolor(this,\'#ffffff\');parent.hiddenimage(\'font_" . $i . "\');\" onClick=\"parent.getvalue" . $selectl . " (\'" . $str . "\',\'" . $value[$i] . "\')\" bgcolor=\"#ffffff\" algin=\"center\"><img src=images/" . $i . ".gif id=\"font_" . $i . "img\"></td></tr>";
}
$string_select .= "</table>";
$string = "<script>
function getvalue" . $selectl . " (str,v) {
$name.value = '' + v + '';
doFormat(str,v);
hiddenselect" . $selectl . " ();
}
function showselect" . $selectl . " () {
if ($selectl.style.visibility == 'hidden') {
$selectl.style.visibility = 'visible'
$selectf.document.body.innerHTML = '<font style=font-size:12px>$string_select</font>';
} else {
$selectl.style.visibility = 'hidden';
}
}
function hiddenselect" . $selectl . " () {
$selectl.style.visibility = 'hidden';
}
</script>
<table border=0 cellpadding=0 cellspacing=0>
<tr>
<td valign=bottom height=20><input name=" . $name . " type=text style=width:" . $width . ";font-size:12px;border-right:1 none value=字体></td><td align=left width=17><table border=0 cellpadding=0 cellspacing=0 width=17 height=20><tr><td background=images/select_arrow_bg.gif><img src=images/select_arrow1.gif onClick='showselect" . $selectl . "()' onMouseDown=\"this.className='downBorder'\" onMouseUp=\"this.className='overBorder'\"></td></tr></table></td>
</tr>
<tr>
<td height=1 colspan=2><div id=". $selectl . " style=\"position:absolute; width:100px; height:" . $height . "px z-index:1; visibility: hidden;border:1 solid #000000\">";
$string .= "<table border=0 cellpadding=0 cellspacing=0 height=100%><tr><td><IFRAME name=" . $selectf. " marginHeight=0 frameBorder=0 width=\"100%\" scrolling=" . $scrolling . " height=\"" . $height . "\">IE</IFRAME></td></tr></table>";
$string .= "</div></td>
</tr>
</table>";
return $string;
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -