Brian, I downloaded the source code and the ch02/index.html ran fine on Chrome. WebGL does not work for my display driver but that is another issue. I guess the problem is not in DOM but that scripts not executed because both JHS and that webpage want to set the handler for onload event.
Note that if I comment out the scripts by changing "script" to "noscript" in line 9 and 10, then the index.html will not display text. The reason may be that in line 20 of main.css it set display to none. If you change that "none" to "block", then text will re-appear. Alternatively, if you also comment out line 7 and 8, change stylesheet to nostylesheet, text will also appear but without those fancy fnot. IMO, given that JHS is a framework for generating dynamic webpage, it can have problem with some javascript library out there. If you want to learn from that book, then you need to put JHS aside. When you have learnt enough HTML5 and javascript, you can write webpage using HTML5/javascript that communicate with a J server for computation. index.html 1 <!DOCTYPE HTML> 2 <html lang="en-US"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Jewel Warrior</title> 6 7 <link rel="stylesheet" href="styles/main.css" /> 8 <link rel="stylesheet" href="styles/fontfaces.css" /> 9 <noscript src="scripts/modernizr.js"></noscript> 10 <noscript src="scripts/loader.js"></noscript> 11 </head> 12 <body> 13 <div id="game"> 14 <div class="screen" id="splash-screen"> 15 <h1 class="logo">Jewel <br/>Warrior</h1> 16 <span class="continue">Click to continue</span> 17 </div> 18 19 <div class="screen" id="main-menu"></div> 20 <div class="screen" id="game-screen"></div> 21 <div class="screen" id="high-scores"></div> 22 </div> 23 </body> 24 </html> main.css 16 #game .screen { 17 position : absolute; 18 width : 100%; 19 height : 100%; 20 display : none; 21 z-index : 10; 22 } 23 Вт, 04 фев 2014, Brian Schott писал(а): > Another difference that I did not mention is that the JHS html code has a > fancy <body>, while the native html has a simple <body>. The fancy one is > below. > > <body onload="jevload();" onunload="jevunload();" onfocus="jevfocus();"> > > > > -- > (B=) > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm -- regards, ==================================================== GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm