PDA

View Full Version : Hangman (DHTML/ActiveX)


Terry
01-02-2003, 11:40 PM
I thought I'd post this and see what you guys think (go easy on me :)). Anyway, my teacher gave the class a project to see if we could make a hangman game with an ActiveX object's draw methods and some good ole' DHTML. I've always wondered why javascript doesn't have any draw methods or graphics objects like Java has.

I suppose SVG will take the place of activeX and Flash... hopefully. Once we had the right object id it was a piece of cake (I found it by the way). Anyway, here's my program. I would've put the code in this post but I have a few includes and graphics that go with it. Best viewed in 1024 x 768 resolution, and IE only (of course).

http://www16.brinkster.com/webdesign23/Hangman/Hangman.htm

Tell me if it works in IE5. I had a problem with the way I checked for undefined subscripts in my arrays, I think I fixed it though (I'm using IE6).

- Terry

Majik_Dance
01-03-2003, 02:58 PM
Oh oh - another addictive game. :D

There goes that New Year's resolution.

Works fine for me - nice lay out (although, personal preference here, I think the box depicting the hangman would look better centered on the page itself).

Good job :thumbsup:

<edit>

Oops - glitch.

Answered 'Rome' - clicked the okay button for next game - got the HTTP 404 Not Found message page.

</edit>

Terry
01-03-2003, 05:03 PM
Majik_Dance,

Glad you like it. Thanks for the heads-up on the 404. I forgot to upload the HangmanDone page. Its there now: http://www16.brinkster.com/webdesign23/Hangman/HangmanDone.htm

- Terry