Hey everyone,
Would anyone happen to know some HTML that would bring the viewer to the top of the page as soon as it's loaded?
Reason being is that a page I'm working has multiple full page size layers.
Thanks!
Hey everyone,
Would anyone happen to know some HTML that would bring the viewer to the top of the page as soon as it's loaded?
Reason being is that a page I'm working has multiple full page size layers.
Thanks!
When the page loads it should automatically load at the top.
You can add a Top of Page link to reload the page by adding a # (pound sign) in the Web Address URL text entry box.
Gary W. Priester
Mr. Moderator Emeritus Dude, Sir
gwpriester.com | eyetricks-3d-stereograms.com | eyeTricks on Facebook | eyeTricks on YouTube | eyeTricks on Instagram
Right, but the page I wish to use this on is a single web page with ~25 full page layers. So yes when a new page is loaded it does go to the top but not when new layers are loaded.
Bump
I've come up with this code put making it a place holder and placing it on the page that should be scrolled to the top of does not seem to work?
Code:<script type="text/javascript"><!-- window.onload = function() { scrollTo(0,0); } // --> </script>
No ideas as to how to do this automatically?
Well if it works you can add the script to the Website HTML code (HEAD) or HTML code (BODY) and it will apply to all pages on your website.
But I am still not clear on what it is you hope to accomplish.
Please explain in more detail, or better still, provide a link to a sample page that demonstrates the problem that you are experiencing.
Call me dense, but I am not following this at all.
Gary W. Priester
Mr. Moderator Emeritus Dude, Sir
gwpriester.com | eyetricks-3d-stereograms.com | eyeTricks on Facebook | eyeTricks on YouTube | eyeTricks on Instagram
No problem, Sorry I'm not the best at explaining things.
I uploaded to a sub domain here >> http://test.tinyentertainment.biz/music.htm
If you go there, scroll down into the "Songs" list.
When there click a title of a song, you will then be brought to the main popup window of that song, which when the site is complete will contain lyrics of that song, etc.
You will see what I am talking about then. After clicking the song title, because it brings up a popup layer the page scroll stays at the same position, which can be confusing or strange if there is nothing there (Like the very bottom song).
The only solution I can think of is put the song lyrics on separate pages and perhaps use a sub menu to access them. But this might not be what you want.
Let me see if I can find someone who can answer this question. Stand by.
Gary W. Priester
Mr. Moderator Emeritus Dude, Sir
gwpriester.com | eyetricks-3d-stereograms.com | eyeTricks on Facebook | eyeTricks on YouTube | eyeTricks on Instagram
I got this response and sample from a knowledgeable member who prefers to cloak him/herself in secrecy:
Well, layers aren't pages so you can't have an anchor to go to the top.
Look at the source for a page with 25 layers and you'll just see one really long page of HTML.
And the link for a pop-up layer isn't a regular HTML url, it's javascript - so I have no idea (covoxer might have a better idea).
The best I can suggest off the top of my head is an anchor at the top of the pop-up layer and a link to jump to it.
See attached.
Gary W. Priester
Mr. Moderator Emeritus Dude, Sir
gwpriester.com | eyetricks-3d-stereograms.com | eyeTricks on Facebook | eyeTricks on YouTube | eyeTricks on Instagram
Alright, so I guess what I want to do is impossible
Now how about this,
How would I go about making one of the things that are on the side of the screen and move with the scroll of the page keeping it always in the same place?
An example can be found here >> http://lionheartsl.com/
And if I can make one of those, would I be able to link it to an anchor and make it a "Top of Page" link?
Only reason I would like to do that is because the screen doesn't always end up on the bottom so putting a "Top of Page" link wouldn't do much.
Bookmarks