//select all the a tag with name equal to modal $('a[name=modal]').click(function(e) { //Cancel the link behavior e.preventDefault(); //Get the A tag var id = $(this).attr('href');
//Get the screen height and width var maskHeight = $(document).height(); var maskWidth = $(window).width();
//Set heigth and width to mask to fill up the whole screen $('#mask').css({'width':maskWidth,'height':maskHeight});
+11 DizeL23.10.2010 23:59:16
Выглядит очень красиво, в него я хотел сделать профиль, но подумал и не стал. Пусть пользователь сам решает
Цитировать |
Редактировать |
Удалить