andre Posted December 27, 2005 Report Share Posted December 27, 2005 vai vairiet ieteikt kaa var lietot ko liidziigu lai nenumureetu bildes ar ID un NAME, bet vienkaarshi onclick="komanda(this.src)" . zem mircosoftiskaa explorera komanda sanem vienkaarshi this src dalu, bet zem mozillas negrib ://// Link to comment Share on other sites More sharing options...
Analgiins Posted December 27, 2005 Report Share Posted December 27, 2005 gruuti pateikt, kas pa vainu, jo nav redzams kods, bet to vareetu labot, rakstot nevis onclick="komanda(this.src)", bet gan onclick="komanda(this)" un peec tam funkcijaa izmantot padotaa objekta parametrus: function komanda(obj) { var source = obj.src; ... } Link to comment Share on other sites More sharing options...
andre Posted December 27, 2005 Author Report Share Posted December 27, 2005 shitaa nesanaak... kods ir shitaads : <td><img onclick="return copy_clip(this.src)" border="0" src="46.gif" width="66" height="56"></td> copy_clip vienkaasrhi iekopee clipboardaa tekstu. ja uzliek copy_clip('bla bla bla') tad viss notiek zem mozillas, bet ar this.src nekaa negrbi kopeet. Link to comment Share on other sites More sharing options...
php_Stopp Posted December 27, 2005 Report Share Posted December 27, 2005 a nafig tas return ? to jau iekš funkcijas.. Link to comment Share on other sites More sharing options...
v3rb0 Posted December 27, 2005 Report Share Posted December 27, 2005 <script type="text/javascript"> function copy_clip() { alert(arguments[0]); } </script> <img src="http://www.google.lv/images/logo_sm.gif" onclick="return copy_clip(this.src)"> it kā izpildās uz visam mozilām kas te man ir, ka tik vaina nav iekš copy_clip. Link to comment Share on other sites More sharing options...
Recommended Posts