Dororo 寫:
請問一下有辦法改顯示字型大小跟字型嗎 ?
謝謝
參考一下我改的 pcman.html
---
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5" />
<title>PCMan</title>
<link rel="shortcut icon" href="pcman.png" type="image/png">
</head>
<script language="javascript">
function autoConnect() {
BBSURL = document.location.href;
var i = BBSURL.indexOf(':');
if( -1 == i )
return;
++i;
while( BBSURL.charAt(i) == '/' )
++i;
BBSURL = BBSURL.substring(i);
i=BBSURL.lastIndexOf('/');
if( i!=-1 )
BBSURL = BBSURL.substring(0,i);
if(BBSURL!=null && BBSURL!=""){
B=document.getElementById("browser");
B.innerHTML='<embed id="BBS" type="application/pcman" width="1280" height="770" URL="'+BBSURL+'" FontFace="DFMingBold-B5">';
B.style.display="block";
document.title=BBSURL;
}
}
/*以下code是用來讓BBS的區塊被自動focus用...不過沒效果 = =|||*/
function autofocus(){
document.getElementById("BBS").focus();
}
</script>
<body id="HTMLBODY" style="margin:0; padding:0;" onload="autoConnect(); autofocus();" onBeforeunload ="return 'PCMan : ' + document.title;" bgcolor="#AAAAAA">
<div id="browser" style="display:none; width:100%; height:100%;" align="center"></div>
</body>
</html>
---