Web Design Web Design Forum
Registration is free! Here you can view your subscribed threads, work with private messages and edit your profile and preferences Calendar Find other members Frequently Asked Questions Search
Home Web Design

Convenient web based access to our favorite web design Usenet groups

web design reviews

This is Interesting: Free Magazines for Graphics designers and webmasters  





  Last Thread  Next Thread
Author
Thread Post New Thread   

Problem with fonts and javascript
 

Rudei




quote this post edit post

IP Loged report this post

Old Post  02-28-06 - 11:20 PM  
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 us
ing
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 fo
nt
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 happ
ens
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??



Post Follow-Up to this message ]
Re: Problem with fonts and javascript
 

Bonnie




quote this post edit post

IP Loged report this post

Old Post  02-28-06 - 11: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,locatio
n=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 ha
ppens
> 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


Post Follow-Up to this message ]
Re: Problem with fonts and javascript
 

Rudei




quote this post edit post

IP Loged report this post

Old Post  02-28-06 - 11:21 PM  
Thanks for that Bonnie.

Can anyone help with the other question I had regarding resizing the image t
o shrink into a new window that is opened by clicking on a thumbnail?


Post Follow-Up to this message ]
Sponsored Links
 





All times are GMT. The time now is 03:10 AM. Post New Thread   
  Previous Last Thread   Next Thread next
Dreamweaver archive | Show Printable Version | Email this Page | Subscribe to this Thread

Popular forums

Adobe Photoshop forum Macromedia Flash Web Site Design
Dreamweaver FrontPage forum
JavaScript Forum XML forum
Style Sheets VRML
Forum Jump:
Rate This Thread:

 

XML RSS Feed web design latest articles Syndicate our forum via XML or simple JavaScript

Web Design archive  Database administration help  


Top Home  -  Register  -  Control Panel   -  Memberlist  -  Calendar  -  Faq  -  Search Top