|
Post by Cobra5 on Apr 11, 2003 17:31:06 GMT -5
Hey. I thought I'd just let you all know that I might be making some changes to the board. If there's anything in particular you'd like me to add, I will TRY my best. But don't get you're hopes up, I'm only borrowing code, not creating it.
You may notice that one change I made it the threads and boards are highlighted when your curser is over them.
Also... after I find a good webserver, I'm probably gonna start changing around the smilies. I can now upload as many as I want, but I dunno how it will look if I add like 50. I'm pretty sure it makes a small pop-up window or something, I'm not sure.
So, If you've got any ideas for the board, just say it, and I'll see if it is possable...
|
|
|
Post by DOOFY on Apr 11, 2003 18:33:08 GMT -5
how about some games.
|
|
|
Post by palla on Apr 11, 2003 19:32:03 GMT -5
Yeah, didn't there used to be some games around here? I'd like to bring those back.
|
|
|
Post by Cobra5 on Apr 11, 2003 19:34:42 GMT -5
Ok. I'll put Hexxagon back up... ;D
hehe.
I'll think of some others, too.
|
|
|
Post by DOOFY on Apr 11, 2003 19:35:27 GMT -5
hey theres a cool game on the tremors website that you could use.
|
|
|
Post by Dr. Dan on Apr 12, 2003 15:28:04 GMT -5
how about a music thread that we can hear music from? That way we can post like theme songs for our rpg characters and stuff! haha!
and why aren't you creating the code? I can get you a book if you want you know, my comp programming teacher has tons of that stuff. I'll ask him if you want
|
|
|
Post by Cobra5 on Apr 12, 2003 16:57:56 GMT -5
I can get a list of the variables, but no descriptions, so it's like guess and check. Besides, it's easier just to borrow code, their prtty long...
<SCRIPT LANGUAGE="JavaScript"> <!-- /* Copyright © 2003 ProBoards.com All Rights Reserved
Permission is hereby granted to use this code solely on message boards hosted by ProBoards.com. Any other site found to be using this code shall be in violation of this copyright notice. */
// Color for when the user puts their mouse over the board var mouseOverColor = '0000AA';
tables = document.getElementsByTagName('TABLE'); for(t=0;t<tables.length;t++) for(r=0;r<tables[t].rows.length; r++) for (c=0;c<tables[t].rows(r).cells.length; c++) makelink(tables[t],r,c);
function makelink(table,r,c) { if((table.rows(r).cells(c).className=="windowbg2" && table.rows(r).cells(c).width=="66%") || (table.rows(r).cells(c).className=="windowbg" && table.rows(r).cells(c).width=="48%")) if(table.rows(r).cells(c).innerHTML.match(/^.*?href="(.+?)"/)) if(RegExp.$1 != 0) { table.rows(r).cells(c).id=RegExp.$1; table.rows(r).cells(c).onmouseover = function(){this.style.cursor='hand';this.style.backgroundColor=mouseOverColor}; table.rows(r).cells(c).onmouseout = function(){this.style.backgroundColor=this.bgColor}; table.rows(r).cells(c).onclick = function(){location.href=this.id}; } } // --> </script> That's the script for for the Main page's highlight board name funtion... here's the one for the threads...
<SCRIPT LANGUAGE="JavaScript"> <!-- /* Copyright © 2003 ProBoards.com All Rights Reserved
Permission is hereby granted to use this code solely on message boards hosted by ProBoards.com. Any other site found to be using this code shall be in violation of this copyright notice. */
// Color for when the user puts their mouse over the board var mouseOverColor = '000055';
tables = document.getElementsByTagName('TABLE'); for(t=0;t<tables.length;t++) for(r=0;r<tables[t].rows.length; r++) for (c=0;c<tables[t].rows(r).cells.length; c++) makelink(tables[t],r,c);
function makelink(table,r,c) { if((table.rows(r).cells(c).className=="windowbg2" && table.rows(r).cells(c).width=="66%") || (table.rows(r).cells(c).className=="windowbg" && table.rows(r).cells(c).width=="48%")) if(table.rows(r).cells(c).innerHTML.match(/^.*?href="(.+?)"/)) if(RegExp.$1 != 0) { table.rows(r).cells(c).id=RegExp.$1; table.rows(r).cells(c).onmouseover = function(){this.style.cursor='hand';this.style.backgroundColor=mouseOverColor}; table.rows(r).cells(c).onmouseout = function(){this.style.backgroundColor=this.bgColor}; table.rows(r).cells(c).onclick = function(){location.href=this.id}; } } // --> </script>
There's more codes, like adding smilies and stuff, I just borrow them and change any variables I want to change.
|
|
|
Post by palla on Apr 12, 2003 17:55:11 GMT -5
Uh, people...? I DON'T KNOW THE CODE!!! ;D
|
|
|
Post by Dr. Dan on Apr 12, 2003 19:05:32 GMT -5
To be honest with you, I dont know that exact code either. I know how to program like this:
//******************************************************************** // CountWords.java Author: Dan MacLean // // Demonstrates the use of the StringTokenizer class and nested // loops. //********************************************************************
import cs1.Keyboard; import java.util.StringTokenizer;
public class CountWords { //----------------------------------------------------------------- // Reads several lines of text, counting the number of words // and the number of non-space characters. //----------------------------------------------------------------- public static void main (String[] args) { int wordCount = 0, characterCount = 0; String line, word; StringTokenizer tokenizer;
System.out.println ("Please enter text (type DONE to quit):");
line = Keyboard.readString(); while (!line.equals("DONE")) { tokenizer = new StringTokenizer (line); while (tokenizer.hasMoreTokens()) { word = tokenizer.nextToken(); wordCount++; characterCount += word.length(); } line = Keyboard.readString(); }
System.out.println ("Number of words: " + wordCount); System.out.println ("Number of characters: " + characterCount); } }
Yeah that's a pretty easy program....I have programs that are SUPER lcong, like wills code, but I dont know how to program HTML exactly...I can program it though Java Web Start.....think of it as wills code is the underlayer of a web-page. I work with a different underlayer- with Applet tech. Easier in some ways and harder in others. I have to start from scratch though...ur luckey will....
|
|
|
Post by DOOFY on Apr 12, 2003 20:17:22 GMT -5
what the hell is this code for.
|
|
|
Post by Dr. Dan on Apr 12, 2003 20:30:25 GMT -5
mine?
My code just asks the user to imput a sentence. Then it outputs the number of words and number of characters in that sentence or paragraph. There ya go! Ya learnt something!
....did it hurt?..... ;D ;D ;D
|
|
|
Post by DOOFY on Apr 12, 2003 20:33:11 GMT -5
nevermind.
|
|
|
Post by Dr. Dan on Apr 13, 2003 11:01:03 GMT -5
why are there no good conversation topics on any thread? Will...you should deleate about 3/4 of these threads. They are going off on tangents to their original intent (not that that is a bad thing) and the talking has become boring.
just a suggustion....
|
|
|
Post by palla on Apr 13, 2003 12:25:32 GMT -5
It is a little annoying when you can't find the converstaion you're looking for because it isn't in the right thread. I can't complain too much because I know I've caused some of this, but, well, yeah... I still don't understand the codes, but apparently my mother does.
|
|
|
Post by Cobra5 on Apr 13, 2003 13:39:55 GMT -5
*shrugs*
Create more threads, I'll deleate any that arn't used.
|
|