Click to See Complete Forum and Search --> : Div tags, and Image loading...etc


N00b@work
May 4th, 2003, 03:22 PM
I'm currently creating a site with HTML, and JavaScript.

I was wondering if there are any browsers (NN, IE, etc) that do not handle <div> tags.


What is the AOL and compuserve browser compatible with?

its my understanding (which is very limited) that document.getElementById works with NN 6, IE 5.. but not IE 4+ or NN4.x ... is this true?



I'm trying to create a slideshow type deal for a site:

I have an IMG DIV, and a Text Div that will cycle thru 2 arrays (I know it can be done with 1, but I'm trying to keep things as simple stupid as possible).


I had it set up with a hidden div loading all the imges, then calling a function (ie ILoadedMyImage(i) and just incramenting the index till it reached the number of images I loaded...



like:

function ILoadedMyImage({
//23 images

if (x<23){
x++;
}else{
hide the loading page div.
show the image div and the text div.
RunSlideShow();
}


}// end funct




I want to be able to do this and have it be compatible with ALL browsers. Is there a better way to preload an array of images before a slideshow is ran?

is it better for some browsers to actually have a seperate page to run the slideshow on and instead of hiding and showing divs just window.location.href="SlideshowPage.html"; ?


I really do not want to create an animate image because I know there will be alot of changes and changing the values in an array is alot easier than messing with an animated gif.


I know I can easily get this to work and be compatible with all IE browsers, but this site is selling a product and the last thing I want to do is have a nonfunctional site for some gayOL user.

I would really appriciate a post or an email responce James_Mastri@hotmail.com.


Thanks in advance for your help.

Satishpp
May 5th, 2003, 01:14 PM
I was wondering if there are any browsers (NN, IE, etc) that do not handle <div> tags.

NS versions <6.0 donot support div tag.

its my understanding (which is very limited) that document.getElementById works with NN 6, IE 5.. but not IE 4+ or NN4.x ... is this true?

Very true


The souldtion to your problem is to write a script that first recognises the browser type and the uses either divs or layers. The link below gives and example, though it is for some different problem. You can check out the way in which the script determinse the browser and then performs actions

http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_20473711.html

Overall I would say that if the files are large, loading them all at the begining may take a lot of time. If you are really interested in keeping it simple and guaranteed to work on all browsers, create different pages for the images.

Satish