|
-
Jun 5th, 2000, 05:05 AM
#1
Thread Starter
Addicted Member
Allright here's the story. I have this control on a page that uses a format like this:
<Applet Code = xxxx.class
ID = xxxx
Width = "200"
Height = "400">
<Param Name = Whatever Value = "doesn't matter">
</applet>
The thing that I want to do is use a different height or width depending on the resolution. Like maybe a width of 200 for 1024x768 100 for 800x600 and 50 for 640x480. I was just wondering how I would accomplish such a task. Even if that is not possible is it possible to set a variable to a percentage of the screen width and then suppliment the variable into the width.
Oh ya, on other thing I would like to be able to do is get the width of a frame, or page and set the width equal to that.
Thanks
Jeremy 
[Edited by Jeremy Martin on 06-05-2000 at 06:22 PM]
-
Jun 6th, 2000, 12:14 AM
#2
Monday Morning Lunatic
it's easy to do percentages...just put width=50% or something like that in. getting the size of the browser window is slightly harder...you'd need javascript for that, and only (I think) in IE4+ - mozilla may fix this.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|