在Google Blogger上安装NeptunJs



我一直试图在我的谷歌博客上添加这个NetptunJS游戏模拟器(java脚本),但它不起作用,开发人员声称它适用于所有网站和博客(只是复制和粘贴代码),官方网站:http://neptunjs.xyz/doc.html下面是代码的一个示例:

<script>
var NepPlayer = "#emu";     // ID of html element where the emulator will be inserted
var NepEmu = "nes";         // Platform select
var NepZoom = "enable";     // Add extra button on toolbar to scale up emulator. Disabled by default
var NepMaxWidth = "1100px"; // Maximum width size of emulator. 870px by default
var NepLang = "en";         // Interface language of the emulator. EN by default
var gameUrl = "//neptunjs.xyz/roms/nes/Super Mario Bros (W) [!].zip"; // Game Url
<script>
<script
src="https://mem.neptunjs.com/njs/njsLoader.js"
type="text/javascript"> //NeptunJS lib
谁能给我点提示?谢谢。

代码缺少一些东西。有些<script>标签需要/标签

这是我使用的代码:

<script>

var NepPlayer = "#player";     
// ID of html element where emulator will be inserted

var NepEmu = "nes";         
// Platform select

var NepLang = "en";
// Option "en,rus,ptBR,ja"
// Interface language of emulator. EN by default

var gameUrl = "https://neptunjs.xyz/roms/nes/Super Mario Bros (W) [!].zip"; // Game Url 
</script>

<script src="https://mem.neptunjs.com/njs/njsLoader.js" type="text/javascript"> //NeptunJS lib
</script>
<div id="player"></div>

最新更新