473,472 Members | 2,143 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Help nedeed urget!

Hi,

I have a page that looks like this
<html>
<head>
<title>Testtitle>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">

<SCRIPT language="JavaScript">
<!--
function how_far() {
if( screen.width == 800 && screen.height == 600 ) return 0;
else if( screen.width == 1024 && screen.height == 768 ) return 150;
else if( screen.width >= 1280 && screen.height == 1024 ) return 250;
else return 0;
}

//-->
</SCRIPT>
</head>

How do I make it work. I don't know the exact syntax.
I just want the value of return of how_far() to be assigned to
cols variables.

<frameset rows="*" cols="javacript::how_far(),*" framespacing="0"
frameborder="NO" border="0">
<frame src="bez1.html" name="leftFrame" scrolling="NO" noresize>
<frame src="bez2.html" name="mainFrame">
</frameset>
<noframes><body>
</body></noframes>
</html>
Apr 26 '06 #1
1 1011
Frane Roje wrote:
Hi,

I have a page that looks like this
<html>
<head>
<title>Testtitle>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">

<SCRIPT language="JavaScript">
<!--
function how_far() {
if( screen.width == 800 && screen.height == 600 ) return 0;
else if( screen.width == 1024 && screen.height == 768 ) return 150;
else if( screen.width >= 1280 && screen.height == 1024 ) return 250;
else return 0;
}

//-->
</SCRIPT>
</head>

How do I make it work. I don't know the exact syntax.
I just want the value of return of how_far() to be assigned to
cols variables.

<frameset rows="*" cols="javacript::how_far(),*" framespacing="0"
frameborder="NO" border="0">
<frame src="bez1.html" name="leftFrame" scrolling="NO" noresize>
<frame src="bez2.html" name="mainFrame">
</frameset>
<noframes><body>
</body></noframes>
</html>


Hi,

You have 2 options I can think of:

1) Use document.write() to create your framedefinition-html.
Does this actually work?
<frameset rows="*" cols="javacript::how_far(),*" framespacing="0"
frameborder="NO" border="0">

So, check your screensettings, and write the value you want via
document.write.

2) Just create 3 different framesets.
This is much simpler.
a) Check the screen.
b) Redirect to the appropriate frameset-html

You do not have to change anything else, just create 3 different framesets.

Regards,
Erwin Moller

Apr 26 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Dave | last post by:
After following Microsofts admonition to reformat my system before doing a final compilation of my app I got many warnings/errors upon compiling an rtf file created in word. I used the Help...
9
by: Tom | last post by:
A question for gui application programmers. . . I 've got some GUI programs, written in Python/wxPython, and I've got a help button and a help menu item. Also, I've got a compiled file made with...
4
by: Sarir Khamsi | last post by:
Is there a way to get help the way you get it from the Python interpreter (eg, 'help(dir)' gives help on the 'dir' command) in the module cmd.Cmd? I know how to add commands and help text to...
2
by: Sudheer Kareem | last post by:
Dear All Please tell me how to assosiate help files with my Vb.net Project. Regards Sudheer
6
by: wukexin | last post by:
Help me, good men. I find mang books that introduce bit "mang header files",they talk too bit,in fact it is my too fool, I don't learn it, I have do a test program, but I have no correct doing...
6
by: d.warnermurray | last post by:
I am doing a project for school that involves creating help files for a html authoring tool. If you could help me with answers to some questions it would really help. 1. What tasks do you expect...
5
by: Craig Keightley | last post by:
Please help, i have attached my page which worksin IE but i cannnot get the drop down menu to fucntion in firefox. Any one have any ideas why? Many Thanks Craig ...
9
by: Kurt Nesworthy | last post by:
Hi guys, Got a Visual Basic test to do by wedensday, but i dont have the faintest idea on how to do it. "A company has two schemes for paying monthly shift pay to its employees. Management are...
4
by: kwartz | last post by:
I have several .sql file that I am runing from the dos prompt using echo. I want to spool the log files of each of the .sql files into one. The way I have it now, the current log file overwrites the...
2
by: NIKHILUNNIKRISHNAN | last post by:
Hi, My name is Nikhil. I am new to programming.I am obfuscating a C# solution using Dotfuscator. The output of the soultion is a UI along with a setup to install the application. The setup is...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
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...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.