• Starting today August 7th, 2024, in order to post in the Married Couples, Courting Couples, or Singles forums, you will not be allowed to post if you have your Marital status designated as private. Announcements will be made in the respective forums as well but please note that if yours is currently listed as Private, you will need to submit a ticket in the Support Area to have yours changed.

  • CF has always been a site that welcomes people from different backgrounds and beliefs to participate in discussion and even debate. That is the nature of its ministry. In view of recent events emotions are running very high. We need to remind people of some basic principles in debating on this site. We need to be civil when we express differences in opinion. No personal attacks. Avoid you, your statements. Don't characterize an entire political party with comparisons to Fascism or Communism or other extreme movements that committed atrocities. CF is not the place for broad brush or blanket statements about groups and political parties. Put the broad brushes and blankets away when you come to CF, better yet, put them in the incinerator. Debate had no place for them. We need to remember that people that commit acts of violence represent themselves or a small extreme faction.

Bible Code

Billy the Kid

Svi generis
Apr 16, 2002
244
26
38
Pittsburgh
✟23,044.00
Faith
Christian
Marital Status
Single
Politics
US-Republican
I would go with a PHP/MYSQL, but Javascript isn't a bad idea either ;)

Create a file name verses.js
Copy and paste the following in your verses.js file:
Code:
 var verses = [
 	"verse 1",
 	"verse 2",
 	"verse 3",
 	"verse 4"
 ]
 
 verses.pickOne = function() {
 	//var r = this.length - 2;
 	var r = Math.round(Math.random() * (this.length - 2));
 	document.write(this[r]);
 }
Now paste the following in the header of you page:
Code:
<script language="javascript" src="verses.js"></script>
Then, where you want the verses to apear, add the following:
Code:
<script language="javascript">verses.pickOne()</script>
 
Upvote 0

Mr. Fields

Can't fool this cat...
Apr 22, 2004
434
33
✟753.00
Faith
Non-Denom
Marital Status
Married
Politics
US-Libertarian
Easter eggs are fun to code in. I have put them in several of my programs.

Another way to code verses or anything else you want (not an easter egg) that can only be seen by doing a text read of the executable file, is to declare a string variable (VB) or a character array (C) or constant, and set the contents to equal your text or verse.
 
Upvote 0

askbros

Senior Member
Jan 9, 2004
643
12
CA
✟23,357.00
Faith
Christian
Politics
US-Republican
Just randomly add some excess code in...

<! John 3:16 "For God so loved the world that he gave His only Son that whoever believes in Him will not perish but have everlasting life">

In random spots in the HTML code. It won't show up on the actual site, to see it someone would have to view your source. As long as you have "<!" at the start and ">" at the end it won't show up in the code.
 
Upvote 0

twisterjosh

Member
Jun 15, 2004
5
0
✟115.00
Faith
Baptist
That's awesome! LoL!

Like in C++/C#
/* "So that you will walk in a manner worthy of the Lord, to please Him in all respects, bearing fruit in every good work and increasing in the knowledge of God." Colossians 1:10 */

Good idea!
Sometimes when I code, and things go wrong, I can get kind of angry with it.
But "commenting" some Bible verses is a good idea! It could help you to think about what is right (Phil. 4:8) instead of getting mad at your code...
 
Upvote 0