PDA

View Full Version : Javascript phrases based on outputted scores?



jonsan32
02-01-2011, 10:10 PM
How do I get the following phrases to output along with their corresponding scores for my algorithm below?


Here are the phrases I'd like to see along side the outputted score

Scores:
90-100 --- Legendary</td></tr>
80-90 --- All-Star Performance
70-80 --- D1 College Level
60-70 --- Very Good
50-60 --- Great Effort
40-50 --- Almost there!
30-40 --- Nice try
20-30 --- Try harder
10-20< --- Don't give up.
0-10 --- A ways to go...
Below 0 --- Poor Performance
Above 100 --- Yeah Right!


And here's my formula that asks for 4 values then spits out a number.

<br>
<center><img src="http://i40.photobucket.com/albums/e250/jonsan32/easy.png"></center>
<br><script language="javascript">
function addNumbers()
{
var val1 = parseInt(document.getElementById("value1").value);
var val2 = parseInt(document.getElementById("value2").value);
var val3 = parseInt(document.getElementById("value3").value);
var val4 = parseInt(document.getElementById("value4").value);
var ansD = document.getElementById("answer");
ansD.value = Math.round(((100-(25-val1)*5)/4 + (100-6.66667*(23-val2))/4 + (100-7.51*(15-val3))/4 + (100-4*(32-(val4)))/4)*100)/100 ;


}



</SCRIPT>



<table width=700><tr><td>XDrill = <input type="text" id="value1" name="value1" value="" SIZE=2 /> <br><br></td><td>
2ptrs = <input type="text" id="value2" name="value2" value="" SIZE=2/><br><br> </td><td>
3ptrs = <input type="text" id="value3" name="value3" value="" SIZE=2/><br><br> </td><td>
Nash = <input type="text" id="value4" name="value4" value="" SIZE=2/><br><br></td><td>
<input type="button" name="Submit" value="Click here" onclick="javascript:addNumbers()"/><br><br> </td></tr><tr><td colspan=2 bgcolor="#000000"><center>
<font color="#ffffff">Your Score = <input type="text" id="answer" name="answer" value=""/ SIZE=4> </center></td></tr></table>
<br><br>

leapinglemur55
02-02-2011, 12:12 AM
This works, but there's probably a much simpler way to do it.

function addNumbers()
{
var val1 = parseInt(document.getElementById("value1").value);
var val2 = parseInt(document.getElementById("value2").value);
var val3 = parseInt(document.getElementById("value3").value);
var val4 = parseInt(document.getElementById("value4").value);
var ansD = document.getElementById("answer");

var formula = Math.round(((100-(25-val1)*5)/4 + (100-6.66667*(23-val2))/4 + (100-7.51*(15-val3))/4 + (100-4*(32-(val4)))/4)*100)/100 ;

var phrase=new Array(" --- Yeah Right!"," --- Legendary"," --- All-Star Performance"," --- D1 College Level"," --- Very Good"," --- Great Effort"," --- Almost there!"," --- Nice try"," --- Try harder"," --- Don't give up"," --- A ways to go"," --- Poor Performance");
if(formula>100){ ansD.value=formula + phrase[0]}
if(formula<=100 && formula>=90){ ansD.value=formula + phrase[1]}
if(formula<90 && formula>=80){ ansD.value=formula + phrase[2]}
if(formula<80 && formula>=70){ ansD.value=formula + phrase[3]}
if(formula<70 && formula>=60){ ansD.value=formula + phrase[4]}
if(formula<60 && formula>=50){ ansD.value=formula + phrase[5]}
if(formula<50 && formula>=40){ ansD.value=formula + phrase[6]}
if(formula<40 && formula>=30){ ansD.value=formula + phrase[7]}
if(formula<30 && formula>=20){ ansD.value=formula + phrase[8]}
if(formula<20 && formula>=10){ ansD.value=formula + phrase[9]}
if(formula<10 && formula>=0){ ansD.value=formula + phrase[10]}
if(formula<0){ ansD.value=formula + phrase[11]}

}

Old Pedant
02-02-2011, 12:25 AM
var msgs = [ "A ways to go...", "Don't give up.","Try harder","Nice try","Almost there",
"Great Effort","Very Good","D1 College Level", "All-star Performance","Legendary","Legendary" ];

