Jump to content
php.lv forumi

js / Fadein / Logo


Southwind*

Recommended Posts

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 by Southwind*
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...