http://www.noupe.com/tutorial/drop-down-menu-jquery-css.html
ale nie wiem gdzie mam wkleić 3 pkt używam skryptu "phpbb by przemo"
wszystko robie w overall_header.tpl no ale nie wiem jak mam wstawić ten kod od skryptu

do overall_header.tpl
do nazwa stylu.css
1. ul.topnav { 2. list-style: none; 3. padding: 0 20px; 4. margin: 0; 5. float: left; 6. width: 920px; 7. background: #222; 8. font-size: 1.2em; 9. background: url(topnav_bg.gif) repeat-x; 10. } 11. ul.topnav li { 12. float: left; 13. margin: 0; 14. padding: 0 15px 0 0; 15. position: relative; /*--Declare X and Y axis base for sub navigation--*/ 16. } 17. ul.topnav li a{ 18. padding: 10px 5px; 19. color: #fff; 20. display: block; 21. text-decoration: none; 22. float: left; 23. } 24. ul.topnav li a:hover{ 25. background: url(topnav_hover.gif) no-repeat center top; 26. } 27. ul.topnav li span { /*--Drop down trigger styles--*/ 28. width: 17px; 29. height: 35px; 30. float: left; 31. background: url(subnav_btn.gif) no-repeat center top; 32. } 33. ul.topnav li span.subhover {background-position: center bottombottom; cursor: pointer;} /*--Hover effect for trigger--*/ 34. ul.topnav li ul.subnav { 35. list-style: none; 36. position: absolute; /*--Important - Keeps subnav from affecting main navigation flow--*/ 37. left: 0; top: 35px; 38. background: #333; 39. margin: 0; padding: 0; 40. display: none; 41. float: left; 42. width: 170px; 43. border: 1px solid #111; 44. } 45. ul.topnav li ul.subnav li{ 46. margin: 0; padding: 0; 47. border-top: 1px solid #252525; /*--Create bevel effect--*/ 48. border-bottom: 1px solid #444; /*--Create bevel effect--*/ 49. clear: both; 50. width: 170px; 51. } 52. html ul.topnav li ul.subnav li a { 53. float: left; 54. width: 145px; 55. background: #333 url(dropdown_linkbg.gif) no-repeat 10px center; 56. padding-left: 20px; 57. } 58. html ul.topnav li ul.subnav li a:hover { /*--Hover effect for subnav links--*/ 59. background: #222 url(dropdown_linkbg.gif) no-repeat 10px center; 60. }
1. $(document).ready(function(){ 2. 3. $("ul.subnav").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled (Adds empty span tag after ul.subnav*) 4. 5. $("ul.topnav li span").click(function() { //When trigger is clicked... 6. 7. //Following events are applied to the subnav itself (moving subnav up and down) 8. $(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click 9. 10. $(this).parent().hover(function() { 11. }, function(){ 12. $(this).parent().find("ul.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up 13. }); 14. 15. //Following events are applied to the trigger (Hover events for the trigger) 16. }).hover(function() { 17. $(this).addClass("subhover"); //On hover over, add class "subhover" 18. }, function(){ //On Hover Out 19. $(this).removeClass("subhover"); //On hover out, remove class "subhover" 20. }); 21. 22. });
Parse error: syntax error, unexpected '(', expecting T_VARIABLE or '$' in /home/extragra/public_html/includes/page_header.php on line 355