在產生的頁面中,改動JS配置代碼即可:
backgroundcolor: "0a0a0a",//背景色bordercolor: "ffffff",//邊框顏色textcolor: "ffffff",//文本顏色logoimage: "logo.png",//logo路徑progressbarimage: "lodin.png",//載入條圖片progressframeimage: "lodbg.png"//載入條背景//注意以上三處應該使用png格式的圖片,且載入條圖片和載入條背景應該具有同等寬、高,且載入條圖片是可以向X軸方向迴圈
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Unity Web Player | U3DWorkSpace</title><script type='text/javascript' src='jquery.min.js'></script><script type="text/javascript"><!--var unityObjectUrl = "UnityObject2.js";if (document.location.protocol == 'https:')unityObjectUrl = unityObjectUrl.replace("http://", "https://ssl-");document.write('<script type="text\/javascript" src="' + unityObjectUrl + '"><\/script>');--></script><script type="text/javascript"><!--var config = {params: {enableDebugging:"0",backgroundcolor: "0a0a0a",//背景色bordercolor: "ffffff",//邊框顏色textcolor: "ffffff",//文本顏色logoimage: "logo.png",//logo路徑progressbarimage: "lodin.png",//載入條圖片progressframeimage: "lodbg.png"//載入條背景//注意以上三處應該使用png格式的圖片,且載入條圖片和載入條背景應該具有同等寬、高,且載入條圖片是可以向X軸方向迴圈}};var u = new UnityObject2(config);jQuery(function() {var $missingScreen = jQuery("#unityPlayer").find(".missing");var $brokenScreen = jQuery("#unityPlayer").find(".broken");$missingScreen.hide();$brokenScreen.hide();u.observeProgress(function (progress) {switch(progress.pluginStatus) {case "broken":$brokenScreen.find("a").click(function (e) {e.stopPropagation();e.preventDefault();u.installPlugin();return false;});$brokenScreen.show();break;case "missing":$missingScreen.find("a").click(function (e) {e.stopPropagation();e.preventDefault();u.installPlugin();return false;});$missingScreen.show();break;case "installed":$missingScreen.remove();break;case "first":break;}});u.initPlugin(jQuery("#unityPlayer")[0], "u3dtest.unity3d");});--></script><style type="text/css"><!--body {font-family: Helvetica, Verdana, Arial, sans-serif;background-color: white;color: black;text-align: center;width:100%;height:auto;margin:0px;padding:0px;}div.content { width:100%; height:auto; margin:0px; padding:0px;}div#unityPlayer {cursor: default;height: 100%;width: 100%;margin:0px;padding:0px;}--></style></head><body><div class="content"><div id="unityPlayer"></div></div></body></html>