Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2004
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question question about swaping images

    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>

    Craig
    Attached Files Attached Files

  • #2
    Regular Coder
    Join Date
    Nov 2002
    Location
    Carmel California
    Posts
    471
    Thanks
    0
    Thanked 1 Time in 1 Post
    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.
    Kris Hubby
    kwhubby site


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •