![]() |
|
||||||||||
|
|||||||
|
|
« Предыдущая тема | Следующая тема » |
| Опции темы | Опции просмотра |
|
![]() |
![]() |
|
|||||
|
Регистрация: Nov 2008
Адрес: Odessa Ukraine
Сообщений: 39
|
Нужно сделать :При наведении на мувик, остальные затухают
Проблема: Затухают все for(i=1;i<9;i++){ _root["cerculet_albastru"+i].onRollOver=function(){ intunecam(i); _root.minvit=1 } _root["cerculet_albastru"+i].onRollOut=function(){intunecam2(i); _root.minvit=2 } } function intunecam(j){ for(ti=1;ti<9;ti++) { //_root.arialix.text=j; if(ti!=j){_root["cerculet_albastru"+ti]._alpha=20}; } } function intunecam2(j){ for(ti=1;ti<9;ti++) { //_root.arialix.text=j; if(ti!=j){_root["cerculet_albastru"+ti]._alpha=100}; } } Вот так работает, а в цикле не хочет |
|
|||||
|
Регистрация: Sep 2005
Сообщений: 950
|
вот так будет работать
for(i=1;i<7;i++){ but = _root["cerculet_albastru"+i] but.id = i but.onRollOver=function(){ intunecam(this.id); _root.minvit=1 } but.onRollOut=function(){ intunecam2(this.id); _root.minvit=2 } } function intunecam(j){ for(ti=1;ti<7;ti++) { //_root.arialix.text=j; if(ti!=j){_root["cerculet_albastru"+ti]._alpha=20}; } } function intunecam2(j){ for(ti=1;ti<7;ti++) { //_root.arialix.text=j; if(ti!=j){_root["cerculet_albastru"+ti]._alpha=100}; } } |
|
|||||
|
Регистрация: Nov 2008
Адрес: Odessa Ukraine
Сообщений: 39
|
Спасибо! Работает! ![]() |
![]() |
![]() |
Часовой пояс GMT +4, время: 02:03. |
|
|
« Предыдущая тема | Следующая тема » |
|
|