This example shows and hides layers that are all initially set to the same top and left positions. As you scroll down the page and click on links, the layers show at the same relative window location, the top position being adjusted according to the amount of scroll.
Two variables need to be set: orig_x and orig_y equal to the original top and left positions. Put the id of your first layer in the onload handler.
Works great for a long list of links. Your users won't have to scroll up and down, and the code is still fairly simple.
Content for layer 4 here.
Content for layer 5 here.
Content for layer 6 goes here.
Put any type of content you wish in your layers.
Content for layer 8 here.
This example shows and hides layers that are all initially set to the sametop and left positions. As you scroll down the page and click on links, the layers show at the same relative window location, the top position being adjusted according to the amount of scroll. |