eBook authors eBook Software - create and publish your own ebooks
Create your own eBooks
Learn How To Create, Publish & Market E-Books
E-Book Creation Software
Add sophisticated multimedia to your E-Books
Create E-Book covers in minutes
E-Book Marketing & Promotion made easy
Search engine for E-Books
Interviews with eBook authors
Tools for building better eBooks
Archived Message:

wish list

ctimossi I have  a wish, an automatic detector for the screen resolution of the client computer. That is, depending on the screen resolution the e-book may open in diferent pages called for example 640.htm or 800.htm or 1024.htm
I did this in javascript but sometimes is slow and sometimes do not work well. May be somebody have a better script for me.
Thanks in advance


function onLoad(){

if (window.screen.width == "640"{
location.href = "640.htm"
else if (window.screen.width == "800" {
location.href = "800.htm"
else {
location.href = ("800.htm", "width=792, height=650,left=0, top=0"

(Edited by ctimossi at 9:07 pm on Jan. 11, 2001)

Posted on: 2:22 pm on January 11, 2001
EBookCompiler Welcome to the forum.

Great topic.  I'd love to hear more users' wish lists.

I realize that some people prefer not to say wishlists in a public forum, so if anybody reading prefers to send wishes private, you can e-mail me at webmaster@ebookcompiler.com

A great technique BTW  I've been using a similar technique on one of our web sites, for about 2 years.  Your version is a little different from my version.

What I did in mine was start off with the 640 version (which is actually the index page), and on that page redirect to the 800 version if the user's screen is big enough.  I did it this way because if the user has JavaScript disabled or whatever they still get the 640 version.  You could consider this.

I also *think* that I might have an idea for another solution.  Let me think about it, and do some experiments.

Posted on: 11:43 pm on January 11, 2001


List All Archived Forums

Copyright © 2000-2018, Answers 2000 Limited.

With any business, it is up to the individual owner of said business to ensure the success of the business. You may make more or less than any sample figures or results that might be quoted on our web sites or other publications. All business involves risk, and many businesses do not succeed. Further, Answers 2000 Limited does NOT represent that any particular individual or business is typical, or that any results or experiences achieved by any particular individual/business is necessarily typical.

Disclosure: Our company's websites' content (including this website's content) includes advertisements for our own company's websites, products, and services, and for other organization's websites, products, and services. In the case of links to other organization's websites, our company may receive a payment, (1) if you purchase products or services, or (2) if you sign-up for third party offers, after following links from this website. Unless specifically otherwise stated, information about other organization's products and services, is based on information provided by that organization, the product/service vendor, and/or publicly available information - and should not be taken to mean that we have used the product/service in question. Additionally, our company's websites contain some adverts which we are paid to display, but whose content is not selected by us, such as Google AdSense ads. For more detailed information, please see Advertising/Endorsements Disclosures

Our sites use cookies, some of which may already be set on your computer. Use of our site constitutes consent for this. For details, please see Privacy.

Click privacy for information about our company's privacy, data collection and data retention policies, and your rights.

Contact Us    About and Terms Of Use    Privacy    Advertising/Endorsements Disclosures