SkyD Posted March 26, 2006 Report Share Posted March 26, 2006 Nu krch, ir tā .links { background-color: black; } .links:hover { background-color: orange; } Un vajag, ja tas links ir nospiests un tiek veerota taa sadalja, lai vinjsh buutu ar background-color: orange; .links:active { } neder, jo tas ir uz bridi kad poga tiek nospiesta, pectam pazuud atkal. Link to comment Share on other sites More sharing options...
Stopp Posted March 26, 2006 Report Share Posted March 26, 2006 <a onClick="this.style.backgroundColor='#FFA500';" ..> ja nemaldos. Link to comment Share on other sites More sharing options...
bubu Posted March 26, 2006 Report Share Posted March 26, 2006 .links:hover, .links:visited { background-color: orange; } Link to comment Share on other sites More sharing options...
SkyD Posted March 26, 2006 Author Report Share Posted March 26, 2006 :DD bljaaviens. Ja uzliek visited, tad vinjsh paliek taads visu paareejo muuzhu, un orgjinaalaa kraasa nemainaas. Nu reku piemeers, dzivoklis.lv tur arii augshaa ir uz valodaam. Taa man vajag. Paklikshkjiniet un tad sapratisiet, ko es griu. Link to comment Share on other sites More sharing options...
bubu Posted March 26, 2006 Report Share Posted March 26, 2006 Nu tak lol. Tur ar css nav gandrīz nekāda sakara. php to to nosaki, kura sadaļa ir aktīva, un tai sadaļai atbilstošo class/style uzliec! if ($active=="LV") { echo "<a href='..' class='active'>LV</a> } else { echo "<a href='..' class='NOTACTIVE'>LV</a> } Link to comment Share on other sites More sharing options...
SkyD Posted March 26, 2006 Author Report Share Posted March 26, 2006 Zin, uz vakaru galiigi nedomaajas :DD Link to comment Share on other sites More sharing options...
Recommended Posts