eBook authors eBook Software - create and publish your own ebooks
Create your own eBooks
 
   
EBookApprentice.com
Learn How To Create, Publish & Market E-Books
 
   
EBookCompiler.com
E-Book Creation Software
 
   
EBookPower.com
Add sophisticated multimedia to your E-Books
 
   
CoverFactory.com
Create E-Book covers in minutes
 
 
  EBookSubmit.com
E-Book Marketing & Promotion made easy
 
  EBookJungle.com
Search engine for E-Books
 
  EBookInterviews.com
Interviews with eBook authors
 
  EBookEnhance.com
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

Carlos

LANGUAGE="JavaScript">
<!--
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"
}
}
onLoad()
//-->
</script>

(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

Go to Active Discussion Thread

Participate in Current/New Discussions

List All Archived Forums



Copyright © 2000-2015, 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.

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