Current location: Hot Scripts Forums » General Web Coding » JavaScript » two frames dependig on the screen resolution


two frames dependig on the screen resolution

Reply
  #1 (permalink)  
Old 11-15-04, 06:48 AM
mic_scp mic_scp is offline
Newbie Coder
 
Join Date: Nov 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
two frames dependig on the screen resolution

hello

can anyone tell me if its possible to have a a page 1 or page 2 deppending on the screen resulution ???

thanks
Reply With Quote
  #2 (permalink)  
Old 11-15-04, 03:39 PM
koncept
Guest
 
Posts: n/a
i know its possible to get the screen resolution but i do not know if it is possible to do what you are asking in javascript
Reply With Quote
  #3 (permalink)  
Old 11-19-04, 02:25 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
Try this:
Code:
<head>
<script>
if(window.screen.width=800){
 document.location = "800_600.htm"
}
else if(window.screen.width>=1024){
 document.location = "1024_768.htm"
}
else{
 document.location = "other.htm"
}

</script>
</head>
Reply With Quote
  #4 (permalink)  
Old 11-19-04, 05:00 AM
mic_scp mic_scp is offline
Newbie Coder
 
Join Date: Nov 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Talking page depending on the screen resolution

thaks TwoD

I will trie that, but some one as alredy given me another code that do the trick.

thaks anyway
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Flash help: Play frames in reverse Infinite_Hackers Flash & ActionScript 2 08-24-05 09:05 PM
How to solve this without using frames? Edward Han PHP 2 06-22-04 07:40 AM
resizing screen.... jasong The Lounge 4 03-29-04 06:13 AM
screen area(resolution) msrnivas ASP.NET 1 12-18-03 12:54 PM
Reaaly stuck about javascript over frames muratisik JavaScript 1 12-14-03 11:58 AM


All times are GMT -5. The time now is 10:35 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.