function addNumbers()
{
var val1 = parseInt(document.getElementById("value1").value);
var val2 = parseInt(document.getElementById("value2").value);
var val3 = parseInt(document.getElementById("value3").value);
var val4 = parseInt(document.getElementById("value4").value);
score = Math.round(((100-(25-val1)*5)/4 + (100-6.66667*(23-val2))/4 + (100-7.51*(15-val3))/4 + (100-4*(32-(val4)))/4)*100)/100 ;

if ( score < 0 )
{
msg = "Poor Performance";
} else if ( score > 100 ) {
msg = "Yeah Right!"
} else {
msg = msgs[ Math.floor( score / 10.0 ) ];
}
var ansD = document.getElementById("answer");
ansD.value = "Score " + score + ", " + msg;
}

"Legendary" has to be repeated in case the person has a score of exactly 100.

Or you could change the > 100 test to >= 100.

Note: The ranges here are actually 0-9, 10-19, 20-29, etc. That is, a score evenly divisible by 10 puts the person in the next bracket up. if you would prefer ranges of 1-10, 11-20, 21-30, etc., that's an easy change.

Old Pedant
02-02-2011, 12:34 AM
What the heck...the changes needed to make the ranges 1-10, 11-20, 21-30, etc.:



if ( score <= 0 )
{
msg = "Poor Performance";
} else if ( score > 100 ) {
msg = "Yeah Right!"
} else {
msg = msgs[ Math.floor( (score-1) / 10.0 ) ];
}

jonsan32
02-02-2011, 01:14 AM
Fantastic help, guys!!! Thank you.

My final code is below, let me know if you have any ideas on how to make it even better. Awesome, thanks again.



<br>
<center><img src="http://i40.photobucket.com/albums/e250/jonsan32/easy.png"></center>
<br><script language="javascript">
function addNumbers()
{
var val1 = parseInt(document.getElementById("value1").value);
var val2 = parseInt(document.getElementById("value2").value);
var val3 = parseInt(document.getElementById("value3").value);
var val4 = parseInt(document.getElementById("value4").value);
var ansD = document.getElementById("answer");
ansD.value = Math.round(((100-(25-val1)*5)/4 + (100-6.66667*(23-val2))/4 + (100-7.51*(15-val3))/4 + (100-4*(32-(val4)))/4)*100)/100 ;


}

function addNumbers()
{
var val1 = parseInt(document.getElementById("value1").value);
var val2 = parseInt(document.getElementById("value2").value);
var val3 = parseInt(document.getElementById("value3").value);
var val4 = parseInt(document.getElementById("value4").value);
var ansD = document.getElementById("answer");

var formula = Math.round(((100-(25-val1)*5)/4 + (100-6.66667*(23-val2))/4 + (100-7.51*(15-val3))/4 + (100-4*(32-(val4)))/4)*100)/100 ;

var phrase=new Array(" Yeah Right!"," A Legendary Performance"," You're an All-Star!"," Now that's college material!"," Very Good job."," Great Effort"," You're almost there!"," Nice try."," Average. Try harder."," Don't give up"," You've got a ways to go"," That's a poor performance");
if(formula>100){ ansD.value="You've somehow scored a " + formula +"." + phrase[0]}
if(formula<=100 && formula>=90){ ansD.value="You've scored a " + formula +"." + phrase[1]}
if(formula<90 && formula>=80){ ansD.value="You've scored a " + formula +"." + phrase[2]}
if(formula<80 && formula>=70){ ansD.value="You've scored a " + formula +"." + phrase[3]}
if(formula<70 && formula>=60){ ansD.value="You've scored a " + formula +"." + phrase[4]}
if(formula<60 && formula>=50){ ansD.value="You've scored a " + formula +"." + phrase[5]}
if(formula<50 && formula>=40){ ansD.value="You've scored a " + formula +"." + phrase[6]}
if(formula<40 && formula>=30){ ansD.value="You've scored a " + formula +"." + phrase[7]}
if(formula<30 && formula>=20){ ansD.value="You've scored a " + formula +"." + phrase[8]}
if(formula<20 && formula>=10){ ansD.value="You've scored a " + formula +"." + phrase[9]}
if(formula<10 && formula>=0){ ansD.value="You've scored a " + formula +"." + phrase[10]}
if(formula<0){ ansD.value="You've scored a " + formula +"." + phrase[11]}

}



</SCRIPT>


