Welcome to TalkGraphics.com
Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1

    Default Automatic Go-To-Top-Of-Page HTML?

    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!

  2. #2
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,546

    Default Re: Automatic Go-To-Top-Of-Page HTML?

    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.

  3. #3

    Default Re: Automatic Go-To-Top-Of-Page HTML?

    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.

  4. #4

    Default Re: Automatic Go-To-Top-Of-Page HTML?

    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>

  5. #5
    Join Date
    Jun 2011
    Posts
    11

    Default Re: Automatic Go-To-Top-Of-Page HTML?

    No ideas as to how to do this automatically?

  6. #6
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,546

    Default Re: Automatic Go-To-Top-Of-Page HTML?

    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.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	embed.png 
Views:	233 
Size:	14.5 KB 
ID:	83851  

  7. #7

    Default Re: Automatic Go-To-Top-Of-Page HTML?

    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).

  8. #8
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,546

    Default Re: Automatic Go-To-Top-Of-Page HTML?

    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.

  9. #9
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,546

    Default Re: Automatic Go-To-Top-Of-Page HTML?

    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.
    Attached Files Attached Files

  10. #10

    Default Re: Automatic Go-To-Top-Of-Page HTML?

    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

Posting Permissions

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