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******@bellso uth.net 1 1933
"niNjaTaz" <Da********@lar ge.cum> wrote in message
news:e7******** *************** *********@4ax.c om... 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 whenever I have new pictures, I just upload
them, and they are automatically part of the slideshow merely by being
in the folder, without updating my code.
The problem, I think, is the security aspect of the web based utility
not having permission...
|
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 thing is, I ALSO have
to make it so the images will load randomly. I have looked at a
number of scripts for random-loading slideshows, but I have to find a
way to COMBINE this fading-image script (or, a different fading-image
script, if...
|
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 the images.
I'd like to use the same popup window at different points throughout
the website and have the Virtual Tour (slideshow) open up at the
appropriate photos. Meaning I'd like to control which picture the
popup window opens up to,...
|
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 images of
the thumbnails. When the slideshow begins it always starts with the
first image. I would like to pass the name of the thumbnail to the
slideshow HTML page and begin the slideshow with the same image the
user clicks on. Is this asking...
|
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'
to large numbers and small numbers but it doesn't seem to do anything. Could
someone explain what effect changing this variable should bring about and
why don't I see any changes.
many thanks
David
| |
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
|
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 images. I have try with the following jsp code.
<%@ page language="java" %>
<%@ page import="java.sql.*"%>
<%@ page import="java.sql.Connection.*"%>
<%@ page import="java.awt.image.*"%>
|
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
// =======================================
// set the following variables
// =======================================
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |