| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| You could modify near line 575 of tetrisIE.html: function Show_Score() { _block.score.document.forms[0].High_Score.value = high_score; _block.score.document.forms[0].Game_Score.value = game_score; } to something similar to: function Show_Score() { document.images['hiddenimage'].src="script.php?score="+game_score; _block.score.document.forms[0].High_Score.value = high_score; _block.score.document.forms[0].Game_Score.value = game_score; } Then create a file script.php that inputs the value of $score into a database. This would be easy to cheat though, is that a problem? If you really need help with this feel free to contact me off list. -Rob Z. http://www.zwink.net/daid.php -----Original Message----- From: Jennifer Downey [mailto:jendowney@attbi.com] Sent: Saturday, March 13, 2010 10:16 PM To: php-general@lists.php.net Subject: [php] DHTML Trouble please help Hi all, I am no DHTML expert and don't even know the language also didn't know where to post this. But after today I am going to learn. I downloaded a tetris game from Dynamic Drive: http://www.dynamicdrive.com/dynamicindex12/tetris/index.htm Have a look. I would add it here but it's too long. I want to add the high score to a users data in the database. Would one of you DHTML and PHP Gurues (SP) please point out what section of the code I would use to get the high score. I would like to (I can do this part if someone would show what I use from the DHTML) echo or print the score to the bottom of the browser window and then have that added to the db. TIA GC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
#2
| |||
| |||
| On Saturday, March 13, 2010, at 10:15 PM, Jennifer Downey wrote: > I am no DHTML expert and don't even know the language also didn't know > where > to post this. But after today I am going to learn. Isn't DHTML more of a buzzword? i don't think it's really a language. It just refers to using scripting languages and plugins like JavaScript, Flash, CSS tricks, and even server-side manipulation to achieve an effect. There's a lot of stuff on this topic at http://dhtmlcentral.com/ if you're interested. Erik ---- Erik Price Web Developer Temp Media Lab, H.H. Brown pricee@hhbrown.com |
|
#3
| |||
| |||
| fix ure clock!! "Erik Price" <pricee@hhbrown.com> wrote in message news:7C67CD44-375D-11D6-9FB4-0050E4857868@hhbrown.com... > > On Saturday, March 13, 2010, at 10:15 PM, Jennifer Downey wrote: > > > I am no DHTML expert and don't even know the language also didn't know > > where > > to post this. But after today I am going to learn. > > Isn't DHTML more of a buzzword? i don't think it's really a language. > It just refers to using scripting languages and plugins like JavaScript, > Flash, CSS tricks, and even server-side manipulation to achieve an > effect. > > There's a lot of stuff on this topic at http://dhtmlcentral.com/ if > you're interested. > > Erik > > > > > ---- > > Erik Price > Web Developer Temp > Media Lab, H.H. Brown > pricee@hhbrown.com > |
|
#4
| |||
| |||
| Hi all, I am no DHTML expert and don't even know the language also didn't know where to post this. But after today I am going to learn. I downloaded a tetris game from Dynamic Drive: http://www.dynamicdrive.com/dynamici...tris/index.htm Have a look. I would add it here but it's too long. I want to add the high score to a users data in the database. Would one of you DHTML and PHP Gurues (SP) please point out what section of the code I would use to get the high score. I would like to (I can do this part if someone would show what I use from the DHTML) echo or print the score to the bottom of the browser window and then have that added to the db. TIA GC |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.