Ok, first let me begin by explaining what I'm doing. I'm working on a login page that uses opacity for the main login box. what it does is the box starts at .1 opacity by default and if the user mousesover the box it fades in to 100% opacity. I also have the fields set to onFocus so if the user is typing the box remains 100% opacity.
Ok now my problem is this. This script works...sort of. It fades ONCE but once you onmouseout g_iCount is still set to 9. If I make an else within my if statement saying: g_iCount = 0;
It freaks out and once you onmouseover it it keeps repeating. I have used stop, etc in the else statement as well.
also it is a global variable. I'm not sure how to set it and have it recognized in the function.
Here is the link to the site. All the coding is in the source, I didn't make them a seperate file.
The code might change since it is my local webserver and I'm working on it as we speak.
http://sephroth.no-ip.info/fsmedia/login/index.html
__________________
Chris - Trying to help others and learn myself!
Please login or register to view this content. Registration is FREE
|