473,499 Members | 1,510 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

looking for JS slideshow viewer

I am trying to learn JS by studying existing codes. I have figured out
(for the most part) how to use buttons to cycle through the images.
The problem I'm having is (most importantly) I don't want all of the
images to be preloaded. I'm running a slideshow (actually, I guess
it'd be called a picture viewer) with over 30 somewhat large pictures.
On a dialup connection, it takes FOREVER to load.

Also, if possible, can JS autosize an image on the fly keeping aspect
ratio?

Thanks for your help.

---
Derek Tombrello
Shelby TV Service

http://ShelbyTV.resourcez.com
mr******@bellsouth.net

Jul 20 '05 #1
1 1916
"niNjaTaz" <Da********@large.cum> wrote in message
news:e7********************************@4ax.com...
I am trying to learn JS by studying existing codes. I have figured out
(for the most part) how to use buttons to cycle through the images.
Mine do an auto show with manual override.
The problem I'm having is (most importantly) I don't want all of the
images to be preloaded. I'm running a slideshow (actually, I guess
it'd be called a picture viewer) with over 30 somewhat large pictures.
My site has some shows/folders with 100+ pics, I did recently use a
different jpg compression that shrunk the image size 80% for much faster
downloads while still looking good (before zooming anyway!)

On a dialup connection, it takes FOREVER to load.
Check my site for a few slide shows, the latest one preloads each "next"
pic in advance, just one at a time.

Also, if possible, can JS autosize an image
on the fly keeping aspect ratio?


Mine come through as they are, all different sizes. I did write some
code once that loaded a pic, then used the onLoad event to get the width and
height (you have to wait to get a reliable size!), then do some math to
compute the longest axis, divide that into the screen/window size, then
compute a scaling zoom factor that would adjust the pic size while keeping
aspect the same. I didn't like it because the zoom is a bit slow on some
machines, and the image quality suffers if there is too much zoom, but it is
definitely doable.

zin
-- http://www.zintel.com
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
4543
by: TonyJeffs | last post by:
I want to create a web-based slideshow where it'll hunt through all the jpg files I put in a folder, irrespective of name or how many, and cycle through them, one by one. This would mean that...
2
3980
by: Susanna | last post by:
Hi all, I'm using the following slideshow script that I found on the web to display changing images with a crossfade effect. Eventually I will be adding many more images to the slideshow. The...
2
2084
by: Jeannie | last post by:
I have a popup window which is a slideshow of about 7 images. When the popup window loads, the first image is present and then the viewer can select next or previous to scroll through the rest of...
8
2013
by: drillbit_99 | last post by:
I have an HTML page of thumbnail images. Each image can begin a slideshow of the images on the page by clicking on the image. This opens another HTML page that begins the slideshow using large...
11
2387
by: David Graham | last post by:
Hi New to javascript. I'm trying to understand how a script at a website I come across works. http://www.BRPPISAFETY.COM Nearly got it but I have changed the variable called 'crossFadeDuration'...
1
2124
by: John Henckel | last post by:
This is the simplest, quickest, dirtiest, leanest, meanest, thumbnail/slideshow image viewer PHP script I have ever seen. Enjoy, John --------- CUT HERE ------------------- <?php
1
3333
by: ttamilvanan81 | last post by:
Hai everyone, I need to provide the slideshow for the images. I have upload the images into database. Then i will retrive all the images from the database and provide the slideshow for those...
2
3122
pradeepjain
by: pradeepjain | last post by:
script> // (C) 2000 www.CodeLifter.com // http://www.codelifter.com // Free for all users, but leave in this header // NS4-6,IE4-6 // Fade effect only in IE; degrades gracefully //...
0
7171
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7220
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7386
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4599
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3098
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3090
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
664
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
295
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.