IM24LV Posted February 22, 2007 Report Share Posted February 22, 2007 Shodien saskaaros ar probleemu ka shitais kods: <a href="index.php" onMouseOver="document.links1.src='images/navigacija/1.2.png';" onMouseOut="document.links1.src='images/navigacija/1.1.png';"><img src="images/navigacija/1.1.png" border="0" name="links1"></a> nav valiids. Kā ielikt tos mouseover iekš css? :/ Link to comment Share on other sites More sharing options...
andrisp Posted February 22, 2007 Report Share Posted February 22, 2007 a { width: <bildes_x_izmers>; height: <bildes_y_izmers>; background-image: url('celjs uz bildi'); } a:hover { background-image: url('celjs uz hover bildi'); } Link to comment Share on other sites More sharing options...
IM24LV Posted February 22, 2007 Author Report Share Posted February 22, 2007 jā, tas ir, bet kā pareizi vajadzētu to width un heightrakstiit, jo ar parasto 110 px nesanaak :) Link to comment Share on other sites More sharing options...
andrisp Posted February 22, 2007 Report Share Posted February 22, 2007 (edited) Kā cik ? Nu tik cik tev bildīte liela. Sorry, sajaucos :), vajag arī display: block pielikt. Edited February 22, 2007 by andrisp Link to comment Share on other sites More sharing options...
IM24LV Posted February 22, 2007 Author Report Share Posted February 22, 2007 a tagad kaut arii ir pielikti izmeeri, vinsh to bildiiti izstiepj pa visu lapu garumaa a.navigacija1 { width: 118 px; height: 30 px; display: block; background-image: url('images/navigacija/1.1.png'); } a.navigacija1:hover { background-image: url('images/navigacija/1.2.png'); } Link to comment Share on other sites More sharing options...
andrisp Posted February 22, 2007 Report Share Posted February 22, 2007 neliec atstarpi pirms px. Btw, iesaku labāk izmantot sprite tehniku. http://www.google.lv/search?hl=lv&q=css+sprites Link to comment Share on other sites More sharing options...
IM24LV Posted February 22, 2007 Author Report Share Posted February 22, 2007 ok, taga tas kartiba, bet tagad atkal vinjas ir vienaz zem otras, nevis blakus, kaa vajadziigs :°| Link to comment Share on other sites More sharing options...
Paulinjsh Posted February 22, 2007 Report Share Posted February 22, 2007 float: left; Link to comment Share on other sites More sharing options...
IM24LV Posted February 22, 2007 Author Report Share Posted February 22, 2007 (edited) ok, paldies :) hmm, mozh kaads zin arii kodu kas vajadziigs lai vinsh taas mouseoveer bildes ielaadee uzreiz, nevis tik tad kad uzbraucu uz linka pogas? Edited February 25, 2007 by IM24LV Link to comment Share on other sites More sharing options...
Recommended Posts