Ok
I am new to javascript but I know php alright. I took on a project that the guy has a javascript slideshow for his longhorn cattle and wanted to put the pedigrees under all the pics. So i made a external javascript that loads into the existing javascript with arrays and thought that i could just put the pedigrees in those arrays that was working fine untill I talked to him again and found out that he wanted it to look like the pdf files that he was sending me. That was 98 pdf files that i would have to write out in each array. So instead of writting out all those arrays I used a pdf to html converter. So to make a long storie short what I want to do is make the urls of the html files arrays, and load them in as the slide show pictures do. But I can not figgure out how to make it load a html file as the pictures already do. This is the code that loades in the pics and names
document.write("<script src='functions.JS'><\/script>");
function initSlideShow() // initialize the slideshow
{
makeSlideShow(); // populate g_slidesArray[] with slide objects
makePed_1(); //populate g_pedArray[] with slide objects
// display first slide title and slide URL in slideFrame frame
g_HTMLstring = "<H1>" + g_slidesArray[g_currSlideIndex].title + "</H1>";
g_HTMLstring += "<TABLE BORDER='5'><TR><TD>";
g_HTMLstring += "<IMG SRC='" + g_slidesArray[g_currSlideIndex].URL +"' ";
g_HTMLstring += "NAME='slideImage'></TD></TR></TABLE><br> <TABLE BORDER='0'><TR><TD><h1>" + g_pedArray[g_currPedIndex].ped + "</h1></TD></TR> </table>";
top.slideFrame.location.href = "slide.htm";
// display first slide text in textFrame frame
top.textFrame.location.href = "text.htm";
}
The last part is what i am needing to change to make it work but i do not know what to use. This is what I was kind of thinking but i am pretty clueless at this point
top.slideFrame.location.href = g_pedArray[slideIndex].ped
that does not work but is a idea, the .ped is the arrays from the functions.JS. I need to know how to load the html files as the pics do. I am sure it is really simple but I dont know were to go with it.
Any ideas would be greatly apreciated.
Thank you