Javascript-форум (https://javascript.ru/forum/)
-   Общие вопросы Javascript (https://javascript.ru/forum/misc/)
-   -   IFRAME, требуется срочно помощь!!! (https://javascript.ru/forum/misc/9948-iframe-trebuetsya-srochno-pomoshh.html)

A.alex 12.06.2010 22:19

Цитата:

Сообщение от рони (Сообщение 59203)
A.alex, у тебя меню сделано на jQuery
для класса .latest_img ты зделал .hover
$(".latest_img").hover(function(){ ....
тебе достаточно будет отменять hover по клику на элементе из класса latest_img и востанавливать по клику на любом другом элементе этого класса
$(".latest_img").click(function () {$(this)......

Огромное спасибо!
хоть я не совсем понял, но думаю разберусь.

рони 12.06.2010 23:26

примерно так
var a;
$(document).ready(function(){
$(".latest_img").fadeTo(600, 0.0);
$(".latest_img").click(function () {a=$(this);
$(".latest_img:not(a)" ).css('opacity', 0.0);
a.css('opacity', 1.0);
a.unbind('mouseenter mouseleave');});
$(".latest_img").hover(function(){
$(this).fadeTo(500, 1.0);},function(){$(this).fadeTo(500, 0.0);});});

A.alex 13.06.2010 19:39

Цитата:

Сообщение от рони (Сообщение 59221)
примерно так
var a;
$(document).ready(function(){
$(".latest_img").fadeTo(600, 0.0);
$(".latest_img").click(function () {a=$(this);
$(".latest_img:not(a)" ).css('opacity', 0.0);
a.css('opacity', 1.0);
a.unbind('mouseenter mouseleave');});
$(".latest_img").hover(function(){
$(this).fadeTo(500, 1.0);},function(){$(this).fadeTo(500, 0.0);});});

Большое тебе человеческое СПАСИБО!!!

ВСЁ РАБОТАЕТ ! ТЫ ПРОСТО ГЕНИЙ ! :dance:

если я что то должен, пиши в личьку не стесняйся!

A.alex 13.06.2010 20:00

Цитата:

Сообщение от рони (Сообщение 59221)
примерно так
var a;
$(document).ready(function(){
$(".latest_img").fadeTo(600, 0.0);
$(".latest_img").click(function () {a=$(this);
$(".latest_img:not(a)" ).css('opacity', 0.0);
a.css('opacity', 1.0);
a.unbind('mouseenter mouseleave');});
$(".latest_img").hover(function(){
$(this).fadeTo(500, 1.0);},function(){$(this).fadeTo(500, 0.0);});});

Извени что тревожу по пусту, но что значит в этом скрипте (a.css)?

... это вроде как VARIABLE "a" действует на весь мой CSS (cascade style sheet) ???


Часовой пояс GMT +3, время: 04:34.