Gnutella Forums  

Go Back   Gnutella Forums > Off Topic Discussion > Site Feedback
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

Site Feedback For feedback on Gnutella Forums.
For feedback on a specific Gnutella client, please post in one of the forums above; ie: Current Gnutella Client Forums
Site Feedback is only about issues in reference to this forum, NOT about a gnutella program usage problem


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old December 7th, 2001
Data Cartridge
 
Join Date: July 13th, 2001
Posts: 144
Becker is flying high
Default Html?

Goal: See how many squares you can check in 20 seconds. Time starts at first click
Code:
<SCRIPT LANGUAGE="JavaScript">
<!--// Copyright (c) 1996 Tomer Shiran. All rights reserved.
// Permission given to use this script provided that the copyright
// notice remains as is. Additional scripts and information are 
// available at http://www.geocities.com/SiliconValley/9000/
// assign initial values to global variables
var total = 0
var play = false
// react to a click in a checkbox (element == clicked checkbox object)

function display(element) {	
	// assign instance of Date object representing current time	
		var now = new Date()	
	// if the game has not started yet	
		if (!play) {		
	// game starts now		
		play = true		
	// milliseconds since 1970 for time at beginning 		
		startTime = now.getTime()	
	}	
	// if more than 20 seconds have passed since startTime was last set	
		if (now.getTime() - startTime > 20000) {		
			// reject modification (make "read-only")		
				element.checked = !element.checked		
			// terminate function		
			return	
		}	
	// if the clicked checkbox is now checked	
		if (element.checked)		
			// increment total		
				total++
		else		
			// decrement total		
				total--	
			// display total in text object	
				element.form.num.value = total
}

function restart(form) {	
	// set global variables back to initial values	
		total = 0	
		play = false	
	// uncheck all 100 checkboxes	
		for (var i = 1; i <= 100; ++i) {		
			// uncheck current checkbox		
				form.elements[i].checked = false	
		}
}
// -->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!--// immediate script (executed before the other script because it is deferred)
	document.write("<FORM><CENTER>")
	document.write('<INPUT TYPE="text" VALUE="0" NAME="num" SIZE=10 onFocus="this.blur()"><BR>')
	document.write("<HR SIZE=1 WIDTH=40%>")
// use loop to create a 10 x 10 square of checkboxes
	for (var i = 0; i < 10; ++i) {	
		for (var j = 0; j < 10; ++j) {		
			// write checkbox with "display(this)" as event handler script		
				document.write('<INPUT TYPE="checkbox" onClick="display(this)">')	
		}	
		document.write("<BR>")
	}
	document.write("<HR SIZE=1 WIDTH=40%>")
	// create button to call restart function to restart game
		document.write('<INPUT TYPE="button" VALUE="restart" onClick="restart(this.form)">')
		document.write("</CENTER></FORM>")
// -->
</SCRIPT>
<!-- END OF SCRIPT -->
Reply With Quote
  #2 (permalink)  
Old December 7th, 2001
Data Cartridge
 
Join Date: July 13th, 2001
Posts: 144
Becker is flying high
Default now for the question

Have you had any problems in the fourms with HTML? or do most poeple not notice that it is on?
Becker
Reply With Quote
  #3 (permalink)  
Old December 9th, 2001
Morgwen's Avatar
lazy dragon - retired mod
 
Join Date: October 14th, 2001
Location: Germany
Posts: 2,927
Morgwen is flying high
Default

I have never needed Html in a post...

Morgwen
Reply With Quote
  #4 (permalink)  
Old December 9th, 2001
Data Cartridge
 
Join Date: July 13th, 2001
Posts: 144
Becker is flying high
Default

<BODY onLoad="alert('You havent had people messing with alerts?')">
Reply With Quote
  #5 (permalink)  
Old December 9th, 2001
Morgwen's Avatar
lazy dragon - retired mod
 
Join Date: October 14th, 2001
Location: Germany
Posts: 2,927
Morgwen is flying high
Default

Becker,

this was a very short comment!

Morgwen
Reply With Quote
  #6 (permalink)  
Old December 9th, 2001
Data Cartridge
 
Join Date: July 13th, 2001
Posts: 144
Becker is flying high
Default well

The comment is supose to be in the pop up window.. alert .. thing..
Becker
Reply With Quote
  #7 (permalink)  
Old December 9th, 2001
Morgwen's Avatar
lazy dragon - retired mod
 
Join Date: October 14th, 2001
Location: Germany
Posts: 2,927
Morgwen is flying high
Default

As I said I never needed Html in a post!

Morgwen
Reply With Quote
  #8 (permalink)  
Old December 9th, 2001
backmann's Avatar
Stranger
 
Join Date: November 29th, 2001
Location: Buenos Aires, Argentina
Posts: 869
backmann is flying high
Default

I never needed HTML either. With the vB code is more than enough, and more practical (you don't have to write all those tags).

Becker: your alert is only seen whe you post.

Ivan
"In the dark we make a brighter light"
Reply With Quote
  #9 (permalink)  
Old December 9th, 2001
Data Cartridge
 
Join Date: July 13th, 2001
Posts: 144
Becker is flying high
Default ???

Quote:
Originally posted by backmann
I never needed HTML either. With the vB code is more than enough, and more practical (you don't have to write all those tags).

Becker: your alert is only seen whe you post.

Ivan
"In the dark we make a brighter light"

Really? i see it when the page is done laoding and when i post..
Becker
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML Engine martincym Getting Started Using LimeWire + WireShare 4 January 18th, 2007 11:33 AM
Loading HTML Engine hotair Windows 1 November 13th, 2005 04:52 AM
Baground Music HTML. m201985 Open Discussion topics 5 January 26th, 2005 08:22 AM
html. documents lindaz Support: General 0 June 30th, 2003 03:37 AM
always a url, html and mpeg Unregistered General Windows Support 0 October 16th, 2002 11:48 AM


All times are GMT -7. The time now is 02:52 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.