المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Image Preload



bahattab
04-03-2008, 10:21 AM
Image Preload
Preloading your mouseover images allows for a much quicker response time when a user first mouses over your image. The image below should change rapidly when you mouseover it....

http://www.atyafonline.com/vb/imgcache/596.png (http://javascript%3Cb%3E%3C/b%3E:void%280%29)




Dave's Image Preload



Include entire path: eg images/car.gif. Do not use quotation marks..They will be added by the program. To add additional images, just follow the format of the completed program. Place the completed script in between the head tags. Also, add the onload command into your body tag.





<script language="javascript">
<!--
var myimages=new Array()
function preloadimages(){
for (i=0;i<preloadimages.arguments.length;i++){
myimages[i]=new Image()
myimages[i].src=preloadimages.arguments[i]
}
}
preloadimages("images/car01.gif","images/car02.gif","images/car03gif","images/car04.gif");
//--></script>
<body onload="preloadimages()">
http://www.globalrph.com/davescripts/preload.htm

http://www.globalrph.com/davescripts/