sPanky Posted December 13, 2008 Report Share Posted December 13, 2008 Sveiki, kā var izdarīt tā, kad aiziet uz kādu citu linku augšā menu tas links ir aktīvs, nevis visu laiku viens links aktīvs kaut vai esmu citā lapā ? Link to comment Share on other sites More sharing options...
waplet Posted December 13, 2008 Report Share Posted December 13, 2008 taisi jaunu html failu un kad atveri piem sakums.html failu tad tajā html'ā noņem ka var uzspiest uz sākums , piem jau uzspied uz kontakti.html , tur noņemt href tagus lai nevarēto klikot! Link to comment Share on other sites More sharing options...
sPanky Posted December 13, 2008 Author Report Share Posted December 13, 2008 Es veidoju tā : <li><a href="index.php">Sakums</a></li> <li><a href="index.php?darbiiba=link2">LINK 2</a></li> <li><a href="index.php?darbiiba=link3">LINK 3</a></li> Link to comment Share on other sites More sharing options...
waplet Posted December 13, 2008 Report Share Posted December 13, 2008 var vēl tā if ( isset($_GET[darbiiba] == sakums) { echo "Sākums"; } else { echo "<a href=/'tavs saits/'> Sākums </a>"; } Link to comment Share on other sites More sharing options...
werd Posted December 13, 2008 Report Share Posted December 13, 2008 Kapēc jāsarežģa? Tev katram linkam ir noteikts id, to arī izmanto! $curr_link_id = $_GET['id']; <a href="#" id="1" <?=$curr_link_id==1 ? "class='active'":""?>></a> Link to comment Share on other sites More sharing options...
Recommended Posts