Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [jquery] Jak wyciągnąć PRZED?
sammy103
post 24.05.2014, 16:03:29
Post #1





Grupa: Zarejestrowani
Postów: 24
Pomógł: 0
Dołączył: 21.04.2014

Ostrzeżenie: (10%)
X----


Czyli: http://postimg.org/image/526tgxlrh/

tu: http://testowa.testynarkotykowe.pl/testy-n...e/testy-na-mocz

Zoom obrazka PRZED overlay?
Go to the top of the page
+Quote Post
markuz
post 24.05.2014, 18:43:11
Post #2





Grupa: Zarejestrowani
Postów: 1 240
Pomógł: 278
Dołączył: 11.03.2008

Ostrzeżenie: (0%)
-----


z-index


--------------------
Go to the top of the page
+Quote Post
sammy103
post 25.05.2014, 01:33:43
Post #3





Grupa: Zarejestrowani
Postów: 24
Pomógł: 0
Dołączył: 21.04.2014

Ostrzeżenie: (10%)
X----


Problemem jest to: na ktorym elemencie, by wygladalo tak

http://s28.postimg.org/9c99lq9l9/problem1x1.jpg

w a w zasadzie dzialalo tak

http://s29.postimg.org/cisghj9zb/problem1x3.jpg
Go to the top of the page
+Quote Post
trueblue
post 25.05.2014, 10:20:56
Post #4





Grupa: Zarejestrowani
Postów: 6 806
Pomógł: 1828
Dołączył: 11.03.2014

Ostrzeżenie: (0%)
-----


Nie tylko zmiana z-index.
Dodaj selektor w css:
  1. .zoomContainer{
  2. z-index:15;
  3. }


a kod gdzie dodawałeś overlay, zmień na:
  1. $(document).ready(function(){
  2. $("#notOverlay0,#notOverlay1,#notOverlay2,#notOverlay3,#xnone1").on("mouseenter",function(){
  3. if($('.overlay').length==0){ // jeśli nie mamy overlay to dodajemy, jeśli już jest to nie
  4. $("body").append('<div class="overlay"></div>');
  5. $(this).css({"z-index":"10"});
  6. }
  7. });
  8. $("body").on("mouseenter",'.overlay',function(){
  9. $(this).remove(); //overlay usuwamy po najechaniu na niego, a nie po zjechaniu z notOverlay, zjechanie jest również po najechaniu na element powiększany
  10. });
  11. });


--------------------
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 00:47