WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts



WeLoveCSS > WEB DESIGN > Browser Compatibility > how is this page preventing scrolling?

Reply
  Thread Tools Display Modes
Old 28th April 13, 07:09 PM   #1
Noitidart
WLC Member
 
Join Date: Sep 2012
Posts: 24
Default how is this page preventing scrolling?

hi all here's an article on chicago tribune:
http://www.chicagotribune.com/sports...,2349780.story

it's preventing any scrolling, how is it doing this?

in firefox i opened the scratchpad and set everything to overflow:auto, the scroll bars appeared but i couldnt scroll. (i also remove the overlay divs)

Code:
var allEl = document.querySelectorAll('*');
[].forEach.call(allEl, function(el) {
  el.style.overflow = 'auto';
});

var coverUps = document.querySelectorAll('div[class*=dialog-]');
[].forEach.call(coverUps, function(c, i) {
  c.parentNode.removeChild(c);
});
thanks
Noitidart is offline   Reply With Quote
Old 29th April 13, 12:03 AM   #2
meesa
WLC Mod
 
meesa's Avatar
 
Join Date: Jul 2009
Location: Milky Way Galaxy
Posts: 3,709
Default Re: how is this page preventing scrolling?

It's not that you can't, it's just immediately brining it back to the top with some kind of script. Grab the slider and you'll see it will scroll and jump right back up.
__________________
Praise be to the Lord God for the ability to learn, the capability to analyze, and the time to help users on this forum.
meesa is offline   Reply With Quote
Old 29th April 13, 12:31 AM   #3
Noitidart
WLC Member
 
Join Date: Sep 2012
Posts: 24
Default Re: how is this page preventing scrolling?

Quote:
Originally Posted by meesa View Post
It's not that you can't, it's just immediately brining it back to the top with some kind of script. Grab the slider and you'll see it will scroll and jump right back up.
Oh wow! Thanks meesa! You're right! I just deactivated javascript and it loaded perfectly fine!! Thanks again!!
Noitidart is offline   Reply With Quote
Reply


Thread Tools
Display Modes
Linear Mode Linear Mode

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:12 PM.



Home | Advertise | Contact Us | Top
Home | Advertise | Contact Us | Top

Copyrightę 2006 WeLoveCSS.com. All Rights Reserved.
Powered by vBulletin Version 3.8.4 Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.