IBEX Posted December 17, 2006 Report Share Posted December 17, 2006 Nu veidojot navigacijas paneli... Nu kaa es gribu uztaisiita tadu navigacijas paneli kaa no sakauma fons ir melns, kad uzpies uz taa linka fons paliek balts... Ta kaa sitais Navigacijas panelis... Un teksts sastav nevis no bildeeem bet no pasa teksta... Bildee nav teksta, bet tajaa pasaa kodaa ir teksts + href ... kipa links... Link to comment Share on other sites More sharing options...
hmnc Posted December 17, 2006 Report Share Posted December 17, 2006 tas NAV PHP!!!!! # .html <a href="path/" class="m">meenuu</a> # .css a.m { background: #666; } a.m:hover{ background:#000; } Link to comment Share on other sites More sharing options...
IBEX Posted December 17, 2006 Author Report Share Posted December 17, 2006 jap, ir.... TNX... Sorry, ka neatbilstosi... Bet vel viens jautajums kaa uzlikt lai manias burtu kraasa? Link to comment Share on other sites More sharing options...
Stopp Posted December 17, 2006 Report Share Posted December 17, 2006 (edited) a.m { color: #FF0000; } a.m:hover{ color: #000000; } ps. http://google.com/search?q=css+tutorial Edited December 17, 2006 by Stopp Link to comment Share on other sites More sharing options...
IBEX Posted December 17, 2006 Author Report Share Posted December 17, 2006 Nevajag taisīt muļķīgas QUOTEs (bubu) TNX... !!! Noderees links... BUUS JAPALASA!!! Link to comment Share on other sites More sharing options...
rob Posted December 18, 2006 Report Share Posted December 18, 2006 elemantāri vatson šo pasākumu var ārī precīzi navaigācijai optimizēt Kas mums vajadzīgs: 1) CSS klases 2) masīvs ar menu 3) f-cija kas visu saliek pa plauktiņiem un tas viss izskatās apmēram šādi <style type="text/css"> #selected{ color:#990000 !important; } #mneu a:link, #mneu a:visited{ color:#333333; font-family:Arial, Helvetica, sans-serif; font-size:12px; text-decoration:none; padding-right:2px; } #mneu a:hover{ color:#FFFFFF; background-color:#333333; } </style> <? $menu = array('1'=>'pirmais ieraksts','2'=>'otrais ieraksts'); $out = '<div id="mneu">'; foreach($menu as $item => $value){ $out .='<a href="?page='.$item.'" '.($_GET['page'] == $item ? 'id="selected"' : '').'>'.$value.'</a>'; } $out .='</div>'; echo $out; ?> Link to comment Share on other sites More sharing options...
andrisp Posted December 18, 2006 Report Share Posted December 18, 2006 Piebilde rob gabalam: Lai nebūtu šitā jāraksta: color:#990000 !important; Raksti šādi: #mneu a#selected{ color: #990000; } Vairāk par šo: http://www.google.lv/search?hl=lv&q=css+specifity Link to comment Share on other sites More sharing options...
rob Posted December 18, 2006 Report Share Posted December 18, 2006 tā arī var raxtīt :) Link to comment Share on other sites More sharing options...
andrisp Posted December 18, 2006 Report Share Posted December 18, 2006 Nevis tā arī var rakstīt, bet tā ir jāraksta ;). ! important nogalina user style-sheetus, kas nav labi. Link to comment Share on other sites More sharing options...
Kavacky Posted December 18, 2006 Report Share Posted December 18, 2006 Cik daudzi tādus lieto? Link to comment Share on other sites More sharing options...
andrisp Posted December 18, 2006 Report Share Posted December 18, 2006 Godīgi sakot, nezinu nevienu tādu, bet nu !important, domāju, nav īsti paredzēts iekš author stylesheetiem (kaut gan pēc specenes ir atļauts). Link to comment Share on other sites More sharing options...
Recommended Posts