Jump to content

KevinM1

Moderators
  • Posts

    5,222
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by KevinM1

  1. My name is Kevin.  I'm 26 years old, and I live in New Hampshire, which is not quite the redneck center of New England (that honor goes to Maine). I was born with Arthrogryposis Multiplex Congenita, a non-progressive congenital condition that has severely affected my muscular and skeletal systems.  Bone deformaties and muscle weakness/missing muscles are the basic symptoms.  For example, tendon transfers are pretty common.  In my case, some of my pectorals were transfered to my biceps, so yes, if I want to flex my arms at the elbow, it's basically my chest doing the work. Because of my condition, I've had 40+ surgical procedures, all pretty painful.  These include back surgery (two 18' rods), hip surgery (a plate in each), a ton of osteotomies, and others.  My mobility is dependent on my electric wheelchair. I graduated from UNH a couple years ago with a degree in communication.  Given my condition, and my desire to not rely on the state to pay for all my expenses, I figured I had to get a job that would let me earn a respectable amount of money.  I've spent the last couple of years slowly learning what I figure I need to know.  Right now, I feel it's a lack of experience that is hampering my progression.  The various languages (XHTML, CSS, PHP, JavaScript, etc.) aren't hard to learn.  Knowing how to use them properly and efficiently is the trick. Like Joyel above me, I'm a gamer.  Unlike him, I'm not a threat to society if I don't get a game.  I'm not sure what the last game was that I bought...I think it was Tourist Trophy for the PS2 months ago.  I spend most of my time reading my web development text books and frequenting message boards like this one.  Even though Sony is evil, I've been saving up for a PS3, and I should be able to get one when they come out (depending on avalablity, of course).  I also play WOW occassionally on a carebear RP server. Quick Hits (because I'm [b]so[/b] interesting :P ): Favorite Band: Tool Favorite Color: Black or silver Favorite Sports Team(s): Boston Bruins (yeah yeah, don't laugh), New England Patriots Favorite TV Shows: The Shield, Battlestar Galactica (the new one), Mythbusters, Extreme Engineering, Megastructures, Iron Chef (both the original and the American versions), Good Eats (because Alton Brown is great), Neon Genesis Evangelion, Robotech (cheezy 80's, baby!), Scrubs Least Favorite Band: Any country music Least Favorite Color: Any bright shade of purple/lavendar Least Favorite Sports Team(s): New York Yankees, Indianapolis Colts, Fernando Alonso during this last F-1 season Least Favorite TV Shows: Pretty much anything that I didn't mention above.
  2. Well, I've decided to change the name of the team for a couple of reasons: 1. Newport Nightslayers does indeed suck 2. I don't live in Newport (the guy I was running the team with does) So, I've decided on the Barrington Icehawks.  I've picked out the colors, but I'm having a hard time creating the logo.  I have an idea of it in my head, but my artistic 'skills' should probably be considered an affront to the laws of nature.  I want a pissed off, sylized (think something like Jim Lee would make) looking golden/yellow (something along the lines of #E0ED27) hawk head in the center of my design.  I have the lettering (yes, I like the Backslash font) and the field where the logo proper should be, but I just don't have the talent to create the hawk head.  Here's what I have so far: [img]http://www.nightslyr.com/hockey/hockeyheader3.gif[/img] It looks a lot more pixelated in person than in Photoshop...any ideas why?  In any event, I suppose I could lift an image from someplace online and change the colors, but I really don't want to if I can avoid it.  So, does anyone mind helping me out with the logo?
  3. [quote author=448191 link=topic=112573.msg457488#msg457488 date=1161796208] I turned into stone. Just reverted, to write this reply. "Newport Nightslayers"??? C'mon. You can do better than that. "there will be no slaying of night, young man."... Barf. [/quote] Haha, yeah, it's pretty bad.  I might change it, but since I suck at creating logos, I'm not sure if I can come up with a better looking option. To the poster above you: I hear you on the player, but since he's an Edmonton Oiler -- a team whose colors don't match the fantasy team's -- I tried blending him into the color scheme.  I should scan the roster and see if there are any NJ Devils on the team to replace him with. EDIT: Yes, my plan is for a fixed-width site.  It seems that most of the NHL sites have a fixed width, so I decided to go that route.
  4. So...do no replies mean it looks decent?  Or does it mean the graphic is so ugly it turned you into stone? ;)
  5. I'm currently designing my fantasy hockey site, specifically working on the header.  I'd like it to look more professional, so any ideas are welcome. http://www.nightslyr.com/hockey/hockeyheader2.jpg Thanks! :)
  6. Yeah, that lovable octopus can be a bastard when he wants to be. ;)  It's been a while, but that part is before getting Terra back, right? I think it's kind of strange that Square-Enix never had the villain of their other Final Fantasies win.  I mean, Kefka actually accomplished his goal, and the world was covered in darkness for over a year because of it. Oh well...I'm just glad I can enjoy the memories by looking through my Amano artbook.  Some great designs, there.
  7. Indeed.  FFVI > all.
  8. You have a logic problem. You originally define the function checkType as one that takes one argument: [code] <?php function checkType($type){   if($_POST['type1'] == true && $_POST['type2'] == false){       $type = 1;   }   elseif($_POST['type1'] == false && $_POST['type2'] == true){       $type = 2;   }   elseif($_POST['type1'] == false && $_POST['type2'] == false){       echo "<font color='red'>ERROR: You must select a tournament type.</font>";   }   else{       $type = 3;   } return $type; } ?> [/code] But when you use it, you don't pass it an argument (line 54): [code] <?php $type = checkType(); ?> [/code] With the way you have your function defined, you don't really use the argument to pass to it, so try using: [code] <?php function checkType(){   if($_POST['type1'] == true && $_POST['type2'] == false){       $type = 1;   }   elseif($_POST['type1'] == false && $_POST['type2'] == true){       $type = 2;   }   elseif($_POST['type1'] == false && $_POST['type2'] == false){       echo "<font color='red'>ERROR: You must select a tournament type.</font>";   }   else{       $type = 3;   } return $type; } ?> [/code]
  9. The error stems from you using double quotes to both echo output and to set a font color on that line.  If you use double quotes for output, you need to use single quotes for HTML tags that you set properties on within that output.  Try the following and see if it works: [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>GSmash Tournament registration</title> </head> <body> <?php // Check to make sure that the user isnt spamming people via the form: function spamcheck($field){   if(eregi("to:", $field) || eregi("cc:", $field) || eregi(";", $field)){       return true;   }   else{       return false;   } } function checkType($type){   if($_POST['type1'] == true && $_POST['type2'] == false){       $type = 1;   }   elseif($_POST['type1'] == false && $_POST['type2'] == true){       $type = 2;   }   elseif($_POST['type1'] == false && $_POST['type2'] == false){       echo "<font color='red'>ERROR: You must select a tournament type.</font>";   }   else{       $type = 3;   } return $type; } //Make sure the form is filled out: if(isset($_POST['email'])){   //check if the email address is invalid   $mailcheck = spamcheck($_POST['email']);   if((bool)$mailcheck == true){       echo "Sorry, the e-mail you have entered is invalid, please re-enter it.";   }   else{       //send email if the e-mail is valid       $email = $_POST['email'];       $subject = "Smash Entry For: " . $_POST['name'];       $type = checkType();       $message = $_POST['sname'] . ", " . $_POST['char'] . ", " . $type;       mail("Linkmaster424@aol.com", "Subject: " . $subject, $message, "From: " . $email . "\r\n");       echo "Thanks for your entry!  Your data will be sent to the tournament staff.";   } } else{ ?>   <h1 align="center">Glenwood SSBM Tournament Form</h1>   <hr />   <br />   <h3 align="center">Fill out the form and click the &quot;Send&quot; button.</h3>   <form method="post" action="ssbm.php">   Email: <input type="text" name="email" /><br />   Name: <input type="text" name="name" /><br />   Smash Name: <input type="text" name="sname" max=4 min=1 size=16><br />   Character: <input type="text" name="char" /><br />   Entry Type(select at least one):<br />   One on One:<input type="checkbox" name="type1"><br />   Teams:<input type="checkbox" name="type2"><br />   </form>   <p><em>Note: In order to join the tournament, you will be required to pay an entry fee   of $5.00 upon entry. &nbsp;This is mandatory for both teams and singles,   meaning that if you are on a team, you AND your partner will need to pay the entry fee,   totalling ten dollars. &nbsp;The same goes if you were to enter in both tournaments, you   would have to pay a fee of ten dollars(five for each tournament).</em></p>   <br />   <p><font size="2">&copy;2006 By Tristan Nolan.</font></p> <?php } ?> </body> </html> [/code]
  10. [quote author=obsidian link=topic=112148.msg455078#msg455078 date=1161366199] try placing your internal <ul> tags within your <li>: [code] <ul>   <li>Master Category 3     <ul>       <li>Sub 1</li>       <li>Sub 2</li>     </ul>   </li> </ul> [/code] to be perfectly honest, i don't know if it will help validation since i don't have a good way to check right this minute, but try it and see ;) [/quote] Doing it this way should validate.  I use the same structure on my French site's flyout menus, and it validates as XHTML Strict.
  11. It looks very...minty.  I'm not a big fan of bright colors anyway, but the mint green with slightly darker green links is a bit overpowering. I agree with the logo/footer combo looking bottom-heavy. It all looks a bit spartan.  I'm no graphics designer, but if I had access to one (which you claim you do), I'd definitely use their services.  This looks more like a site a college professer would post assignments on rather than a site that's supposed to entice someone to purchase your services.  Where are the graphical sub-headers? You should really give the user the ability to return to your homepage, either by making a link that explicitly says 'Home' or by making your logo a link back home (or, even better, do both).
  12. [quote author=obsidian link=topic=111389.msg454937#msg454937 date=1161351276] ok, nightslyr, i've got a question for you: why are you completely redrawing the calendar for every month? IMHO, you'd be better off to draw up all your calendars using PHP and then use javascript to simply show the proper month based on what the user supplies. that way, you can simpy have a show/hide function where you pass it the ID of the div or table that contains the calendar you want to show. is this an option, or could you just explain why you're writing the whole thing up to be written by javascript each month? also, your link above comes up with a 404 error :( [/quote] Ah, well, like I originally said, I was doing this to help someone on another message board and to get more experience using JavaScript myself.  If I was doing something like this for myself, PHP would be the only way I'd do it.  I'd have a form that would allow users to input their appointments, rather than to code them directly into the script (which is what the JS script relies on now, which is horrible).  I'd also give it the option to either print out one month (like you suggested) or the entire year at once. Since the person I was helping had made the original in JS and only wanted to have something that would properly print out different classes of appointments (he's a firefighter, so knowing when each watch is on duty seemed to be his biggest concern), and since I wasn't sure whether or not they have access to a db to store the appointments, I figured I might as well just rewrite it in the same language.  I did PM him with the suggestions I wrote above, though.  There's really no reason for him to be doing it the hard way if they have access to a db.  And now that I have it working in JS, transferring it over shouldn't be much of a problem if they do decide to go that route.  The logic should basically remain the same. The 404 error stems from me renaming my html file.  I tend to save drafts as I go in case I need something from a previous version, so the one I last linked to was the third draft.  The new, working link is http://www.nightslyr.com/calendar/calendar.html.  Most of the appointments on there were tests to ensure that they printed correctly over multiple months and that the proper color for multiple appointments on the same day printed when needed.  The appointment info itself is displayed when the mouse is hovering over an appointment day...the cell's title property does that, rather than an event handler. It's not pretty, but it's functional.
  13. Actually, I found an even better way to do it -- getElementsByTagName.  Just start the loop at the proper start day of that array, and iterate through it until the end of the month.  For some reason, I always forget about that method until I need to use it. My script seems to be working properly now.  I just need to tweak some CSS for the legend/key to look good. Again, thanks for your patience and help! :)
  14. I figured I'd use this thread to pose my next question as I'm still writing my calendar/appointments script and I don't want to pollute the board with another new thread. With my current setup (XHTML at http://www.nightslyr.com/calendar/calendar3.html), I have the calendars' structure coded directly in the markup.  I give each month's table an id (the month name), and I give each cell of the first week of every month an id based on position (1 = Sunday, 2 = Monday, etc) so I can start outputting my dates at the right spot. What I'm wondering is this: Say I want to print February, which I believe started on a Thursday this year.  I put the number 1 inside the cell February5 (first Thursday of February).  Is there an easy way for me to print dates 2-28, in this instance, without having to give every cell in my calendars an id, thereby not having to use document.getElementById for every single date? Thanks. :)
  15. [quote author=Intelly XAD link=topic=111877.msg453681#msg453681 date=1161167636] Hi, I have a script that changes an element according to the id that is putted into the function, I am doing this with 'eval', as an example: function changecolor(id) {    id = eval("divitem_" + id);    id.style.bgColor = '#000000'; } this works fine though, but I was wondering if it could be done on the W3C standart, I tried this but it doesn't work: document.getElementById('divitem_' + id).style.bgColor = '#000000'; Many Thnx in advance  :D [/quote] That's because bgColor isn't what JavaScript uses to set an element's background-color property.  Try backgroundColor instead. :)
  16. Well, this is all in relation to the calendar/appointment script I'm trying to make. Because I've been relying on an external script to print everything (tables and the data inside) using innerHTML, they're not 'seeing' my external CSS file.  I figure that I can code the nested tables (one for the overall structure (3 months across by 4 months high), one for each calendar month) directly into the markup in order to ensure the CSS formatting works as a yearly calendar's overall structure will always remain the same (12 months to a year, at most 5 weeks/rows, depending on how late a month starts, a month).  All that will change are the dates, which are derived by the script.
  17. Hmm.... Well, that stinks.  Looks like I'll have to code the tables directly into my markup.
  18. [quote author=fenway link=topic=111769.msg453391#msg453391 date=1161123472] What do you mean by "source code"? Where isn't it appearing? [/quote] What I mean is this: I have a very simple XHTML page that literally only consists of an empty body element (well, there's the normal XHTML Strict head element goodies...). My script outputs the calendar, which are nested tables, as the innerHTML of the body element. When I try to view the XHTML source code from the browser, all it shows is my empty body element without any of the innerHTML stuff my script created within it. Is this normal?  I thought that whatever was placed in innerHTML would be visible in the XHTML source if I looked at the source after the page was rendered.
  19. I just tried it without any XHTML references in the head and it's still doing the same thing.  innerHTML should show whatever I have in it in the source, correct?  Because right now it's only showing the empty body element that I used innerHTML to fill. EDIT: I have a copy of my XHTML at http://www.nightslyr.com/calendar/calendar2.html The JavaScript can be found at http://www.nightslyr.com/calendar/calendar.js The CSS (which isn't working at this point because of my error) is at http://www.nightslyr.com/calendar/calendar.css
  20. I just found out (the hard way) that using innerHTML with XHTML produces a bug.  While whatever one puts into innerHTML will appear on the screen, it won't be placed within the source code.  This is a bit of a problem for me because my script (which is in an external file) relies on CSS (which is in another external file) classes for formatting.  Since the code isn't really inserted into the XHTML, the script doesn't use the classes of the linked CSS file. I know there are createElement and appendChild methods.  But I need to be able to write within the elements my script creates as well.  Is there a way to do something like a document.write within my body element?  Is write available for an element retrieved with a getElementByID?
  21. Never mind.  I figured it out.  Apparently, I'm an idiot. :lol:
  22. Hey, fenway, thanks for your help and patience.  I know it must get frustrating dealing with newbs like me, so I just wanted to let you know that I really do appreciate it. :) I managed to get the calendars to print, but I seem to have a logic problem.  In my testing, my months beginning on any day but Sunday all printed fine.  But the months that start on a Sunday (April and I believe July) kept being printed as though they started on a Monday, and I'm not 100% sure why.  I have a while-loop (which you'll see below) that prints off the blank days at the beginning of each month, if there are any.  It appears that whenever a month starts on a Sunday, that while-loop still fires one time.  I've tried different conditionals in there (start != 1 && pos < start, pos < (start - 1)), but none have worked so far.  Any ideas? [code] var W3CDOM = (document.createElement && document.getElementsByTagName); var months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; var numDays = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; var firstDays = [2, 5, 5, 1, 3, 6, 1, 4, 7, 2, 5, 7]; //1 = Sunday, 2 = Monday, etc. function init(){   if(!W3CDOM) return;   printMonth(); } function printMonth(){   bod = document.getElementById('bod'); //My body element has an id of bod   var output = '<table><br /><th>Sun</th><th>Mon</th><th>Tue</th><th>Wed</th><th>Thu</th><th>Fri</th><th>Sat</th><br /><tr style="text-align: right;"><br />';   var start = firstDays[6];   var pos = 1;   while(pos < start){       output += '<td></td>';       pos++;   }   for(var i = 1; i <= numDays[6]; i++){       if ((pos / 6) <= 1){         output += '<td>' + i + '</td>';         pos++;       }       else{         output += '</tr><br /><tr style="text-align: right;"><td>' + i + '</td>';         pos = 1;       }   }   output += '</tr><br /></table>';   bod.innerHTML = output; } window.onload = init; [/code]
  23. [quote author=fenway link=topic=111389.msg452173#msg452173 date=1160935282] Well, to be honest, I have no idea why you have that if/else/switch logic... it's quite confusing.  As for your problem, my guess would be that a variable isn't being reset. [/quote] Well, like I said before, the vast majority of the script was written before I got to it.  All I did was try to append the switch statements as I was told that the rest worked fine.  Unfortunately, I found that to not be the case (my previous message). I'm now trying to re-write the script from scratch.  I've written a basic test script to see if I can print out at least one month correctly.  I figure I can modify that to print all months correctly once it works right.  Unfortunately, nothing is being printed to the screen so far, and I'm not sure why.  My code (which is in an external .js file) is: [code] var W3CDOM = (document.createElement && document.getElementsByTagName); var months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; var numDays = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; var firstDays = [1, 4, 4, 0, 2, 5, 0, 3, 6, 1, 4, 6]; function init(){   if(!W3CDOM) return;   printJanuary(); } function printJanuary(){   document.write("<table><th>Sun</th><th>Mon</th><th>Tue</th><th>Wed</th><th>Thur</th><th>Fri</th><th>Sat</th><tr>");   var start = firstDays[0];   var offset = 0;   while(offset < start){       document.write("<td></td>");       offset++;   }   for(var i = 1; i < numDays[0]; i++){       if((i % 7) < 1){         document.write("<td>" + i + "</td>");       }       else{         document.write("</tr><tr><td>" + i + "</td>");       }   }   document.write("</tr></table>"); } window.onload = init; [/code] I have other scripts that use the same basic setup.  I've never had a problem with this kind of initialization function being used in the window's onload event handler before, so I'm pretty sure that's not where the problem lies.  The XHTML is basically empty.  There's no structure other than the body.  Any ideas? EDIT: I know I have a logic problem with the algorithm (the i % 7 bit), but I wouldn't think that would prevent anything from being printed.
  24. [quote author=fenway link=topic=111389.msg451898#msg451898 date=1160848089] Your return statement for CheckDate() is inside the for loop, so it only runs once... move it one line down, and it'll work. [/quote] Thanks, that helped a lot! :) Unfortunately, now I have a logic problem.  None of the appointments are displaying correctly.  For instance, the second appointment is just supposed to highlight June 12 in red.  Instead, it highlights from June 1 to June 12.  The others show the same kind of thing -- highlighting the entire month in the appropriate color until the value stored in the today variable.  I'm not exactly sure where the problem lies.  I'm having a hard time following the for-loop and the myriad if-statements it has.  I thought the problem lied where if-3 and else-1 are in the loop, as both check to see if dayno >= apps[app][0], but commenting it out didn't help.  Any ideas?
  25. [quote author=fenway link=topic=111389.msg451710#msg451710 date=1160779550] I think I understand, but I really need to see that page... can you put it up somewhere? [/quote] I put it up at http://www.nightslyr.com/calendar.html -- all of the code is in that file.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.