This is a follow-on from a previously raised thread here:
but the problem has moved on so much that the original title would have been misleading.
My problem:
This site ( is a promotion site for a book. The site graphic is basically the book cover's design (see sgbig.css). So far so good, except that it scrolls on screens less than 800px tall, which is happening more and more, given tablets, netbooks, and such. So I've created a smaller version (sgsmall.cs) and have put in a js call (detect.js) which successfully changes the css file based on the screen size.
This works well enoungh (see but there is a sized peice of js embedded in the html file on some pages (including glyre.html) which needs to change size based on detecting screen size. So I've added
include('scrollsmall.js');
Problem is, it doesn't work. What seems to happen (is the screen size IS bigger than 800) seems to be the larger size from the css file, but with the smaller graphic in it, and no scrolling.
I'm sure this is a simple error, but I'm newish to js, and need a bit of hand-holding. It's just that the site needs to look good, and a bit flashy.
Thanks in advance, guys.
This place is fantastic.
G
but the problem has moved on so much that the original title would have been misleading.
My problem:
This site ( is a promotion site for a book. The site graphic is basically the book cover's design (see sgbig.css). So far so good, except that it scrolls on screens less than 800px tall, which is happening more and more, given tablets, netbooks, and such. So I've created a smaller version (sgsmall.cs) and have put in a js call (detect.js) which successfully changes the css file based on the screen size.
This works well enoungh (see but there is a sized peice of js embedded in the html file on some pages (including glyre.html) which needs to change size based on detecting screen size. So I've added
include('scrollsmall.js');
Problem is, it doesn't work. What seems to happen (is the screen size IS bigger than 800) seems to be the larger size from the css file, but with the smaller graphic in it, and no scrolling.
I'm sure this is a simple error, but I'm newish to js, and need a bit of hand-holding. It's just that the site needs to look good, and a bit flashy.
Thanks in advance, guys.
This place is fantastic.
G