ziedinjsh Posted February 25, 2010 Report Share Posted February 25, 2010 (edited) Sveiki! $show = (isset($_GET['show'])) ? $_GET['show'] : ''; echo "<p><a href='index.php?show=music' ".(($show == "music") ? "class='current'" : "")."\">Music</a></p>"; if ($show=='music'){ echo "Music"; } šāds ir php kods preks menu bet šis ir css /* menu */ #menu{ border-top:5px solid #333333; border-bottom:5px solid #333333; background-color:#333333; width:100%; color:#FF6F0F; } #menu p{ margin:0px 5px 0px 5px; border:0px solid #ff0000; float:left; height:30px; font-size:25px; } #menu a{ color:#FF6F0F; font-family:chiller; font-weight:bold; text-decoration:none; padding:0px 10px 0px 10px; } #menu a:hover{ background-color:#FF6F0F; color:#333333; } .current{ color:#ff0000; background-color:#FF6F0F; } Lieta sekojošā - kad uzrakstu šādi #menu.current{color:#FF0000; background-color:#FF6F0F;} tad nestrādā vispār, bet ja ir kā tagad .current{color:#FF0000; background-color:#FF6F0F;} tad background strādā bet burti nav redzami.. ir vnk klucis! kas varētu būt par vainu? Iespējams esmu kaut ko palaidis garām :| Paldies jau iepriekš! Edited February 25, 2010 by ziedinjsh Quote Link to comment Share on other sites More sharing options...
indoom Posted February 25, 2010 Report Share Posted February 25, 2010 (edited) #menu .current (ar atstarpi pa vidu) vai #menu a.current Edited February 25, 2010 by indoom Quote Link to comment Share on other sites More sharing options...
Trac3 !! Posted February 25, 2010 Report Share Posted February 25, 2010 (edited) #menu a.current // Too late :) Edited February 25, 2010 by Trac3 !! Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted February 25, 2010 Author Report Share Posted February 25, 2010 tāds sīkums.. Liels paldies! :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.