Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Go Back   Code Forums > Application and Web Development > HTML, XML, Javascript, AJAX
User Name
Password

Reply
 
LinkBack Thread Tools Display Modes
Old 07-26-2007, 07:03 AM   #1 (permalink)
Salchester
Salchester
 
Salchester's Avatar
 
Join Date: Jul 2005
Location: In a house
Posts: 230
Salchester is an unknown quantity at this point
Resize Text

Hi Folks,

How can the following script be adapted, in order for it to work in IE as well as FF?

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script> var window_width = document.documentElement.clientWidth; window.onresize = function(){ var current_width = document.documentElement.clientWidth; if ( current_width > window_width ) { document.documentElement.style.fontSize = 'large'; window_width = current_width; } else { document.documentElement.style.fontSize = 'small'; window_width = current_width; } alert('check: '+current_width); } </script> </head> <body> hjkhjkhjkhjk </body> </html>
__________________
Many Thanks, in advance!

Salchester.
The Future Is Here - Are You Ready?
Salchester is offline   Reply With Quote
Old 07-26-2007, 07:20 AM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,397
sde is on a distinguished road
salch.. that's a contender for one of the most lazy ass questions you've asked... not to mention you spam your questions elsewhere in true salch fashion.

Resize Text - Dev Hardware

please respect the community a little more by at least pretending you are trying harder than it would take the person to answer your question.
__________________
testing 1 2 3
sde is offline   Reply With Quote
Reply


Thread Tools
Display Modes

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript: Text Resize Salchester HTML, XML, Javascript, AJAX 1 05-11-2007 02:03 AM
Include file shown correctly in FF not in IE Stoner HTML, XML, Javascript, AJAX 2 04-21-2006 07:56 AM
Text Searching freesoft_2000 Java 2 12-02-2004 07:38 AM
[MySQL] blob vs text redhead PHP 2 03-29-2004 11:15 PM
Capturing web page text vaclav VB 6 0 02-24-2003 02:42 PM


All times are GMT -8. The time now is 10:59 PM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2006, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
Open Circle