Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> FloatMenu nie działa pod IE8
Mega_88
post
Post #1





Grupa: Zarejestrowani
Postów: 360
Pomógł: 34
Dołączył: 20.08.2011

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


Hej Wam !

Mam problem z FloatMenu, które nie działa mi tylko pod przeglądarką Internet Explorer 8. Wszystkie inne takie jak Internet Explorer 9, Opera, FF, Chrome, Safari, Mozilla poprawnie to "mielą", a ten zacofany IE8 nie chce tego ruszyć. Pytanie tylko czemu nie chce mi to działać pod IE 8 ? Może ktoś wie o co chodzi tej przeglądarce (IMG:style_emoticons/default/arrowheadsmiley.png) Zauważyłem, że gryzie mi się to z pierwszą cześcią skryptu (podkreślone), ale co tam jest źle skoro pod innymi działa ?

p.s - po usunięciu częsci podkreślonej FloatMenu zaczyna działać pod IE8.

Kod JS + inne rzeczy wygląda tak:

  1. <script type="text/javascript">
  2. $(document).ready(function() {
  3. $('.fancybox').fancybox();
  4. $('.button1, .button2, .button3, .button4, .button5').stop().animate({"backgroundPosition":"0 -100"},1350);
  5. $('.button1, .button2, .button3, .button4, .button5').hover(function() {
  6. $(this).stop().animate({"backgroundPosition":"0 0"},500);
  7. },function() {
  8. $(this).stop().animate({"backgroundPosition":"0 -100"},200);
  9. });
  10. $('.button5, .button6, .button7').stop().animate({"backgroundPosition":"0 -5"},350);
  11. $('.button5, .button6, .button7').hover(function() {
  12. $(this).stop().animate({"backgroundPosition":"0 0"},500);
  13. },function() {
  14. $(this).stop().animate({"backgroundPosition":"0 -5"},200);
  15. });
  16. });
  17. var name = "#floatMenu";
  18. var menuYloc = null;
  19.  
  20. $(document).ready(function(){
  21. menuYloc = parseInt($(name).css("top").substring(0,$(name).css("top").indexOf("px")))
  22. $(window).scroll(function () {
  23. var offset = menuYloc+$(document).scrollTop();
  24. if( offset < 600 ) offset = 600;
  25. $(name).animate({top:offset+"px"},{duration:500,queue:false});
  26. });
  27. });[/b]


[b]Poniżej kod HTML:


  1. <?php
  2. if($id==7) echo
  3. '<div id="floatMenu">
  4. <ul>
  5. <a href="#oferta"><h2>Oferta</h2></a>
  6. <a href="#zapytanie"><h2>Zapytanie</h2></a>
  7. <a href="#podstawa"><h2>Podstawa prawna</h2></a>
  8. <a href="#referencje"><h2>Referencje</h2></a><br /><br />
  9. <a href="#gora"><h3>do góry</h3></a>
  10. </ul>
  11. </div>'
  12. ?>


Oraz styl CSS:

  1. #floatMenu {
  2. position:absolute;
  3. padding-top:0px;
  4. bottom:30px;
  5. top:90px;
  6. margin-left:0px;
  7. max-height:800px;
  8. width:300px;
  9. float:left;
  10. }


Ten post edytował Mega_88 5.09.2011, 00:09:34
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 23.08.2025 - 20:49