Jump to content

aspnetguy

Members
  • Posts

    6,787
  • Joined

  • Last visited

Everything posted by aspnetguy

  1. duplicate thread. please only post your question once!
  2. aspnetguy

    Growing text box

    you can give the boxs a set width and height and use overflow:auto. this will cause the box to have scrollbars when the content exceeds the dimensions
  3. MSIE is not necessary. I changed how I was going to write the code but forgot to take it out.& nbsp; (without the space) is an HTML special character that represents a space. IE will not apply style to empty table cells.e is the event arguments for onclick. IE does not pass this variable to the function (notice the move(e)) like other browsers do so you have to manually set it with window.event.you can re-write this var srcCell; if(!e) { e = window.event; MSIE = true; srcCell = e.srcElement; } else srcCell = e.target; to this var srcCell; if(!e) srcCell = window.event.srcElement; else srcCell = e.target;
  4. if you want someone who will write you code go to a freelance bidding site and buy the work.
  5. aspnetguy

    OT: Humans

    not that I agree with evolution, but who said we weren't? Cromagnum-man anyone?that is pretty much the same question. If eveolution is true then we are a part of it and thus we are a part of nature
  6. aspnetguy

    OT: Humans

    no, I'd say he still is...the freak of nature
  7. some people have nothing better to do than sit around and think this stuf up it is rather quite sad. Really who cares, you can say anthing is the number of the devil (or anyother thing) if you come up with your own system.
  8. aspnetguy

    OT: Humans

    You are right, this si a discussion that could be debated from many angles and forever. I am not saying anyone is wrong or right either, but personally when someone says nature I just don't think of humans. I think of trees and animals and some place with no pollution, etc
  9. aspnetguy

    OT: Humans

    Having a "religious" background I believe that nature (plants, trees, animals, etc) were created before humans, so, no I don't think of humans as part of nature.Nature is harmonious, working together, self preservating. Humans only destabalize that balance.
  10. I am obviously missing something but I can't figure out what it is
  11. here is a simple form of tic tac toe, it does not check to see if anyone has won or not. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html><head> <title>Tic Tac Toe</title> <script type="text/javascript"> var xturn = true; //is is x's turn? var xtoken = "X"; //letter to place var otoken = "O"; //letter to place var board; var cell; var cells; var row; var rows; var MSIE = false; //is internet explorer onload = newGame; function newGame() { //get game board board = document.getElementById('gameBoard'); //setup onclick event handlers in all cells of game board rows = board.getElementsByTagName('tr'); for(row=0;row<rows.length;row++) { cells = rows[row].getElementsByTagName('td'); for(cell=0;cell<cells.length;cell++) { cells[cell].onclick = move; cells[cell].style.cursor = "pointer"; } } } function move(e) { var srcCell; if(!e) { e = window.event; MSIE = true; srcCell = e.srcElement; } else srcCell = e.target; if(srcCell.innerHTML == " ") { if(xturn) srcCell.innerHTML = xtoken; else srcCell.innerHTML = otoken; xturn = !xturn; } //uncomment else below to display //error message if user clicks //a cell that is already used //else alert("Already Used!"); } </script> <style type="text/css"> body { } #gameBoard { width: 100%; height: 200px; border-top: 1px solid #dedede; border-left: 1px solid #dedede; } #gameBoard td { border-bottom: 1px solid #dedede; border-right: 1px solid #dedede; text-align: center; vertical-align: middle; font-family: monospace; font-size: 25px; font-weight: bold; } #wrapper { width: 200px; margin: auto; } </style></head><body> <div id="wrapper"> <table id="gameBoard" cellspacing="0"> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> </table> </div></body></html>
  12. I'll whip something up at lunch time for you.
  13. Can you explain what you mean for the first one and yes you can set the src with js.HTML <img id="myimg"/> JS var img = document.getElementById('myimg');img.src = "myimage.gif";img.alt = "my alternate text";img.title = "image title"; you can set any html attribute of any html tag with js
  14. yeah, delete the 2nd one, sorry
  15. ok I see the trouble. I need you to change this block of code var i;var reserveListLoaded = false;var reserveList = document.createElement('select');var processLength = document.getElementById('process').options.length;var processGroup = document.getElementById('processGroup');var process = document.getElementById('process'); to var i;var reserveListLoaded = false;var reserveList;var processLength;var processGroup;var process; then just before </body> place this block of code reserveList = document.createElement('select');process = document.getElementById('process');processLength = process.options.length;processGroup = document.getElementById('processGroup');process = document.getElementById('process'); that will fix the error...I was trying to get the process select before the HTML had even created it.
  16. ok, human vs human using the same PC, yes, not on different PCs tho.all you need to do it keep track of which to place on click, X or O
  17. you must be using a sctrict or XHTML doctype. name has been depreciated but sometimes is still need for somthings (JavaScript, PHP, etc)
  18. you'll need to make a Java Applet or use Ajax, JavaScript alone will not work for a 2 player game.
  19. I think it is foolish, people make up whole numbering schemes looking for patterns. If you look and try ahrd enugh you can "create" a pattern.
  20. problem is, that website is in French!
  21. have you ever seen the textbox on the MSN homepage with a button that says "search"? :)Anyways, MSN search makes up about 11% of total web searchs (#3), Google, Yahoo, and MSN (Live) make up over 80%
  22. please post the code for this webform.this may also help http://aspalliance.com/1040_Working_with_C...Using_ASPNET_20
×
×
  • Create New...