![]() |
JavaScript fading in/out script when fading in one, fade out others
I got this code:
Code:
var fade_in_from = 0;I tried something and put this within the fadeIn function without any result. if(target == 'div1') { fadeOut('div2'); fadeOut('div3'); } Could someone help me?:) Many thanks. |
Two answers for you. The first is the hardest, it trys to do all the fade ins and out at the same time. What I did instead of fading thee divs I put the dive that had to go in a master div and faded that out. And put the one that you wanted to fade in behind the master and it just appears as the master fades out. Had to use position:absolute; which I don't like to do.
Code:
<body>Code:
<body> |
Hmm this is probably gonna help me out! Many thanks, I am going to use a combination of both.
|
| All times are GMT +1. The time now is 08:39 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.