Southwind* Posted December 11, 2011 Report Share Posted December 11, 2011 (edited) var theImages = new Array() theImages[0] = 'img2/logo3.png' theImages[1] = 'img2/logo5.png' theImages[2] = 'img2/logo.png' theImages[3] = 'img2/logo2.png' theImages[4] = 'img2/logo6.png' theImages[5] = 'img2/logo8.png' theImages[5] = 'img2/logo10.png' var j = 0 var p = theImages.length; var preBuffer = new Array() for (i = 0; i < p; i++){ preBuffer[i] = new Image() preBuffer[i].src = theImages[i] } var whichImage = Math.round(Math.random()*(p-1)); function showImage(){ document.write('<img src="'+theImages[whichImage]+'"class=logo />'); } Man vajag lai ieladējot bildi viņa itkā lenām paradītos.. .hide();.fadeIn(3000); Edited December 11, 2011 by Southwind* Quote Link to comment Share on other sites More sharing options...
daGrevis Posted December 11, 2011 Report Share Posted December 11, 2011 Tev tur sintakses kļūda. P.S. Vai nu tu liec semikolus; vai nu tu neliec. Ir jāliek! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.