
OwChallie
Novice
Jan 4, 2005, 3:59 AM
Post #2 of 2
(45804 views)
|
Re: [tack] how to use parameter for object?
[In reply to]
|
Can't Post
|
|
Hi, if you still need this, when you pass 'a' as a parameter to your function, you are passing the letter 'a' and not the variable a, so it should look something like this:
<script> <!--// function menu(ide, where) { if(where=='in') { ide.style.background='555555'; } if (where=='out') { ide.style.background='ffffff'; } } //--> </script> <table width=100%> <tr><td id="a"><a href="#" onMouseover="menu(a,'in');" onMouseout="menu(a,'out')">try</a><br></td></tr> </table>
|