|
||||||
| Javascript Javascript Tutorials and Code |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||||
|
nice, i know nothing about JavaScript but i have 2 noobie questions. 1) How would you calculate 90% of the screen width? Could you just do it like Code:
alert('Screen Resolution Is '+screen.width*.9+' by '+screen.height);
2) Also since i guess res() returns two values would it be possable to use screen.width as like a varible? say Code:
<table width='screen.width'><tr><td>blah></td></tr></table> ![]() |
|
|||||
|
Quote:
![]() Quote:
Code:
<body>
<script language="JavaScript">
window.open('about:blank','window name','width=screen.width,height=200');
</script>
</body>
Or you can declare screen.width as a variable and then use the variable like this:- Code:
<body>
<script language="JavaScript">
var abc=screen.width
window.open('about:blank','window name','width=abc,height=200');
</script>
</body>
![]() Quote:
![]() |
|
|||||
|
Nice tutorial! Thanks!
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog Post a job on our freelance section! Paste between computers/devices and Collaborate on Code!. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Screen resolution | NeedHelp | PHP Forum | 6 | 05-14-2007 01:54 PM |
| capture screen shot from an application during run time | engr | Visual Basic Programming | 1 | 01-29-2007 03:38 PM |
| 16 " screen | techni68 | Computer Hardware | 5 | 01-22-2007 10:43 AM |
| Capture the screen in a TImage | MrDiaz | Pascal/Delphi | 3 | 12-06-2006 11:57 AM |
| Change Resolution, Change Size | Void | C# Programming | 1 | 06-13-2006 02:48 PM |
Algorithms and Data Structures
Programming Language Popularity
Code Collaboration
Podnet IRC Network
AmpHosted
Goal #1: 1,000 Blogs
Goal #2: 1,000 Wiki Pages
Goal #3: 300,000 Posts
Goal #4: 20,000 Threads
Done: 30%, 23%, 56%, 75%