By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,568 Members | 1,196 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,568 IT Pros & Developers. It's quick & easy.

Works with Netscape; not IE

P: n/a
This JavaScript slideshow works with Netwcape; not IE. Is there some
obvious that is missing?

http://209.204.172.137/slideshow/slideshow.html

Todd

Jul 20 '05 #1
Share this Question
Share on Google+
10 Replies


P: n/a
In article <g7******************@typhoon.sonic.net>, Todd Cary
<to**@aristesoftware.com> wrote:
http://209.204.172.137/slideshow/slideshow.html


I tried it with my IE but gave up due to the time it takes to begin.
Why do you preload all of your slides?

--
Dennis M. Marks
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 20 '05 #2

P: n/a
In article <g7******************@typhoon.sonic.net>,
to**@aristesoftware.com enlightened us with...
This JavaScript slideshow works with Netwcape; not IE. Is there some
obvious that is missing?

http://209.204.172.137/slideshow/slideshow.html

Todd


Jeez, takes a long time to load. And I have broadband...

Anyways, for some reason, the server dies with IE. I looked at the
source, and all I saw was this.

<html>
<head>
<title>Slide show</title>
<script language="JavaScript">
<!--
var interval = 1500;
var random_display = 0;
var imageDir = "images/";
var imageNum = 0;imageArray = new Array();
imageArray[imageNum++] = new imageItem(imageDir + "dsc_5885.jpg");
imageArray[imageNum++] = new imageItem(imageDir + "dsc_5895.jpg");
imageArray[imageNum++] = new imageItem(imageDir + "dsc_5899.jpg");
imageArray[imageNum++] = new imageItem(imageDir + "dsc_5901.jpg");
imageArray[imageNum++] = new imageItem(imageDir + "dsc_5903.jpg");
imageArray[imageNum++] = new imageItem(imageDir + "dsc_5906.jpg");
imageArray[imageNum++] = new imageItem(imageDir + "dsc_5907.jpg");
imageArray[imageNum++] = new imageItem(imageDir + "dsc_5913.jpg");
imageArray[imageNum++] = new imageItem(imageDir + "dsc_5915.jpg");
imageArray[imageNum++] = new imageItem(imageDir + "dsc_5917.jpg");
imageArray[imageNum++] = new imageItem(imageDir + "dsc_5921.jpg");
imageArray[imageNum++] = new imageItem(imageDir + "dsc_5923.jpg");
imageArray[imageNum++] = new imageItem(imageDir + "dsc_5928.jpg");
imageArray[imageNum++] = new imageItem(image

That's where it stops.
So, you might want to check your server configs and log files.

--
--
~kaeli~
He had a photographic memory that was never developed.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #3

P: n/a
Dennis -

I am very new to JavaScript, so I just copied some javaScript and made a
few mods. How can I get around the pre-loading? Any help you can lend
is greatly appreciated.

Todd

Dennis M. Marks wrote:
In article <g7******************@typhoon.sonic.net>, Todd Cary
<to**@aristesoftware.com> wrote:

http://209.204.172.137/slideshow/slideshow.html

I tried it with my IE but gave up due to the time it takes to begin.
Why do you preload all of your slides?


Jul 20 '05 #4

P: n/a
"Todd Cary" <to**@aristesoftware.com> wrote in message
news:GC******************@typhoon.sonic.net...
I am very new to JavaScript, so I just copied some javaScript and made a
few mods. How can I get around the pre-loading? Any help you can lend
is greatly appreciated.


Here's a little snippet from a page of mine...

function ShowPicture(nID)
{
document.getElementById('imgShow').width = arPictures[nID][3];
document.getElementById('imgShow').height = arPictures[nID][4];
document.getElementById('imgShow').src="images/" + arPictures[nID][1];
}

This loads the picture dynamically into the image when the user clicks on a
link that calls this function (inserted on load from element #2 in the
array). If all of your pictures are the same size you won't have to set the
image width/height. All that's preloaded is a javascript array with the
picture definitions (about 5-7k).

--
Frank Carr
jf****@msn.com
http://www15.brinkster.com/vbnotebook
Jul 20 '05 #5

P: n/a
Frank -

Would you have any sample code that I could look at so that I can
understand how to just store the location of the images rather than the
images themselves?

I got IE working...had to clear the cache and toggle the security settings.

Here is a smaller SlideShow, but it is still storing the image; not just
the location.

http://209.204.172.137/slideshow/slideshow_small.html
Todd

Frank Carr wrote:
"Todd Cary" <to**@aristesoftware.com> wrote in message
news:GC******************@typhoon.sonic.net...

I am very new to JavaScript, so I just copied some javaScript and made a
few mods. How can I get around the pre-loading? Any help you can lend
is greatly appreciated.

Here's a little snippet from a page of mine...

function ShowPicture(nID)
{
document.getElementById('imgShow').width = arPictures[nID][3];
document.getElementById('imgShow').height = arPictures[nID][4];
document.getElementById('imgShow').src="images/" + arPictures[nID][1];
}

This loads the picture dynamically into the image when the user clicks on a
link that calls this function (inserted on load from element #2 in the
array). If all of your pictures are the same size you won't have to set the
image width/height. All that's preloaded is a javascript array with the
picture definitions (about 5-7k).


Jul 20 '05 #6

P: n/a
I figured it out...

No caching of images now....

http://209.204.172.137/slideshow/slideshow_x.html

Todd

Frank Carr wrote:
"Todd Cary" <to**@aristesoftware.com> wrote in message
news:GC******************@typhoon.sonic.net...

I am very new to JavaScript, so I just copied some javaScript and made a
few mods. How can I get around the pre-loading? Any help you can lend
is greatly appreciated.

Here's a little snippet from a page of mine...

function ShowPicture(nID)
{
document.getElementById('imgShow').width = arPictures[nID][3];
document.getElementById('imgShow').height = arPictures[nID][4];
document.getElementById('imgShow').src="images/" + arPictures[nID][1];
}

This loads the picture dynamically into the image when the user clicks on a
link that calls this function (inserted on load from element #2 in the
array). If all of your pictures are the same size you won't have to set the
image width/height. All that's preloaded is a javascript array with the
picture definitions (about 5-7k).


Jul 20 '05 #7

P: n/a
Frank Carr wrote:
"Todd Cary" <to**@aristesoftware.com> wrote in message
news:GC******************@typhoon.sonic.net...


Please shorten your attribution. Omitting superfluous information
like the message-ID makes it only an attribution _line_ which eases
reading of discussions and makes it worse otherwise.
I am very new to JavaScript, so I just copied some javaScript and made a
few mods. How can I get around the pre-loading? Any help you can lend
is greatly appreciated.


Here's a little snippet from a page of mine...

function ShowPicture(nID)
{
document.getElementById('imgShow').width = arPictures[nID][3];
document.getElementById('imgShow').height = arPictures[nID][4];
document.getElementById('imgShow').src="images/" + arPictures[nID][1];
}


The above is highly inefficient, error-catching, bad style and thus
not to be recommended at all.

Zeroth, it is bad style since you directly refer to global variables
(`arPictures').

First, document.getElementById(...) is a method of the W3C-DOM.
You do not check for its support which is error-catching:

http://pointedears.de.vu/scripts/test/whatami

Second, it is more efficient to retrieve the reference once and
use it (several times) afterwards *if* it is _valid_:

if (document.getElementById)
{
var o = document.getElementBid(...);
if (o)
{
o.width = ...;
o.height = ...;
o.src = ...;
}
}

Third, user agents who support the document.getElementById(...)
method of W3C-DOM Level 2 also support its document.images[...]
collection and accessing it is even more efficient. More, the
collection is also backwards compatible as it is part of the
so-called "DOM Level 0" originating from Netscape Navigator 3.0
and Internet Explorer 3.0:

if (document.images)
{
var o = document.images[...];
if (o)
{
// ...
}
}

See

http://www.w3.org/TR/DOM-Level-2-HTML/

for details and consider (using) the source code of

http://pointedears.de.vu/scripts/test/hoverMe/

instead.
HTH

PointedEars
--
If you really think there's a bug [in MS Word] you should report a bug.
Maybe you're not using it properly. Have you ever considered that?

(Bill Gates in FOCUS no. 43, October 23, 1995, pages 206-212)
Jul 20 '05 #8

P: n/a
"Thomas 'PointedEars' Lahn" <Po*********@web.de> wrote in message
news:3F**************@PointedEars.de...
Please shorten your attribution.


After 1000's and 1000's of message posted in many newsgroups over many years
you're the first to mention anything like this. Hmmm.....is this group more
about nitpicking than actually helping people? Given your nasty little
response and others I've seen here, I guess so...My bad...
--
Frank Carr
jf****@msn.com
http://www15.brinkster.com/vbnotebook
Jul 20 '05 #9

P: n/a
Frank Carr wrote:
"Thomas 'PointedEars' Lahn" <Po*********@web.de> wrote in message
news:3F**************@PointedEars.de...
Please shorten your attribution.


After 1000's and 1000's of message posted in many newsgroups over many years
you're the first to mention anything like this. Hmmm.....is this group more
about nitpicking than actually helping people? Given your nasty little
response [...]


Obviously you have not read all of my posting or are too stupid to
understand it. Obviously you are not worth to receive more of my
advice. FOAD. *PLONK*
PointedEars
--
This is a development release of Freenet. This means that it isn't
supposed to work, so if it does, it is not doing what it is supposed
to do, and is therefore not working.
(from the Freenet 0.4.4 documentation <http://freenetproject.org/>)
Jul 20 '05 #10

P: n/a
JRS: In article <3F**************@PointedEars.de>, seen in
news:comp.lang.javascript, Thomas 'PointedEars' Lahn
<Po*********@web.de> posted at Sun, 14 Dec 2003 01:52:48 :-
Frank Carr wrote:
"Todd Cary" <to**@aristesoftware.com> wrote in message
news:GC******************@typhoon.sonic.net...


Please shorten your attribution. Omitting superfluous information
like the message-ID makes it only an attribution _line_ which eases
reading of discussions and makes it worse otherwise.


Ignore that - he is a wannabe Mussolini, and there is no such convention
in News. See below.

In subsequent handling, the body of a news article may be saved outside
News; it should be adequately self-descriptive.

Obviously, though, for consistent he should remove his pointed ears, and
remain content with the name apparently bestowed on him at birth.

--
John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 MIME
Web <URL:http://www.uwasa.fi/~ts/http/tsfaq.html> -> Timo Salmi: Usenet Q&A.
Web <URL:http://www.merlyn.demon.co.uk/news-use.htm> : about usage of News.
No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.
Jul 20 '05 #11

This discussion thread is closed

Replies have been disabled for this discussion.