Illuminate HTML Table cells
The issue is that table cells are "light up" when you mouse over them, and "Deluminator" when the mouse out of them. This assemble
our table and give names to each TD that can be illuminated. For example:
\u0026lt;table>
\u0026lt;tr>
\u0026lt;td name="c1" id="c1">
\u0026lt;/ td> \u0026lt;td name="c2" id="c2"> ;
\u0026lt;/ td> \u0026lt;/ tr>
\u0026lt;/ table>
and now control their events onmouseover and onmouseout as follows:
\u0026lt;td
\u0026lt;table> \u0026lt;tr> name="c1" id="c1" onmouseover="javascript:Iluminar(this)" onmouseout="javascript:Apagar(this)">
\u0026lt;/ td> ; \u0026lt;td id="c2" name="c2" onMouseOver="javascript:Iluminar(this)" OnMouseOut="javascript:Apagar(this)"> \u0026lt;/ td> \u0026lt;/ tr>
\u0026lt;/ table>
This means that every time we pass over the cell c1 or c2 is called Illuminate javascript function () passing as a parameter "this" (ie, the cell itself) and when it leaves the Shutdown is called.
functions to Lighten and off using the property className of the object, so that if I designed a CSS style like this:
\u0026lt;style>
. cell
{background-color : # 0000FF;
color: # ffffff;
font-weight: bold;}
. celda_iluminada
{background-color: # FF0000;
color: # FFFF00;
font-weight: bold;
} \u0026lt;/ style>
I can change at any time the style class of an object simply by doing the following in javascript: function
Lighting (obj) {
obj.className = "celda_iluminada"
} function Hide (obj) {
obj.className = "cell";}
Another option without using style sheets is to change the background color of the cell as follows:
Lighting function (obj) {
obj.style.bgColor = "# FF0000 "}
function Hide (obj) {
obj.style.bgColor = "# 0000FF "}
But even if this is correct, I change the className to change several properties in one go (not just background but also the font color and in general everything that can be included in a CSS class) while doing it for style modifications need one line for each property you want to change.
Friday, January 18, 2008
Wire Leaners For Fence
This is my third blog, the links you'll find it you can access my other blogs (PHP from scratch and without Queen Throne, the latter poetry).
This blog I created to go putting the strangest things I've done web programming
and I have been able to serve over the years of program business pages. Design will put things in HTML and JavaScript, PHP stuff, things like MySQL, Oracle and PostgreSQL, and anything that finds interesting and I do not want to forget how it was done. If you also serve you any input for your business or simple curiosity, I'd be pleased and grateful for any comments or criticism that you please me.
Monday, October 1, 2007
Shiny Stone Heartgold
I came by email today from an American friend and I could not translate them and put them here, some leave them in the original English language because they are word games that can not be translated into English.
TEACHER: Maria, tell me where on the map is South America
MARIA: It's here.
TEACHER: Very good! Now class, who discovered America?
CLASS: Maria.
TEACHER: John, why are you doing your math multiplication on the floor?
JOHN: You told me to do it Without using tables.
TEACHER: Paul, as you pronounce "crocodile"?
PAUL CROCO
TEACHER: No, you were wrong.
PAUL: Maybe I'm wrong, but you asked me how I pronounced it.
TEACHER: Donald, What is the chemical formula for water? DONALD
: HIJKLMN O.
TEACHER: What are you talking about?
DONALD: Yesterday you said it's H to O.
TEACHER: Susan, tell me something important that today we have that did not exist ten years ago.
SUSANA: Yo!
TEACHER: Paul, because you always mess up so much?
PAUL: Well ... I'm closer to the ground than you.
TEACHER: Millie, give me a sentence Starting with "I."
MILLIE: I is ...
TEACHER: No, Millie ..... Always say, "I am."
MILLIE: All right ... "I am the ninth letter of the alphabet."
TEACHER: George Washington not only chopped down the cherry tree of his father, but also admitted it. Luis, tell me, you know why his father did not punish him?
LOUIS: Because George still had the ax in his hand.
TEACHER: Silvia, tell me the truth, do you make your prayers before dinner?
SILVIA: No Miss, no I have to, my mom is a good cook.
TEACHER: Claudio, your composition on "My Dog" is exactly like your sister!, "The copy? CLAUDIO
: No ma'am, is just the same dog.
TEACHER: Cindy, as they call a person who keeps talking even when the others are not interested? CYNTHIA
: A Teacher.
-
Atte. Juan José
Wednesday, September 19, 2007
Unprotected Home Cameras
The online calculator for Google Part 1 / 2
For example, try typing 1 + 1 and looking, you'll see the result immediately:
What I can do?
Lots of things! we'll see the most common.
common arithmetic operators: +, -, /, *
Examples: 1 +1, 1-1, 10 / 2, 2 * 2
Percentages: % of, Percent of
Example: 15% of 100, 15 Percent of 100
Rest of division: mod,%
Example: 10 mod 2, 10% 2
Raise to a power: ^ **
Example: 2 ^ 2, 2 ** 2
Square root: th root of, of square root, cube Rooth of
Example: 2th root of 100, square root of 4, cube root of 81
Reciprocal : Reciprocal of
Example: Reciprocal of 7. (Returns the value of 1 / 7)
Trigonometric and inverse trigonometric functions:
without : Breast
cos: cosine
as : tangent
sec: secant
csc: cosecant
cot: cotangent
arcsin, arccos
arcsine : cosine
arctan: atan
arcsec : inverse secant
arccsc : inverse cosecant
arcctn : artocotantgente
Example: sin (pi) returns 0
Hyperbolic Functions:
sinh, cosh, tanh, csch , arsinh, arccsch
logarithms: ln
: logarithm base 10 log
: lg
log: logarithm base 2
exp: exponential
!: factorial
I encourage you to test the true power of the calculator, the next installment we are going to see something very interesting (but very much eh!).
Google has a function in its search box are little known yet very useful. It gives me like one of the best ideas he had, after GMail.
Google What is Calc?
is Google's online calculator lets you perform mathematical operations of all kinds, such as addition, multiplication, data conversion (inches to feet, dollars to euros), and many more things!
And how should I do?
You just need to write what you want to calculate the google search box: For example, try typing 1 + 1 and looking, you'll see the result immediately:
What I can do?
Lots of things! we'll see the most common.
common arithmetic operators: +, -, /, *
Examples: 1 +1, 1-1, 10 / 2, 2 * 2
Percentages: % of, Percent of
Example: 15% of 100, 15 Percent of 100
Rest of division: mod,%
Example: 10 mod 2, 10% 2
Raise to a power: ^ **
Example: 2 ^ 2, 2 ** 2
Square root: th root of, of square root, cube Rooth of
Example: 2th root of 100, square root of 4, cube root of 81
Reciprocal : Reciprocal of
Example: Reciprocal of 7. (Returns the value of 1 / 7)
Trigonometric and inverse trigonometric functions:
without : Breast
cos: cosine
as : tangent
sec: secant
csc: cosecant
cot: cotangent
arcsin, arccos
arcsine : cosine
arctan: atan
arcsec : inverse secant
arccsc : inverse cosecant
arcctn : artocotantgente
Example: sin (pi) returns 0
Hyperbolic Functions:
sinh, cosh, tanh, csch , arsinh, arccsch
logarithms: ln
: logarithm base 10 log
: lg
log: logarithm base 2
exp: exponential
!: factorial
I encourage you to test the true power of the calculator, the next installment we are going to see something very interesting (but very much eh!).
Subscribe to:
Posts (Atom)