navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Pop Up Window Images Load Too Slowly

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Design >> Web Graphics >> Pop Up Window Images Load Too Slowly
Page: [1]
 
Dealer58

 

Posts: 174
From: New York (was in Germany)
Status: offline

 
Pop Up Window Images Load Too Slowly - 3/2/2002 0:28:08   
Hi Gang!

I have a pop up window with 14 images in a slideshww that take too long to load.

Here is the link to the page that opens the pop up window.

www.maranelloautosales.com/test1.htm

Here is the code of the slideshow

<script language="JavaScript">

var Slides = new Array('http://www.maranelloautosales.com/images/2413/13b.jpg',
'http://www.maranelloautosales.com/images/2413/1b.jpg',
'http://www.maranelloautosales.com/images/2413/2b.jpg',
'http://www.maranelloautosales.com/images/2413/3b.jpg',
'http://www.maranelloautosales.com/images/2413/4b.jpg',
'http://www.maranelloautosales.com/images/2413/5b.jpg',
'http://www.maranelloautosales.com/images/2413/6b.jpg',
'http://www.maranelloautosales.com/images/2413/7b.jpg',
'http://www.maranelloautosales.com/images/2413/8b.jpg',
'http://www.maranelloautosales.com/images/2413/9b.jpg',
'http://www.maranelloautosales.com/images/2413/10b.jpg',
'http://www.maranelloautosales.com/images/2413/11b.jpg',
'http://www.maranelloautosales.com/images/2413/12b.jpg',
'http://www.maranelloautosales.com/images/2413/14b.jpg');

// DO NOT EDIT BELOW THIS LINE!
function CacheImage(ImageSource) { // TURNS THE STRING INTO AN IMAGE OBJECT
var ImageObject = new Image();
ImageObject.src = ImageSource;
return ImageObject;
}

function ShowSlide(Direction) {
if (SlideReady) {
NextSlide = CurrentSlide + Direction;
// THIS WILL DISABLE THE BUTTONS (IE-ONLY)
document.SlideShow.Previous.disabled = (NextSlide == 0);
document.SlideShow.Next.disabled = (NextSlide ==
(Slides.length-1));
if ((NextSlide >= 0) && (NextSlide < Slides.length)) {
document.images['Screen'].src = Slides[NextSlide].src;
CurrentSlide = NextSlide++;
Message = 'Picture ' + (CurrentSlide+1) + ' of ' +
Slides.length;
self.defaultStatus = Message;
if (Direction == 1) CacheNextSlide();
}
return true;
}
}

function Download() {
if (Slides[NextSlide].complete) {
SlideReady = true;
self.defaultStatus = Message;
}
else setTimeout("Download()", 100); // CHECKS DOWNLOAD STATUS EVERY 100 MS
return true;
}

function CacheNextSlide() {
if ((NextSlide < Slides.length) && (typeof Slides[NextSlide] ==
'string'))
{ // ONLY CACHES THE IMAGES ONCE
SlideReady = false;
self.defaultStatus = 'Downloading next picture...';
Slides[NextSlide] = CacheImage(Slides[NextSlide]);
Download();
}
return true;
}

function StartSlideShow() {
CurrentSlide = -1;
Slides[0] = CacheImage(Slides[0]);
SlideReady = true;
ShowSlide(1);
}
</script>


Any Advice as to why the images load so slowly and when they do they load in segments.

Thanks in advance

Carlo
garry

 

Posts: 858
From: Northern Territory Outback Australia
Status: offline

 
RE: Pop Up Window Images Load Too Slowly - 3/2/2002 21:10:28   
Hi Carlo

Easy problem to fix.
Just reduce the size & quality of images to speed up the process.
I clocked one image at 170kb?? way too big for what you are trying to achieve.
Ideally you need to get them down to 15-30 kb.


Cheers from the Outback
Get your didgeridoos from http://www.didj-territory.com.au

(in reply to Dealer58)
Page:   [1]

All Forums >> Web Design >> Web Graphics >> Pop Up Window Images Load Too Slowly
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts