Associate
- Joined
- 15 Feb 2011
- Posts
- 11
Hi Guys
You actually helped me out some weeks ago with an issue over using the hash in a function to locate a named anchor.
I have another dilema sort of related to that issue.
Please see
http://simplydzine.com
All pages (excpet the index) have a number of horizontally scrolling divs which scroll left or right using jquery.
You'll notice a row of large buttons on each page below the main content block.
Below such buttons are vertical submenues.
My task is to have each item of the submenus locate the corresponding anchor/div when clicked.
If the submenus within the same page are clicked, all works fine, however when the submenus are clicked trying to get from one page to the corresponding div on another page it works but...
the browser won't stay at the top of the page, it moves down to locate the anchor sending the page head & logo out of view.
I have used the function window.scrollTo(0,0) which keeps everything steady in FF but in IE and Chrome it doesnt hold the browser to the top.
My question...
could any body offer a fix for IE or Chrome or tell me how I can keep the window at the top of the page in ALL 3 browsers when clicking on any of the submenu links?
Any help is MUCH appreciated.
THANKS
Steve
You actually helped me out some weeks ago with an issue over using the hash in a function to locate a named anchor.
I have another dilema sort of related to that issue.
Please see
http://simplydzine.com
All pages (excpet the index) have a number of horizontally scrolling divs which scroll left or right using jquery.
You'll notice a row of large buttons on each page below the main content block.
Below such buttons are vertical submenues.
My task is to have each item of the submenus locate the corresponding anchor/div when clicked.
If the submenus within the same page are clicked, all works fine, however when the submenus are clicked trying to get from one page to the corresponding div on another page it works but...
the browser won't stay at the top of the page, it moves down to locate the anchor sending the page head & logo out of view.
I have used the function window.scrollTo(0,0) which keeps everything steady in FF but in IE and Chrome it doesnt hold the browser to the top.
My question...
could any body offer a fix for IE or Chrome or tell me how I can keep the window at the top of the page in ALL 3 browsers when clicking on any of the submenu links?
Any help is MUCH appreciated.
THANKS
Steve