mam problem a mianowicie napisałem skrypt do tworzeniu menu, wszystko ładnie pięknie działa i tworzy menu ale jak klikne na URL to treść podstrony się pojawia ale wtedy znika samo menu. Nie wiem jak to rozwiązać, żeby po przyciśnięciu menu pozostało bez zmian a tekst podstrony sie wyswietli.
tutaj kod
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" media="all" href="css/dark.css" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $("#topnav li").prepend("<span></span>"); //Throws an empty span tag right before the a tag $("#topnav li").each(function() { //For each list item... var linkText = $(this).find("a").html(); //Find the text inside of the <a> tag $(this).find("span").show().html(linkText); //Add the text in the <span> tag }); $("#topnav li").hover(function() { //On hover... $(this).find("span").stop().animate({ marginTop: "-40" //Find the <span> tag and move it up 40 pixels }, 250); } , function() { //On hover out... $(this).find("span").stop().animate({ marginTop: "0" //Move the <span> back to its original state (0px) }, 250); }); }); </script> <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="js/jquery.easing.1.3.js"></script> <link rel="stylesheet" type="text/css" href="css/nivo-slider.css" media="screen" /> <script type="text/javascript" src="js/nivo.slider.js"></script> <script type="text/javascript"> $(window).load(function() { $('#slider').nivoSlider({ effect:'random', // sliceDown, sliceDownLeft, sliceUp, sliceUpLeft, sliceUpDown, sliceUpDownLeft, fold, fade, random slices:30, animSpeed:500, pauseTime:3000, directionNav:true, //Next & Prev directionNavHide:true, //Only show on hover controlNav:true, //1,2,3... pauseOnHover:true, //Stop animation while hovering beforeChange: function(){}, afterChange: function(){} }); }); </script> </head> <body id="mainpage"> <div id="pasek1"> <div class="style1" id="logowanie">Zaloguj się </div> </div> <div id="pasek2"><div id="logo"><img src="images/bg/logo_woj2.jpg"></div> <div class="topmenu"> <?php include ('db.php'); <?php ?> <ul id="topnav"> </ul> <? } ?> <? } ?> </div> </div> <div class="sliderbg"> <div id="slider"> <a href="#"><img src="images/slides1.jpg" alt="" title="Test" /></a> <a href="#"><img src="images/slides2.jpg" alt="" title="Test" /></a> <a href="#"><img src="images/slides3.jpg" alt="" title="Test" /></a> <a href="#"><img src="images/slides4.jpg" alt="" title="Test" /></a> </div> <div class="clear"></div> </div> <div align="center"> <?php if($_GET['wyswietl']=="1") { } ?> </div> </html>