Click to See Complete Forum and Search --> : Scrolling or jumping to HMTL anchors <a name>


selowitch
07-12-2003, 02:58 PM
Hi, all.

Some help to a befuddled newbie, if you please.

I want certain entries on my list to (when clicked) trigger a jump to an anchor on my thumbnails table, e.g.,

http://www.barridoff.com/#durand_sun

But doing it in HTML takes way too long; you have to wait until the entire page is loaded. So, I'd prefer to do this in JS, using say a ScrollToAnchor function. But I have no idea how to do this.

Thanks.

Charles
07-12-2003, 03:01 PM
Using JavaScript

1) the page will still have to load all the way;

2) the page will not work for the 13% of users who do not use JavaScript.

selowitch
07-12-2003, 03:13 PM
Originally posted by Charles
Using JavaScript

1) the page will still have to load all the way;

2) the page will not work for the 13% of users who do not use JavaScript.

I can more happily accept #2 than #1. Suppose I took a different approach, say by counting the number of table rows first and making a calculation based on that. Surely there must be some way to scroll the window before all of the images (not the code for the page, but just the images) have loaded, no?

Charles
07-12-2003, 03:46 PM
Specify the height and width of the images in the IMG tag. See http://www.w3.org/TR/html4/struct/objects.html#edef-IMG.

selowitch
07-12-2003, 05:18 PM
Originally posted by Charles
Specify the height and width of the images in the IMG tag. See http://www.w3.org/TR/html4/struct/objects.html#edef-IMG.

I do this already, if you look at the code:

http://www.barridoff.com/#albright

and below that point.

How does this pertain to my problem and proposed solution?

-Sam