By SandraNeu on
Hello everybody,
the site I want to bulid should do this:
- have a public start page with a javascript game on it (game is a modified version of this: http://janmulder.com/Scripts/MSquares/)
- have another version of the game in a page after someone logs in.
The game is a HTML with some external javascript files and some code inside the HTML aswell. (see the example link above)
I want an easy way to create these pages and login functionality. Is it totally wrong to try with Drupal? I'm not a big expert and all the documentation I read so far on drupal and javascript were not helpful to me.
So, if you know how this can work, please explain to me.
Thanks a lot
Sandra
Comments
-
Yes, you can certainly put this game in a drupal page. The code below is from a website I developed a few years back; it creates a memory game similar to what you have linked above. The images are numbered 1.jpg, 2.jpg, etc. This script asks the visitor to press a button below the game to start. Set input filter to full html.
-
bmv,
thanks a lot! you gave me new hope :-)
What I don't understand so far is where I put the single elements and scripts that I need.
- The HTML code with some javascript parts and function calls in it I put in the new page, right?
- My external js scripts I put somewhere on my server. Same for the pictures.
BUT how do I get drupal to load the external scripts? I also use jquery. How do I get all this to work together?
Thx
Sandra
.
Yes, html and small JS bits go into the new page.
For external scripts, see this:
http://drupal.org/node/91250#comment-1301628
(If I recall correctly, the 6.x code goes into your page.tpl.php page, which is located in your theme directory.)