<center>
<table width=700><tr><td>XDrill = <input type="text" id="value1" name="value1" value="" SIZE=2 /> <br><br></td><td>
2ptrs = <input type="text" id="value2" name="value2" value="" SIZE=2/><br><br> </td><td>
3ptrs = <input type="text" id="value3" name="value3" value="" SIZE=2/><br><br> </td><td>
Nash = <input type="text" id="value4" name="value4" value="" SIZE=2/><br><br></td><td>
<input type="button" name="Submit" value="Click here" onclick="javascript:addNumbers()"/><br><br> </td></tr><tr><td colspan=5 bgcolor="#000000"><center>
<input type="text" id="answer" name="answer" value=""/ SIZE=75> </center></td></tr></table>
<br><br></center>



<table width="700" border="1" cellpadding=6><tbody>

<tr><td bgcolor="#eeeeee">
<div align="justify"><font size=4 face="garamond"><b>Got 15 minutes?</b></font><font size=2 face="garamond"> Do the following 4 drills, then enter your scores above. Switch up the order any way you desire to maximize your results. Do AT LEAST this much every day if you want to be good. 3 MINUTES per drill, with a ONE MINUTE rest in between each. If you can't spare 15 minutes per day, you just don't want it bad enough!</font></div>
</td></tr>

<tr><td onmouseover="this.bgColor='#fff000'" onmouseout="this.bgColor='white'" bgcolor="white"><table width="100%" cellpadding=5><tbody><tr><td width="50"><img src="http://i40.photobucket.com/albums/e250/jonsan32/letter-x-red.jpg" width="50" height="50" /></td><td width="100"><b><font color="#000000">X Drill</b></td><td><small><font color="#000000"><p align="justify">Sprint-dribbling jumpshots from each of the 4 elbows, running full court in an X pattern (3 minutes). Run straight, then cross, run straight, then cross, repeat...</small></td></tr></tbody></table></td></tr></font></font>


<tr><td onmouseover="this.bgColor='#fff000'" onmouseout="this.bgColor='white'" bgcolor="white"><table width="100%" cellpadding=5><tbody><tr><td width="50"><img src="http://i40.photobucket.com/albums/e250/jonsan32/images-2.jpg" width="50" height="50" /></td><td width="100"><b><font color="#000000">2-Pointers</b></td><td><small><font color="#000000"><p align="justify">How many mid-range jumpshots off the dribble you can make in 3 minutes.</small></td></tr></tbody></table></td></tr></font></font>


<tr><td onmouseover="this.bgColor='#fff000'" onmouseout="this.bgColor='white'" bgcolor="white"><table width="100%" cellpadding=5><tbody><tr><td width="50"><img src="http://i40.photobucket.com/albums/e250/jonsan32/threepointline.jpg" width="50" height="50" /></td><td width="100"><b><font color="#000000">3-Pointers</b></td><td><small><font color="#000000"><p align="justify">How many 3-pointers you can make in 3 minutes.</small></td></tr></tbody></table></td></tr></font></font>




<tr><td onmouseover="this.bgColor='#fff000'" onmouseout="this.bgColor='white'" bgcolor="white"><table width="100%" cellpadding=5><tr><td width="50"><img src="http://i40.photobucket.com/albums/e250/jonsan32/nash.jpg" width="50" height="50" /></td><td width="100"><b><font color="#000000">Nash Drill</b></td><td><small><font color="#000000"><p align="justify">Sprinting, down 'n back is 2. See how many you can do in 3 minutes, Steve Nash can do 30!</small></td></tr></tbody></table></font></font></td></tr></table>

Philip M
02-02-2011, 07:30 AM
Fantastic help, guys!!! Thank you.

My final code is below, let me know if you have any ideas on how to make it even better.


You page looks good, but have a look at Post #3 for a more compact js.

<script language=javascript> is long deprecated and obsolete. Use <script type = "text/javascript"> instead.


"I have never taken any exercise except sleeping and resting." - Mark Twain, US humorist, novelist, short story author, & wit (1835 - 1910)

jonsan32
02-02-2011, 08:36 PM
You page looks good, but have a look at Post #3 for a more compact js.

<script language=javascript> is long deprecated and obsolete. Use <script type = "text/javascript"> instead.


"I have never taken any exercise except sleeping and resting." - Mark Twain, US humorist, novelist, short story author, & wit (1835 - 1910)


So just changejavascript to "text/javascript", or should I change the whole thing to make it more like post#3?


Here's what I have now, and it works...


