473,387 Members | 1,502 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Works with Netscape; not IE

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
10 1602
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
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
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
"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
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
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
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
"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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Marco | last post by:
I made an html-page with this line in it: <A HREF="http://www.bla.com" onClick="javascript:window.close()" target="moeder">link</A> It works very well in Internet Explorer, but in Netscape 7...
15
by: Peter Bremer | last post by:
Hi all, I've written this little piece of code, which doesn't seem to work in Mozilla 1.5. I haven't tried it on other Gecko browsers, but I've found some indication that Netscape 6+ has the...
2
by: Dom | last post by:
Hi, I am trying to get a dynamic table going. You click a button to add a row. In the newly created row a button to delete the row is placed (try the code example below). In Netscape, pressing...
2
by: Kevin Ly | last post by:
Consider the test case below. The onmouseout event does NOT fire when my mouse/cusor is moved off the left side of the browser. It does if it is moved off the top, bottom, and the right side that...
13
by: Julia Peterwitz | last post by:
I have a function that works with explorer but not with netscape. The problem is the function at line 5. 1 fSetSelectedDay(myElement){ 2 /* 3 ... 4 */ 5 var elementText =...
1
by: Randy Weber | last post by:
I have a page with two frames, 'header' and 'main'. The following code works in Netscape, but in Internet Explorer. The second bgColor line produces an error: function test(){...
5
by: zaw | last post by:
Hi I am working on implementing this script to shopping cart. Basically, it copies fill the shipping address from billing automatically. I believe one or more syntax is not netscape compatible....
4
by: Nathan Sokalski | last post by:
I was testing out a page of mine that displays the information from Page.Request.Browser. It works exactly as I expected in Internet Explorer and Netscape 4.75 (I didn't expect much in Netscape...
28
by: entfred | last post by:
I have the following line of html: &nbsp;&nbsp1234&nbsp;&nbsp;&nbsp;&nbsp;&nbspabc&nbsp;&nbsp;&nbspyow In Internet Explorer 6.0, the columns look ok using the above html: 1234 abcd ...
7
by: Joe | last post by:
I've been playing around with atlas for hte past couple days and its very impressive. However the standard browser here is Netscape, specifically: Netscape 7.02 Mozilla/5.0 (Windows; U; Windows NT...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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
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...

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.