View Full Version : question about swaping images

05-29-2004, 12:45 AM
My problem is this, I have javascript on my gallery page now so that you click on a thumb and a larger image fades in to a determined spot to the right of the thumbs. This part is working fine, my question is can I have an image there in the beginning?

I mean when the page loads I have my thumbs to the left and just a big white space to the right which will eventually contain the larger image. This may not seem like an issue but when the page loads it looks different from all others and distroys my continuity.

I have attached the script in a txt file any help would great, thank you all to whomever looks at this.

opps... I did not include the text from the body of my HTML.

<div id="dynloadarea" style="width:400px;height:302px"></div>


05-31-2004, 10:53 AM
Well it is really difficult to tell you what to do without seeing ALL of the code, including all of the pages. But making the assumption that there are no other things going onload you could try putting this after the script tag:
window.onload = new function() { document.getElementById("loadarea").innerHTML=returnimgcode(dynimages[0]) }

"loadarea" is the element that the big image is being written to, I don't know what this is because I don't see anywhere in the code u pasted using the actual name of the element.