<br>
<center><img src="http://i40.photobucket.com/albums/e250/jonsan32/easy.png"></center>
<br><script type = "text/javascript">
function addNumbers()
{
var val1 = parseInt(document.getElementById("value1").value);
var val2 = parseInt(document.getElementById("value2").value);
var val3 = parseInt(document.getElementById("value3").value);
var val4 = parseInt(document.getElementById("value4").value);
var ansD = document.getElementById("answer");
ansD.value = Math.round(((100-(25-val1)*5)/4 + (100-6.66667*(23-val2))/4 + (100-7.51*(15-val3))/4 + (100-4*(32-(val4)))/4)*100)/100 ;


}

function addNumbers()
{
var val1 = parseInt(document.getElementById("value1").value);
var val2 = parseInt(document.getElementById("value2").value);
var val3 = parseInt(document.getElementById("value3").value);
var val4 = parseInt(document.getElementById("value4").value);
var ansD = document.getElementById("answer");

var formula = Math.round(((100-(25-val1)*5)/4 + (100-6.66667*(23-val2))/4 + (100-7.51*(15-val3))/4 + (100-4*(32-(val4)))/4)*100)/100 ;

var phrase=new Array(" Yeah Right!"," A Legendary Performance"," You're an All-Star!"," Now that's college material!"," Very Good job."," Great Effort"," You're almost there!"," Nice try."," Average. Try harder."," Don't give up"," You've got a ways to go"," That's a poor performance");
if(formula>100){ ansD.value="You've somehow scored a " + formula +"." + phrase[0]}
if(formula<=100 && formula>=90){ ansD.value="You've scored a " + formula +"." + phrase[1]}
if(formula<90 && formula>=80){ ansD.value="You've scored a " + formula +"." + phrase[2]}
if(formula<80 && formula>=70){ ansD.value="You've scored a " + formula +"." + phrase[3]}
if(formula<70 && formula>=60){ ansD.value="You've scored a " + formula +"." + phrase[4]}
if(formula<60 && formula>=50){ ansD.value="You've scored a " + formula +"." + phrase[5]}
if(formula<50 && formula>=40){ ansD.value="You've scored a " + formula +"." + phrase[6]}
if(formula<40 && formula>=30){ ansD.value="You've scored a " + formula +"." + phrase[7]}
if(formula<30 && formula>=20){ ansD.value="You've scored a " + formula +"." + phrase[8]}
if(formula<20 && formula>=10){ ansD.value="You've scored a " + formula +"." + phrase[9]}
if(formula<10 && formula>=0){ ansD.value="You've scored a " + formula +"." + phrase[10]}
if(formula<0){ ansD.value="You've scored a " + formula +"." + phrase[11]}

}



</SCRIPT>


<center>
<table width=700><tr><td>XDrill = <input type="text" id="value1" name="value1" value="" SIZE=2 /> <br><br></td><td>
2ptrs = <input type="text" id="value2" name="value2" value="" SIZE=2/><br><br> </td><td>
3ptrs = <input type="text" id="value3" name="value3" value="" SIZE=2/><br><br> </td><td>
Nash = <input type="text" id="value4" name="value4" value="" SIZE=2/><br><br></td><td>
<input type="button" name="Submit" value="Click here" onclick="javascript:addNumbers()"/><br><br> </td></tr><tr><td colspan=5 bgcolor="#000000"><center>
<input type="text" id="answer" name="answer" value=""/ SIZE=75> </center></td></tr></table>
<br><br></center>



<table width="700" border="1" cellpadding=6><tbody>

<tr><td bgcolor="#eeeeee">
<div align="justify"><font size=4 face="garamond"><b>Got 15 minutes?</b></font><font size=2 face="garamond"> Do the following 4 drills, then enter your scores above. Switch up the order any way you desire to maximize your results. Do AT LEAST this much every day if you want to be good. 3 MINUTES per drill, with a ONE MINUTE rest in between each. If you can't spare 15 minutes per day, you just don't want it bad enough!</font></div>
</td></tr>

<tr><td onmouseover="this.bgColor='#fff000'" onmouseout="this.bgColor='white'" bgcolor="white"><table width="100%" cellpadding=5><tbody><tr><td width="50"><img src="http://i40.photobucket.com/albums/e250/jonsan32/letter-x-red.jpg" width="50" height="50" /></td><td width="100"><b><font color="#000000">X Drill</b></td><td><small><font color="#000000"><p align="justify">Sprint-dribbling jumpshots from each of the 4 elbows, running full court in an X pattern (3 minutes). Run straight, then cross, run straight, then cross, repeat...</small></td></tr></tbody></table></td></tr></font></font>


