473,698 Members | 2,598 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1619
In article <g7************ ******@typhoon. sonic.net>, Todd Cary
<to**@aristesof tware.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**@aristesoft ware.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="JavaS cript">
<!--
var interval = 1500;
var random_display = 0;
var imageDir = "images/";
var imageNum = 0;imageArray = new Array();
imageArray[imageNum++] = new imageItem(image Dir + "dsc_5885.jpg") ;
imageArray[imageNum++] = new imageItem(image Dir + "dsc_5895.jpg") ;
imageArray[imageNum++] = new imageItem(image Dir + "dsc_5899.jpg") ;
imageArray[imageNum++] = new imageItem(image Dir + "dsc_5901.jpg") ;
imageArray[imageNum++] = new imageItem(image Dir + "dsc_5903.jpg") ;
imageArray[imageNum++] = new imageItem(image Dir + "dsc_5906.jpg") ;
imageArray[imageNum++] = new imageItem(image Dir + "dsc_5907.jpg") ;
imageArray[imageNum++] = new imageItem(image Dir + "dsc_5913.jpg") ;
imageArray[imageNum++] = new imageItem(image Dir + "dsc_5915.jpg") ;
imageArray[imageNum++] = new imageItem(image Dir + "dsc_5917.jpg") ;
imageArray[imageNum++] = new imageItem(image Dir + "dsc_5921.jpg") ;
imageArray[imageNum++] = new imageItem(image Dir + "dsc_5923.jpg") ;
imageArray[imageNum++] = new imageItem(image Dir + "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**@aristesof tware.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**@aristesof tware.com> wrote in message
news:GC******** **********@typh oon.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.getEle mentById('imgSh ow').width = arPictures[nID][3];
document.getEle mentById('imgSh ow').height = arPictures[nID][4];
document.getEle mentById('imgSh ow').src="image s/" + 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**@aristesof tware.com> wrote in message
news:GC******** **********@typh oon.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.getEle mentById('imgSh ow').width = arPictures[nID][3];
document.getEle mentById('imgSh ow').height = arPictures[nID][4];
document.getEle mentById('imgSh ow').src="image s/" + 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**@aristesof tware.com> wrote in message
news:GC******** **********@typh oon.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.getEle mentById('imgSh ow').width = arPictures[nID][3];
document.getEle mentById('imgSh ow').height = arPictures[nID][4];
document.getEle mentById('imgSh ow').src="image s/" + 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**@aristesof tware.com> wrote in message
news:GC******** **********@typh oon.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.getEle mentById('imgSh ow').width = arPictures[nID][3];
document.getEle mentById('imgSh ow').height = arPictures[nID][4];
document.getEle mentById('imgSh ow').src="image s/" + 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.getEle mentById(...) 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.getEl ementById)
{
var o = document.getEle mentBid(...);
if (o)
{
o.width = ...;
o.height = ...;
o.src = ...;
}
}

Third, user agents who support the document.getEle mentById(...)
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.image s)
{
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*********@we b.de> wrote in message
news:3F******** ******@PointedE ars.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*********@we b.de> wrote in message
news:3F******** ******@PointedE ars.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

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

Similar topics

4
2570
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 the url isn't opened in the moeder window. How come and how can I fix it so it works in Netscape too? Thanks in advance for any answers. Mrco
15
7288
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 same problem. Internet Explorer 6 and Opera 7 have no problems with it. <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN' 'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'> <script>document.write (window.history.length);</script>
2
3089
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 the delete row button crashes the browser. Why ? What is the correct way to do this ? I am stumped why this following code works in IE and Opera but crashes Netscape 7 (ie makes it disappear and try to send a bug report etc).
2
1886
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 HAS THE SCROLLBAR (does not if the right side does not have the scrollbar on). Also, if you move around each "this is a test" line, the onmouseout event fires. How odd? Fortunately, I can have logic to handle this. The big problem is why...
13
3791
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 = eval(myElement.children.innerText); 6 /*
1
1340
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(){ top.frames.header.document.bgColor='white'; //works fine top.frames.main.document.bgColor='white'; //fails } Thanks in advance.
5
1658
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. Can anyone point out which one it is and how to make it both netscape and MS browser compatible? I hope if I can make the script compatible for those two at extreme, it will probably work with most browser out there. As you would notice, this form...
4
1834
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 4.75, but I got some stuff). However, Netscape 7.1 gave me some strange stuff, including the following: 1. It gave the Version as 5.0 rather than 7.1, and the Type as Netscape5 2. ASP.NET did not send any CSS other than the constant part that I...
28
13195
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 yow But, in firefox, for same html, getting this:
7
1610
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 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 While everythign works great in Firefox and IE, absolutely nothing seems to work with netscape. Is there something I need to change in my browser caps to get it to work in netscape? I want to...
0
8609
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,...
0
8871
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7738
agi2029
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...
0
5861
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();...
0
4371
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...
0
4622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
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 we have to send another system
2
2335
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.