Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Old 02-11-2007, 01:55 PM text resizing script
Freeplayzone's Avatar
Skilled Talker

Posts: 71
Name: Carl Vardy
Trades: 0
Can anyone help me I'm trying to make a script that will detect the users screen size and then change the font to match the screen when the page loads.

I found this script on the web and it will do part of what i want but not all.

It dose the resizing if the user clicks the tabs.

so can anyone tell me how to detect the screen size and then either use this code or one like it to do what I'm trying to do



http://www.freeplayzone.com/fontsizer/Untitled-1.htm
__________________

Please login or register to view this content. Registration is FREE
We've Got Your Game
Freeplayzone is offline
Reply With Quote
View Public Profile Visit Freeplayzone's homepage!
 
 
Register now for full access!
Old 02-13-2007, 03:18 AM Re: text resizing script
jito's Avatar
MY LIFE IS 'i' LIFE

Posts: 565
Name: surajit ray
Location: inside the heart of my friends
Trades: 0
detect your screen resolution with: screen.height and screen.width and depending on that, change your CSS.
__________________
I am not smart, that's why i don't act smart


Please login or register to view this content. Registration is FREE
jito is offline
Reply With Quote
View Public Profile
 
Old 02-13-2007, 06:44 AM Re: text resizing script
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
just use relative units for your font sizes (em, ex or %)
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-13-2007, 07:39 AM Re: text resizing script
jito's Avatar
MY LIFE IS 'i' LIFE

Posts: 565
Name: surajit ray
Location: inside the heart of my friends
Trades: 0
Quote:
Originally Posted by chrishirst View Post
just use relative units for your font sizes (em, ex or %)
yep, that's the best way to go. Why i didn't have that in my mind !

Tha's why chrishirst is a moddy
__________________
I am not smart, that's why i don't act smart


Please login or register to view this content. Registration is FREE
jito is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to text resizing script
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.44151 seconds with 12 queries