Nesbox emutator in WordPress…
-
Hello,
I’m having trouble trying to do the NesBox emulator running on WordPress.
I can run it on a page in pure HTML, but it does not work as a post in the WordPress. Also, I need to pass by a shortcode a system “snes” and the ‘rom’ of the game “Super Mario (U) .zip” to the variable ‘flashvars’ in the emulator.
The code that works is as follows:<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>NesBox test</title> <meta name="description" content="NesBox emulator"> <meta name="Tom" content="NesBox emulator"> <link rel="stylesheet" href="css/styles.css?v=1.0"> <!--[if lt IE 9]><script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!-- Inicio do Script do Emulador --> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> <script src="//ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script> <script type="text/javascript"> var resizeOwnEmulator = function(width, height) { var emulator = $('#emulator'); emulator.css('width', width); emulator.css('height', height); } $(function() { function embed() { var emulator = $('#emulator'); if(emulator) { var flashvars = { system : 'snes', url : '/wp-content/emulator/flash/3x3 Eyes - Juuma Houkan (J) [h1C].zip' }; var params = {}; var attributes = {}; params.allowscriptaccess = 'sameDomain'; params.allowFullScreen = 'true'; params.allowFullScreenInteractive = 'true'; swfobject.embedSWF('flash/Nesbox.swf', 'emulator', '640', '480', '11.2.0', null, flashvars, params, attributes); } } embed(); }); </script> </head> <body> <div> <div id="emulator"> <p>To play this game, please, download the latest Flash player!</p> <br> <a href="https://www.adobe.com/go/getflashplayer"> <img src="//www.adobe.com/images/shared/download_buttons/get_adobe_flash_player.png" alt="Get Adobe Flash player"/> </a> </div> </div> <!-- Fim do Script do Emulador --> </body> </html>
For example:
https://www.nanuvem.is-best.net/wp-content/emulator/Please, can you help me?
Thanks in advance!
- The topic ‘Nesbox emutator in WordPress…’ is closed to new replies.