Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [JavaScript]Wysuwane menu i scrollowanie strony, jw
miras
post
Post #1





Grupa: Zarejestrowani
Postów: 1 004
Pomógł: 9
Dołączył: 18.01.2011
Skąd: Siedlce

Ostrzeżenie: (30%)
XX---


Witam, mam zrobione wysuwane menu na bok, wszystko dziala ok, natomiast problem pojawia się gdy najedziemy na najnizszą pozycje menu i wtedy rozsunięty element chowa się (trzeba scrollowac strone w dol aby to zobaczyc) jak to naprawic?

kod:


  1.  
  2. function pokazp(diw) {
  3. $("#"+diw).show();
  4. }
  5.  
  6. function schowaj(diw) {
  7. document.getElementById(diw).style.display = 'none';
  8. }
  9.  
  10.  
  11.  
  12.  
  13. <pre style="width: 200px; height: 30px; overflow: hidden;" onMouseOver="pokaz('pop{php}echo $i;{/php}');" onMouseOut="schowaj('pop{php}echo $i;{/php}');">
  14. <a href="{$smarty.const.APP_URL}kategoria,{rewrite text=`$item.name`},{$item.id}.html"><span>{$item.name} ({$item.count})</span></a>
  15.  
  16.  
  17.  
  18.  
  19.  
  20. <div id="pop{php}echo $i;{/php}" style="display: none;">
  21. <div style="width: 200px; background: #fff; position: absolute; float: left; display: block; margin-top:-18px; margin-left: 180px; z-index: 99999;">
  22.  
  23. <ul class="menu">
  24. {foreach item=sub from=$announcementCategorys}
  25. {if $sub.children==$item.id}
  26. <li><a href="{$smarty.const.APP_URL}kategoria,{rewrite text=`$sub.name`},{$sub.id}.html"><span>{$sub.name} ({$sub.count})</span></a></li>
  27. {/if}
  28. {/foreach}
  29. </ul>
  30. </div>
  31. {/if}
  32. </pre>
  33.  
  34.  
  35.  


--------------------
Go to the top of the page
+Quote Post
PrinceOfPersia
post
Post #2





Grupa: Zarejestrowani
Postów: 717
Pomógł: 120
Dołączył: 18.04.2009

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


uporządkuj kod, a potem wrzucaj.


--------------------
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 Aktualny czas: 20.08.2025 - 13:39