Click to See Complete Forum and Search --> : Help with Netscape issues, moving images and slideshow scripts
mplutodh1
05-30-2003, 04:30 PM
Can anyone help me fix these? I am reading up on the DOM but I am still learning it. The problem I am facing is that the intro page works fine in IE but not in netscape, it needs to function in 4.x and newer NS browsers. Preferably in the simplest way possible so I can understand it. Also, the slideshow was working fine in IE but I made a few changes that were suggested to me and now its not functioning properly. I need it to work in IE and NS just like the intro page. Any help would be greatly appreciated.
http://www.ac.wwu.edu/~pludem/cs202/project2003/page4.html
http://www.ac.wwu.edu/~pludem/cs202/project2003/intro.htm
Thanks!
mplutodh1
05-30-2003, 05:24 PM
Originally posted by Dave Clark
You're not going to get anything fancy to work in NS4. Is there an overriding reason you want to keep NS4 compatibility?
Dave
Well at the very least it needs to work in newer versions of NS, this is a project for CS class... and it must be compatible with both NS and IE but the prof hasnt specified what versions... so I was thinking NS4 would be best... but most difficult also unfortunately
mplutodh1
05-30-2003, 06:04 PM
Well on the slideshow, line 73 has an error, and it doesnt function in IE or NS... NS, the buttons dont even show up. The moving images, I would really like to find a way to get it so the images move in relation to the window size, like if i resize the window the images stay in the center and upper left corners, also, they dont move in NS, they just sit in the upper left corner.
mplutodh1
05-30-2003, 06:16 PM
well here is the script, ive tweaked it, it was working fine in IE, well it had an error but couldnt figure it out and now its not doing anything, so heres the code
<script language="javascript1.2">
var Photo = new Array()
Photo[0] = '1.jpg'
Photo[1] = '2.jpg'
Photo[2] = '3.jpg'
Photo[3] = '4.jpg'
Photo[4] = '5.jpg'
var t;
var j = 0;
var p = Photo.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Photo[i];
}
function foward() {
if(x<Photo.length) x++;
if(x==Photo.length) x=0;
document.images.SlideShow.src = Photo[x];
}
function backward() {
if(x==0) x=Photo.length;
if(x>0) x--;
document.images.SlideShow.src = Photo[x];
}
</script>
mplutodh1
05-30-2003, 06:47 PM
fixed that but now its on line 33... this is the line it says is an error:
if(x<Photo.length) x++;
oh and found one on 38 when you go backwards:
if(x==0) x=Photo.length;
mplutodh1
05-31-2003, 11:40 AM
Originally posted by Dave Clark
What is the error message?
Dave
Well unfortunately the computer that all of my work is on has decided to crash on me, I am working on that, but in the mean time I am using a different computer. I am not sure what the error message is actually. I hope to have my main computer up and working by the end of the weekend. I pretty much need to get all this stuff done by Sunday evening. Any help you can give in the mean time would be great, seems like im fighting a never ending battle with CRAPPY luck! Thanks
khalidali63
05-31-2003, 12:30 PM
I thought I'd help you with this...however,I found out that the images you are trying to preload are not found at the url.
Believe me its very important to have images present in the folder if you want to use them for display..:p
khalidali63
05-31-2003, 12:42 PM
Well once you have all the images in the folder where you have other html pages...the code below will work.I have tested it with both NS6+ and IE6+
<script language="javascript1.2">
var Photo = new Array()
Photo[0] = '1.jpg'
Photo[1] = '2.jpg'
Photo[2] = '3.jpg'
Photo[3] = '4.jpg'
Photo[4] = '5.jpg'
var t;
var x=0;
var j = 0;
var p = Photo.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Photo[i];
}
function forward() {
if(x<Photo.length) x++;
if(x==Photo.length) x=0;
document.images.SlideShow.src = preLoad[x].src;
}
function backward() {
if(x==0) x=Photo.length;
if(x>0) x--;
document.images.SlideShow.src = preLoad[x].src;
}
</script>
mplutodh1
06-01-2003, 07:53 PM
Sweet thanks, it works, does it work in NS 4 though? I am not able to check it because my computer is still royaly F'd up.
http://www.ac.wwu.edu/~pludem/cs202/project2003/page4.html