Sasa Posted June 10, 2006 Report Posted June 10, 2006 Sakiet luudzu kaa izskataas kods kas uz mousover funkcijas aizvieto bildi nr 1 par bildi nr 2. atradu vienu teemu bet tur bija par laiak aiztureem bet par kodu ka panaakt to ko man vajag nav.
bubu Posted June 10, 2006 Report Posted June 10, 2006 <img src="urlis1.jpg" onmouseover="this.src='urlis2.jpg'" onmouseout="this.src='urlis1.jpg'"/>
Sasa Posted June 11, 2006 Author Report Posted June 11, 2006 tagad radies cits jautaajums, vai var sataisiit ar JS mouseover funkciju taa, lai bilde paraadaasa paari visam tekstam, respektiivi lai neparaadaas tani pashaa vietaa un, lai neizstiepj visu tabulu?
v3rb0 Posted June 11, 2006 Report Posted June 11, 2006 onmouseover="this.src='urlis2.jpg'; this.style.position='absolute'; this.style.width='100%'; this.style.height='100%';"
Sasa Posted June 11, 2006 Author Report Posted June 11, 2006 kaut kas tomer nesanaak. <script LANGUAGE="JavaScript"> <!-- <img src="mel_1.gif" onmouseover="this.src='mel_2.gif'; this.style.position='absolute'; this.style.width='100%'; this.style.height='100%';"> //--> </SCRIPT> nevaru saprast kaa likt tai funkcijai darbotes uz kaadas bildes!
bubu Posted June 11, 2006 Report Posted June 11, 2006 Kā tu domā <img src="asdasd"> ir javaskripts vai html? Kopš kuriem laikiem html tagi jāliek javascript kodā?
Sasa Posted June 11, 2006 Author Report Posted June 11, 2006 tagad bildes nomainja stradaa, bet negrib straadaat onmouseover="src='mel_2.gif'; style.position='absolute'; tieshi tas position='absolute' ... kas ir nepareizi?
bubu Posted June 11, 2006 Report Posted June 11, 2006 Atrodi atsķirību: onmouseover="src='mel_2.gif'; style.position='absolute'; un onmouseover="this.src='urlis2.jpg'; this.style.position='absolute'; this.style.width='100%'; this.style.height='100%';"
Sasa Posted June 11, 2006 Author Report Posted June 11, 2006 (edited) itkaa sanaaca kaa gribeejas bet man pazuud taa apaksheejaa bilde, kad es uz taas uzbraucu ar peli un paraadaas jaunaa, veel vajadzeetu panaakt to ka lai taa pirmaa bile paliktu uz vietas, bet tikai paraadiitos jaunaa bilde monitora viduu ... kaa kaut ko taadu panaakt nekaadi nevaru sadomaat edit: ideja taada ka zam taas bildes kas nomaniaas zem citas pakaartot taadu pashu bildi, taadejaadi panaakot to ka paraadaas jaunaa, bet veel joprojaam ir pirmaa bilde kura bija pasleepusies zem nomainoshaas bildes tiešām neviens nezin kaa atstaat iepriekšējo bildi un paraadit jauno bildi!? Edit 13/06/06: jautaajums kaa var panaakt taa lai uz onmouseover paraadiitos jaunaa bilde bet arii paliktu vecaa? Visaadi meeginaaju nekas negribeeja straadaat . Edited June 13, 2006 by Sasa
Recommended Posts