klavsr Posted November 9, 2008 Report Share Posted November 9, 2008 Kā lai piem. <td id="tabula"> tagam norāda style="" saturu ? Mēģināju šādi <a href="#" onClick="java script:getElementById('tabula').style='background-image(\'aaa.png\');';">BG bilde</a> bet nekā.. Paldies. Link to comment Share on other sites More sharing options...
Aleksejs Posted November 9, 2008 Report Share Posted November 9, 2008 (edited) onClick="getElementById('tabula').style.backgroundImage='aaa.png'; return false;" Kaut kā šitā ;) P.S. Iesaku izmantot FireBug - tur visi DOM elementi ir pieejami, ja kāds aizmirsies. P.P.S. Apskatījos, ka nevajag escapot pēdiņas. Edited November 9, 2008 by Aleksejs Link to comment Share on other sites More sharing options...
Grey_Wolf Posted November 9, 2008 Report Share Posted November 9, 2008 elements.kas.ipasiba=... elements--> tava gadiijumaa atrod peec id kas--> tavaa gadijumaa style ipasiiba --> tavaa gadijumaa background ... ------------------------ Link to comment Share on other sites More sharing options...
klavsr Posted November 9, 2008 Author Report Share Posted November 9, 2008 Viss izdevās! Paldies! Link to comment Share on other sites More sharing options...
Recommended Posts