我是 javascript 新手,有兴趣创建一个小的 o3d 脚本:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Test Game Website</title>
</head>
<body>
<script type="text/javascript" src="o3djs/base.js"></script>
<script type = "text/javascript" id="myscript">
o3djs.require('o3djs.camera');
window.onload = init;
function init(){
document.write("jkjewfjnwle");
}
</script>
<div align="background">
<div id="game_container" style="margin: 0px auto; clear: both; background-image: url('./tmp.png'); width: 800px; height:600px; padding: 0px; background-repeat: no-repeat; padding-top: 1px;"></div>
</div>
</body>
</html>
浏览器似乎在这一行找不到 o3djs/base.js
<script type="text/javascript" src="o3djs/base.js"></script>
并在这一行给我一个未捕获的参考错误
o3djs.require('o3djs.camera');
很明显,因为找不到o3djs/base.js...
我已经从谷歌安装了 o3d 插件,他们说应该是我在 Firefox 上尝试过的,即和 chrome
谢谢