I have a client who wants me to make a web page with a marquee on it. No
problem.
They want the text to be easily changeable. No problem.
They want it so that the text will appear about the same size regardless of
the screen resolution. Now that's my problem.
In a sense, they want it so that if the screen is 800x600 and the text would
be 1" tall, and then they make the screen 1600*1200, they still want the
text to be 1" tall.
Any suggestions?
TIA - J. 4 1846
Further information on this: I need to be able to do this through straight
HTML not through ASP.Net (I create an HTML page that then get's downloaded
to a remote machine that displays the HTML file.)
I've already figured out what I want to do for this section is put in a
<font size= ></font> and make the size dependent on screen size.
I just don't know javascript well enough to be able to figure out how to
call a javascript routine to have it return the appropriate size value.
TIA - J.
"UJ" <fr**@nowhere.c om> wrote in message
news:e3******** ******@tk2msftn gp13.phx.gbl... I have a client who wants me to make a web page with a marquee on it. No problem.
They want the text to be easily changeable. No problem.
They want it so that the text will appear about the same size regardless of the screen resolution. Now that's my problem.
In a sense, they want it so that if the screen is 800x600 and the text would be 1" tall, and then they make the screen 1600*1200, they still want the text to be 1" tall.
Any suggestions?
TIA - J.
Take a look at the font-size attribute on the MSDN. It has samples on how to
change the font-size in javascript : http://msdn.microsoft.com/library/de...s/fontsize.asp
HTH
--
Phillip Williams http://www.societopia.net http://www.webswapp.com
"UJ" wrote: Further information on this: I need to be able to do this through straight HTML not through ASP.Net (I create an HTML page that then get's downloaded to a remote machine that displays the HTML file.)
I've already figured out what I want to do for this section is put in a <font size= ></font> and make the size dependent on screen size.
I just don't know javascript well enough to be able to figure out how to call a javascript routine to have it return the appropriate size value.
TIA - J.
"UJ" <fr**@nowhere.c om> wrote in message news:e3******** ******@tk2msftn gp13.phx.gbl...I have a client who wants me to make a web page with a marquee on it. No problem.
They want the text to be easily changeable. No problem.
They want it so that the text will appear about the same size regardless of the screen resolution. Now that's my problem.
In a sense, they want it so that if the screen is 800x600 and the text would be 1" tall, and then they make the screen 1600*1200, they still want the text to be 1" tall.
Any suggestions?
TIA - J.
Phillip,
Thanks for the help but this does stuff the change on an event. I need to
set the font initially depending on the size of the screen. It will never
need to change again. I've written some pseudo code here (remember I don't
know what I'm doing here so I'm just sort of guessing....):
<SCRIPT language="javas cript">
function SetFontSize()
{
x = screen.width;
y = screen.height;
fontsize = 14;
if (x < 1024) {
fontsize=14;
}
else
{
fontsize=20;
}
var FontSizeDiv;
FontSizeDiv = getElementByID( "FontSizeDi v");
FontSizeDiv.Sty le.Font.Size = fontsize;
}
</SCRIPT>
<body onload="SetFont Size()">
<div id="FontSize">< font size="12">This is the stuff that will need to
be resized.</font>
</body>
"Phillip Williams" <Ph************ **@webswapp.com > wrote in message
news:AE******** *************** ***********@mic rosoft.com... Take a look at the font-size attribute on the MSDN. It has samples on how to change the font-size in javascript: http://msdn.microsoft.com/library/de...s/fontsize.asp
HTH -- Phillip Williams http://www.societopia.net http://www.webswapp.com
"UJ" wrote:
Further information on this: I need to be able to do this through straight HTML not through ASP.Net (I create an HTML page that then get's downloaded to a remote machine that displays the HTML file.)
I've already figured out what I want to do for this section is put in a <font size= ></font> and make the size dependent on screen size.
I just don't know javascript well enough to be able to figure out how to call a javascript routine to have it return the appropriate size value.
TIA - J.
"UJ" <fr**@nowhere.c om> wrote in message news:e3******** ******@tk2msftn gp13.phx.gbl... >I have a client who wants me to make a web page with a marquee on it. No >problem. > > They want the text to be easily changeable. No problem. > > They want it so that the text will appear about the same size > regardless > of the screen resolution. Now that's my problem. > > In a sense, they want it so that if the screen is 800x600 and the text > would be 1" tall, and then they make the screen 1600*1200, they still > want > the text to be 1" tall. > > Any suggestions? > > TIA - J. > >
UJ wrote: Phillip, Thanks for the help but this does stuff the change on an event. I need to set the font initially depending on the size of the screen. It will never need to change again. I've written some pseudo code here (remember I don't know what I'm doing here so I'm just sort of guessing....):
<SCRIPT language="javas cript">
function SetFontSize() { x = screen.width; y = screen.height; fontsize = 14;
if (x < 1024) { fontsize=14; } else { fontsize=20; }
var FontSizeDiv; FontSizeDiv = getElementByID( "FontSizeDi v"); FontSizeDiv.Sty le.Font.Size = fontsize; }
</SCRIPT>
<body onload="SetFont Size()"> <div id="FontSize">< font size="12">This is the stuff that will need to be resized.</font> </body>
I think maybe you'll want to apply a style to the div - e.g. <div
style="font-size: 1in">This is the stuff that will need to be
resized</div>
No javascript, no asp. Pure HTML (and CSS)
Damien This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: James Stroud |
last post by:
Hello All,
I would like for a tkinter text widget to be aware of how big the frame that
contains it is, then I would like for it to reset its width to the
appropriate number of characters when this frame changes size.
I can get a cget("width") for the text, but this does not dynamically reflect
the visible width.
One way I can think of is getting the size of the font used in the widget then
|
by: Daniele petracca |
last post by:
<SCRIPT TYPE="text/javascript">
if (screen.width==1024) {
distanza=100;
sinistra=100;
}
else {
distanza=10;
sinistra=10;
}
document.write(screen.width);
|
by: al |
last post by:
Greetings,
How should I adjust my text size on my 21(inch) screen so it looks
nicely fit on client's 17(inch), all are with IE 6? I use 'Larger'
text size but it appears large on client's and affecting the overall
look of the aspx page.
MTIA,
Grawsha
|
by: C R |
last post by:
I have a label inside of a form. The form is maximized to fill the
entire screen. I would like the label to take up 40% of the width of the
screen, and 70% of the height, regardless of monitor size or resolution.
How can I do this?
Also, if I use a certain font & font size, how can I avoid getting any
half-lines of text, where you just see the cut-off tops or bottoms of
the letters?
Thanks for any help!
|
by: Roger Withnell |
last post by:
How to I find out what size text the browser is set to?
Thanks in anticipation.
| |
by: Tim Rogers |
last post by:
Hi folks,
this is a resolution-detect script that I used on a site. As you can see it
is designed to detect when the screen resolution falls below a certain level
then load an alternative style sheet HOWEVER, is it possible to make a
change to the code that will not only make it respond to windows with widths
of less than 800 pixels but ALSO heights of less than 600 pixels.
I'm a complete novice when it comes to .js so and help would...
|
by: Simon Wigzell |
last post by:
I am putting together a website for a photographer. There will be a section
where his clients can select various sizes of picture to order. I would to
be able to display the images the actual size depending on the clients
screen size and resolution. Is this possible? I know that the server
receives info on the resolution of the client computer, but that isn't quiet
enough if you don't know the size of their monitor. OR the pixels per inch w...
|
by: benfly08 |
last post by:
Hi, guys.
I'm developing a web application for Sales Department people in my company. I used my 1024X768 resolution and "Medium" IE text size to test my Layout and it worked fine. However, some people in Sales Department use different settings like "800X600", "Larger" IE text size or even "Large font" in Appearance tab in Display Property. Those different settings would mess up my layout. What I want to do is to set font size of labels,...
|
by: Cartoper |
last post by:
I am working on a browser kiosk needs to be able to be run at multiple
screen resolutions. What I would like to do is keep the text the same
size relative to the screen, all the time.
In other words, lets say there is a table with 10 rows and 4 columns
that is centered with a 5% of the screen as a boarder around it. If
you have two 17 inch monitors, one at 1024x768 and the other at
1280x1024 sitting next to each other, I would like the...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |