Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Old 01-16-2007, 01:00 AM opacity script issue
Super Talker

Posts: 124
Name: Chris
Trades: 0
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
ctess is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-16-2007, 09:48 AM Re: opacity script issue
Skilled Talker

Posts: 96
Name: Tudor Barbu
Trades: 0
Why don't you try the FadeIn, FadeOut effect from script.aculo.us? Perhaps they can be of some help...
__________________

Please login or register to view this content. Registration is FREE
Tudor.b is offline
Reply With Quote
View Public Profile Visit Tudor.b's homepage!
 
Reply     « Reply to opacity script issue
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09561 seconds with 12 queries