Jump to content

RyanSchurton

Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by RyanSchurton

  1. <!doctype><html><head><meta charset="utf-8" /><script type="text/javascript" src="checkoff2.js"></script><link text/css rel="stylesheet" href="checkoff2.css"><title>Ryan Schurton</title></head><body><table border="1"><tr><td id="td1"></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><img src="lastofus.jpg" alt="lastofus" /></table></body></html>

    This is my HTML code i have a picture behind it and when a td element is click i am trying to make it disappear a square on the table one by one with each click. in javascript

  2. var donation = new Array(4);  for (var i = 0; i < donation.length; ++ i) {	 donation [i] = new Array(4)} 	donation [0][0] = "#111";	donation [0][1] = "Jane";	donation [0][2] = "Doe";	donation [0][3] = "$100.00";	donation [1][0] = "#222";donation [1][1] = "John";donation [1][2] = "Doe";donation [1][3] = "$200.00";	donation [2][0] = "#333";donation [2][1] = "Joe";donation [2][2] = "Smith";donation [2][3] = "$300.00";document.write(donation [0][0]);document.write(donation [0][1]);document.write(donation [0][2]);document.write(donation [0][3]);document.write(donation [1][0]);document.write(donation [1][1]);document.write(donation [1][2]);document.write(donation [1][3]);document.write(donation [2][0]);document.write(donation [2][1]);document.write(donation [2][2]);document.write(donation [2][3]);

    my output for my code is: #111JaneDoe$100.00#222JohnDoe$200.00#333JoeSmith$300.00 but i need to to look like this: #111 Jane Doe $100.00#222 John Doe $200.00#333 Joe Smith $300.00 with more space between the #111, Jane, Doe and 100.00.

  3. I am trying to change the style of one word inside of a whole bunch of words that are all inside of <P></P> tags. Here is an example of what i am trying to do

    <p>I go to the mall.i drive fast cars, i get a lot of money. and I travel all around the world.</p>

    I want to change the color of (i get a lot of money). give it a background color and a border.

×
×
  • Create New...