SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Zealot
    Join Date
    Aug 2010
    Posts
    143
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Vertical strange scroll

    Hello,

    On my website at http://aupresent.thalasoft.com when clicking on a link to go to a page, like for example this one http://aupresent.thalasoft.com/page/10 although it is the case for any page, the scroll goes down big time.

    Any clue ?

    Stephane

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,316
    Mentioned
    460 Post(s)
    Tagged
    8 Thread(s)
    It's not really clear what you are asking here. You have a very long sidebar, so the page will be at least as tall as that. So if the sidebar is a lot taller than the content, there will be a lot of white space under the content. Is that what you mean?

  3. #3
    SitePoint Zealot
    Join Date
    Aug 2010
    Posts
    143
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello,

    Sorry for the lack of clearness then. I understand that the page is long. But why does the browser have to scroll down by itself on page load ? It happens if you go to a page after landing at the website. Like the one page link I gave for example. I would like the browser to display the page but not do any scroll down by itself right after the page has load.

    Thanks

    Stephane

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,316
    Mentioned
    460 Post(s)
    Tagged
    8 Thread(s)
    O, sorry, I see what you mean. Yes, it is definitely JavaScript doing that (as it doesn't happen with JS turned off). I'm afraid I can't see what's causing it, but hopefully someone else can.

  5. #5
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    It seems to be this line that's causing the trouble.

    Code javascript:
    document.form1.verbe.focus();
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  6. #6
    SitePoint Zealot
    Join Date
    Aug 2010
    Posts
    143
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Spot on Paul ! Yes indeed, there is a focus here.. I shall turn it off then.
    Thanks !


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
  •