This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > February 2006 > Problem with fonts and javascript
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Problem with fonts and javascript
|
|
|
| Hi,
I've developed some pages on my laptop using XP and IE6. The font I have
chosen is Bradley Hand ITC. There are thumbnail links to a larger picture using
the following Javascript:
<a href="javascript:void(0);"
onclick="window.open('Images/BD001.jpg','','toolbar=0,scrollbars=0,location=0,st
atusbar=0,menubar=0,resizable=1,width=500,height=500');">
BUT, when I run this page on a machine running NT4 and does not have this font
installed, I just get normal text written on there and when I click on the
above link, the new picture is not resized to the window size, but this happens
on my XP machine.
I've read some posts that I think are related, and may have something to do
with CSS, but not sure.
Please can someone help??
| |
| Bonnie 2006-02-28, 6:21 pm |
| Rudei wrote:
> Hi,
>
> I've developed some pages on my laptop using XP and IE6. The font I have
> chosen is Bradley Hand ITC. There are thumbnail links to a larger picture using
> the following java script:
>
> <a href="java script:void(0);"
> onclick="window.open('Images/BD001.jpg','','toolbar=0,scrollbars=0,location=0,st
> atusbar=0,menubar=0,resizable=1,width=500,height=500');">
>
> BUT, when I run this page on a machine running NT4 and does not have this font
> installed, I just get normal text written on there and when I click on the
> above link, the new picture is not resized to the window size, but this happens
> on my XP machine.
>
> I've read some posts that I think are related, and may have something to do
> with CSS, but not sure.
>
> Please can someone help??
>
As you see, the number of fonts you can be sure is installed on all
computers is limited. If you search this forum for "web safe fonts" you
will find a link to a page discussing this--it is posted multiple times
every week.
All you can do is use CSS to define a font **family** that begins with
your preferred font, if the user doesn't have that installed, the next
font will show, etc.
So:
b, p, whatever other tags {
font-family: "Bradley Hand ITC", Verdana, Arial, sans-serif;
}
would style all text in the specified tags with those fonts in that order.
--
Bonnie in California
kroko at
sbcglobal dot net
http://www.theanimalrescuesite.com/...ts/CTDSites.woa
| |
|
| Thanks for that Bonnie.
Can anyone help with the other question I had regarding resizing the image to shrink into a new window that is opened by clicking on a thumbnail?
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|