<tr><td onmouseover="this.bgColor='#fff000'" onmouseout="this.bgColor='white'" bgcolor="white"><table width="100%" cellpadding=5><tbody><tr><td width="50"><img src="http://i40.photobucket.com/albums/e250/jonsan32/images-2.jpg" width="50" height="50" /></td><td width="100"><b><font color="#000000">2-Pointers</b></td><td><small><font color="#000000"><p align="justify">How many mid-range jumpshots off the dribble you can make in 3 minutes.</small></td></tr></tbody></table></td></tr></font></font>


<tr><td onmouseover="this.bgColor='#fff000'" onmouseout="this.bgColor='white'" bgcolor="white"><table width="100%" cellpadding=5><tbody><tr><td width="50"><img src="http://i40.photobucket.com/albums/e250/jonsan32/threepointline.jpg" width="50" height="50" /></td><td width="100"><b><font color="#000000">3-Pointers</b></td><td><small><font color="#000000"><p align="justify">How many 3-pointers you can make in 3 minutes.</small></td></tr></tbody></table></td></tr></font></font>




<tr><td onmouseover="this.bgColor='#fff000'" onmouseout="this.bgColor='white'" bgcolor="white"><table width="100%" cellpadding=5><tr><td width="50"><img src="http://i40.photobucket.com/albums/e250/jonsan32/nash.jpg" width="50" height="50" /></td><td width="100"><b><font color="#000000">Nash Drill</b></td><td><small><font color="#000000"><p align="justify">Sprinting, down 'n back is 2. See how many you can do in 3 minutes, Steve Nash can do 30!</small></td></tr></tbody></table></font></font></td></tr></table>

Old Pedant
02-02-2011, 09:00 PM
Philip's point--and mine--is that the code you have there is much much longer and uglier than what I gave you.

In practice, either one will work.

But why use longer and uglier code when you don't have to?

In your last post, you have the function addNumbers() defined TWICE.

Now *THAT* is a mistake.

*************

Even if you couldn't follow the simple math I used for my solution (taking the score divided by 10 and using that as an index into the array of phrases), that code is horribly long and ugly.

Why would you want to repeat the code ansD.value="You've scored a " + formula +"." + phrase[X]} over and over again, when the only part of it that changes is the X ???

jonsan32
02-02-2011, 09:04 PM
Philip's point--and mine--is that the code you have there is much much longer and uglier than what I gave you.

In practice, either one will work.

But why use longer and uglier code when you don't have to?

In your last post, you have the function addNumbers() defined TWICE.

Now *THAT* is a mistake.

*************

Even if you couldn't follow the simple math I used for my solution (taking the score divided by 10 and using that as an index into the array of phrases), that code is horribly long and ugly.

Why would you want to repeat the code ansD.value="You've scored a " + formula +"." + phrase[X]} over and over again, when the only part of it that changes is the X ???



Oh, I see. I chose that code because it was intact and easy to insert. I'm pretty amateurish at coding, and need as much drawn out for me as possible. When I tried to use your code, I couldn't figure out how to assemble it... although I'm sure it was very simple. If you want to post something I can here that I can simply copy and paste, that would be AWESOME. Thanks either way. And yes, I totally understand your point and completely agree. I just feel weird asking you to do all the work for me, so I just let it be.

Old Pedant
02-03-2011, 12:15 AM
??? My code in post #3 is ready to use as is.

Just replace all your existing addNumbers code with it.

If it doesn't work, that's a different thing. But it wasn't meant to be a piece of the answer. It's the full answer.

jonsan32
02-03-2011, 12:39 AM
Understood, but doesn't work for me. It worked when I tested it, but now when I put it on the site. I've reverted back to the only I can get to work. Thanks guys!



<br>
<center><img src="http://i40.photobucket.com/albums/e250/jonsan32/easy.png"></center>
<br><script language="text/javascript">

var msgs = [ "You've got a ways to go.", "Don't give up.","Average. Try harder.","Nice try"," You're almost there!",
"Great Effort","Very Good Job","Now that's college material!", "You're an All-Star!", "A Legendary Performance" ];

function addNumbers()
{
var val1 = parseInt(document.getElementById("value1").value);
var val2 = parseInt(document.getElementById("value2").value);
var val3 = parseInt(document.getElementById("value3").value);
var val4 = parseInt(document.getElementById("value4").value);
score = Math.round(((100-(25-val1)*5)/4 + (100-6.66667*(23-val2))/4 + (100-7.51*(15-val3))/4 + (100-4*(32-(val4)))/4)*100)/100 ;

if ( score < 0 )
{
msg = "Poor Performance";
} else if ( score > 100 ) {
msg = "Yeah Right!"
} else {
msg = msgs[ Math.floor( score / 10.0 ) ];
}
var ansD = document.getElementById("answer");
ansD.value = "You've scored a " + score + ". " + msg;
}


</SCRIPT>


<center>
<table width=700><tr><td>XDrill = <input type="text" id="value1" name="value1" value="" SIZE=2 /> <br><br></td><td>
2ptrs = <input type="text" id="value2" name="value2" value="" SIZE=2/><br><br> </td><td>
3ptrs = <input type="text" id="value3" name="value3" value="" SIZE=2/><br><br> </td><td>
Nash = <input type="text" id="value4" name="value4" value="" SIZE=2/><br><br></td><td>
<input type="button" name="Submit" value="Click here" onclick="javascript:addNumbers()"/><br><br> </td></tr><tr><td colspan=5 bgcolor="#000000"><center>
<input type="text" id="answer" name="answer" value=""/ SIZE=75> </center></td></tr></table>
<br><br></center>



<table width="700" border="1" cellpadding=6><tbody>

<tr><td bgcolor="#eeeeee">
<div align="justify"><font size=4 face="garamond"><b>Got 15 minutes?</b></font><font size=2 face="garamond"> Do the following 4 drills, then enter your scores above. Switch up the order any way you desire to maximize your results. Do AT LEAST this much every day if you want to be good. 3 MINUTES per drill, with a ONE MINUTE rest in between each. If you can't spare 15 minutes per day, you just don't want it bad enough!</font></div>
</td></tr>

<tr><td onmouseover="this.bgColor='#fff000'" onmouseout="this.bgColor='white'" bgcolor="white"><table width="100%" cellpadding=5><tbody><tr><td width="50"><img src="http://i40.photobucket.com/albums/e250/jonsan32/letter-x-red.jpg" width="50" height="50" /></td><td width="100"><b><font color="#000000">X Drill</b></td><td><small><font color="#000000"><p align="justify">Sprint-dribbling jumpshots from each of the 4 elbows, running full court in an X pattern (3 minutes). Run straight, then cross, run straight, then cross, repeat...</small></td></tr></tbody></table></td></tr></font></font>


<tr><td onmouseover="this.bgColor='#fff000'" onmouseout="this.bgColor='white'" bgcolor="white"><table width="100%" cellpadding=5><tbody><tr><td width="50"><img src="http://i40.photobucket.com/albums/e250/jonsan32/images-2.jpg" width="50" height="50" /></td><td width="100"><b><font color="#000000">2-Pointers</b></td><td><small><font color="#000000"><p align="justify">How many mid-range jumpshots off the dribble you can make in 3 minutes.</small></td></tr></tbody></table></td></tr></font></font>


<tr><td onmouseover="this.bgColor='#fff000'" onmouseout="this.bgColor='white'" bgcolor="white"><table width="100%" cellpadding=5><tbody><tr><td width="50"><img src="http://i40.photobucket.com/albums/e250/jonsan32/threepointline.jpg" width="50" height="50" /></td><td width="100"><b><font color="#000000">3-Pointers</b></td><td><small><font color="#000000"><p align="justify">How many 3-pointers you can make in 3 minutes.</small></td></tr></tbody></table></td></tr></font></font>




<tr><td onmouseover="this.bgColor='#fff000'" onmouseout="this.bgColor='white'" bgcolor="white"><table width="100%" cellpadding=5><tr><td width="50"><img src="http://i40.photobucket.com/albums/e250/jonsan32/nash.jpg" width="50" height="50" /></td><td width="100"><b><font color="#000000">Nash Drill</b></td><td><small><font color="#000000"><p align="justify">Sprinting, down 'n back is 2. See how many you can do in 3 minutes, Steve Nash can do 30!</small></td></tr></tbody></table></font></font></td></tr></table>

Philip M
02-03-2011, 08:12 AM
Understood, but doesn't work for me. It worked when I tested it, but now when I put it on the site.


It does not work because you have
<script language="text/javascript">

I said
<script language=javascript> is long deprecated and obsolete. Use <script type = "text/javascript"> instead.

Then it works just fine. :)