IM24LV Posted October 6, 2006 Report Share Posted October 6, 2006 tātad man ir uztaisīts tā lai kad uz linka kad uziet(hover) buutu sarkans un kad uzspiezh un ieiet linkaa, buutu zils! bet lieta taada ka tas zilais ir tikai tad kad uzspiezh, kaa atlaizh peli valjaa taa zilais pazuud! internetaa visos piemeeros kuros bija ar active, bija linkam vnk pielikts # simbols, taapeec tas sanaaca, bet ja links ir uztaisiits kaa normaals citas lappuses links, tad tas nesanaak! Link to comment Share on other sites More sharing options...
bubu Posted October 6, 2006 Report Share Posted October 6, 2006 #xx nozīmē pielietot stilu elementam ar id="xx". Tam nav nekāda sakara ar linkiem un to krāsām. Paskaties labāk uz pseidoklasēm :active :visited :hover Link to comment Share on other sites More sharing options...
IM24LV Posted October 6, 2006 Author Report Share Posted October 6, 2006 a:active man jau ir iedarbinaats, bet tas nestraadaa. tas nostraadaa tikai tad kad uz pasha linka uzspiezh, kaa atlaizh peli taa viss ir atpakalj! Link to comment Share on other sites More sharing options...
bubu Posted October 6, 2006 Report Share Posted October 6, 2006 Tāpēc jau saku, ka vajag paskatīties, ko tie dara: http://www.w3.org/TR/CSS21/selector.html#d...-pseudo-classes The :active pseudo-class applies while an element is being activated by the user. For example, between the times the user presses the mouse button and releases it. Kādi tad vēl jautājumi var rasties... Manuprāt tas :active tev ļoti labi strādā. Link to comment Share on other sites More sharing options...
IM24LV Posted October 6, 2006 Author Report Share Posted October 6, 2006 mhmm.. bet kaa lai izdara lai taa active zilaa kraasa buutu arii peec uzspieshanas? Link to comment Share on other sites More sharing options...
andrisp Posted October 6, 2006 Report Share Posted October 6, 2006 tas jau ir a:visited, a:active ir tad, kad tieši tiek spiests uz linka. Link to comment Share on other sites More sharing options...
bubu Posted October 6, 2006 Report Share Posted October 6, 2006 IM24LV: tu vispār lasi, ko es tev rakstu? Jau otrajā postā pateicu kādas pseidoklases tev jāapskatās. Un ceturtajā postā pat linku uz manuāli iedevu, kur ir aprakstītas, ko šīs klases dara.. Atliek tikai izlasīt. Link to comment Share on other sites More sharing options...
IM24LV Posted October 7, 2006 Author Report Share Posted October 7, 2006 (edited) bet esmu jau licis visas chetras klases! neder vinjas! visited taa uztaisa visus zilus peec tam kad esmu apciemojis. tas noziimee ka ja es uzspiezhu uz visiem linkiem tad vinji visi arii ir zili visu laiku kameer cookiji nav aizmirsushi ka es sheit esmu bijis! ideja ir taada oka kad uziet uz linka apakshas bordera kraasa nomainas uz sarkanu un kad uzkliko un ieiet iekshaa kraas apaliek zila! Edited October 7, 2006 by IM24LV Link to comment Share on other sites More sharing options...
andrisp Posted October 7, 2006 Report Share Posted October 7, 2006 (edited) ja tu esi nodefinējis visas četras a pseidoklases, bet tev nestrādā kā nākas, tad iespējams, ka nav pareizā secībā. Ja būtu palasījis bubu doto linku, tad zinātu: a:link { color: red } /* unvisited links */a:visited { color: blue } /* visited links */ a:hover { color: yellow } /* user hovers */ a:active { color: lime } /* active links */ Note that the A:hover must be placed after the A:link and A:visited rules, since otherwise the cascading rules will hide the 'color' property of the A:hover rule. Similarly, because A:active is placed after A:hover, the active color (lime) will apply when the user both activates and hovers over the A element. Edited October 7, 2006 by andrisp Link to comment Share on other sites More sharing options...
IM24LV Posted October 7, 2006 Author Report Share Posted October 7, 2006 es laikam sapratu. tas ko gribu tikai ar taam pseidoklaseem nav iespeejams. vajaga lai buutu taa ka ir piemeeram 3 html lapaas un katraa ira triis linki HOME LINK EINS un ir tā ka piemēram home lapā ir tā ka HOME patiesībā nav links un ir ar borderi savaadaaku ieziimeets, LINK l;apaa ir taa ka LINK patiesiibaa nav LINKS un ir ieziimeets ar savaadaaku borderi... bet diemzheel man tas neder, jo man visi linki ir vienaa lapaa un taa to realizeet nav iespeejams! Kaads nevar pateikt ko lai dara? kaadu alterneatiivu! Link to comment Share on other sites More sharing options...
bubu Posted October 7, 2006 Report Share Posted October 7, 2006 Man tāpat nav skaidrs, ko tu gribi panākt, bet nu varbūt ar JavaScript mēģini. Link to comment Share on other sites More sharing options...
IM24LV Posted October 7, 2006 Author Report Share Posted October 7, 2006 pff nu gruuti atradu ko liidziigu. http://www.cssplay.co.uk/menus/ndlrt.html#nogo nu pashaa apakshaa tadf kad tu uzspied un taa zilaa kraasa paliek! man taa vajaga bet tikai lai taa kraasa paliktu nevis uz #nogo linkiem bet gan normaaliem linkiem! Link to comment Share on other sites More sharing options...
bubu Posted October 7, 2006 Report Share Posted October 7, 2006 Tur ir izmantoti parasti :active un :focus . Uzspied uz linka, un pamēģini Tab nospiest. A ja vajag normāliem linkiem, tad taču novāc # un uztaisi visiem a elementiem to stilu. Link to comment Share on other sites More sharing options...
IM24LV Posted October 7, 2006 Author Report Share Posted October 7, 2006 (edited) jaa, es ar to ieveeroju ka kad uzspiezh kaadaa citaa vieta lapai tad pazuud zilais! bet vajaga taa lai nepazustu! un kaa to panaakt? visited tak neder! Edited October 7, 2006 by IM24LV Link to comment Share on other sites More sharing options...
bubu Posted October 7, 2006 Report Share Posted October 7, 2006 JavaScript. Link to comment Share on other sites More sharing options...
Recommended Posts