Reply to Re: Determining the font characteristics of any web page?

Your name:

Reply:


Posted by Philip on 06/20/06 19:10

In article <gdWlg.8644$f76.988@dukeread06>,
"Peter Olcott" <olcott@att.net> wrote:
> If it would be easier to do, I could write some code that runs in the context
> of
> the browser and then pass the results to the code that needs it that does not
> run within the context of the browser.

I see two possibilities. First, you might be able to get this
information via Javascript. This page might point you in the right
direction:
http://www.quirksmode.org/dom/getstyles.html

You might also want to consider creating a document and using Javascript
to measure the size of the text in it.

The second possibility is to write a browser plugin which means it is
time for you to start hunting through the Plugin Writer's Guides for the
browsers you intend to support. It is up to the individual browser
whether or not they expose the kind of information you're looking for.

Neither one of these methods is very portable from one browser to
another. The first one might be somewhat portable, but the second is not
at all.

HTH

--
Philip
http://NikitaTheSpider.com/
Bulk HTML validation, link checking and more

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация