Re: anchor tag problem

Discussion in 'HTML' started by dorayme, Jul 8, 2008.

  1. dorayme

    dorayme Guest

    In article <>,
    Eric <> wrote:

    > I have a page where if a user clicks on a link it jumps to near the end of
    > another page. The target page contains a lot of images. The problem is that
    > when the images are loading the the browser tries to jump to the anchor tag
    > but at this point the page mostly contains the images text descriptions and
    > so its much shorter. The jump jumps to where the anchor tag is at this point
    > but when the images finish loading the correct spot is way down the page and
    > the user is left near the top somewhere. If i load the page a few times and
    > the images get cached it works ok.
    > How can i delay the jump until the page is fully loaded so it goes to the
    > correct spot?
    > Thanks
    > Eric


    Have you given widths and height to the images in the html?

    --
    dorayme
     
    dorayme, Jul 8, 2008
    #1
    1. Advertisements

  2. dorayme

    dorayme Guest

    In article <>,
    Eric <> wrote:

    > dorayme wrote:
    >
    > > Have you given widths and height to the images in the html?
    > >

    >
    > no i didnt, will that solve it?


    Do it and see. If you give such dims, the browser is given information
    to reserve space *quickly* and not have to wait for the images to
    download to base its decisions on how to layout the page; when the
    images finally load, they find pre-prepared comfy spots for themselves...

    --
    dorayme
     
    dorayme, Jul 8, 2008
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sunny

    Anchor <a name=... > tag

    Sunny, Jul 1, 2004, in forum: ASP .Net
    Replies:
    8
    Views:
    698
    Sunny
    Jul 2, 2004
  2. Jeff Jarrell
    Replies:
    0
    Views:
    627
    Jeff Jarrell
    Oct 26, 2005
  3. Replies:
    1
    Views:
    797
  4. shruds
    Replies:
    1
    Views:
    1,270
    John C. Bollinger
    Jan 27, 2006
  5. =?Utf-8?B?SmVmZlA=?=

    literal & chanracter in anchor tag name

    =?Utf-8?B?SmVmZlA=?=, Apr 24, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    645
    =?Utf-8?B?SmVmZlA=?=
    Apr 24, 2006
  6. Tristan Miller

    lang parameter in anchor tag

    Tristan Miller, Sep 26, 2003, in forum: HTML
    Replies:
    11
    Views:
    1,397
    Tristan Miller
    Sep 29, 2003
  7. eivind

    div tag and anchor tag

    eivind, Jan 5, 2004, in forum: Javascript
    Replies:
    1
    Views:
    272
    eivind
    Jan 15, 2004
  8. CES
    Replies:
    1
    Views:
    160
    BootNic
    Jul 23, 2005
Loading...