JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 22nd, 2001, 04:59 PM
mdavis mdavis is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 1 mdavis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
setting up frames w/ javascript

Hey,

I'm having a bit of a problem trying to setup a frameset w/ javascript.

What im trying to do is detect the screen size then change the size of the frames manually to best fit that that resolution.
( 25%, 100%, 5% doesnt cut it on all resolutions)

It works here on my system, but when I upload it -- no good.

I could redirect them to a different frameset, but this would be easier...

thanks in advance

///////// code

<html>
<head>
<title>test</title>
</head>

<script language="JavaScript">

document.write('<frameset rows="25%, 100%,5%" cols="*" frameborder="NO"
border="0" framespacing="0">')
document.write('<frame name="topFrame" scrolling="NO" noresize
src="header.htm" >')
document.write('<frame name="mainFrame" src="main.htm">')
document.write('<frame name="bottomFrame" scrolling="NO" noresize
src="footer.htm">')
document.write('</frameset>')

</script>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</html>

Reply With Quote
  #2  
Old October 23rd, 2001, 09:54 PM
evildj evildj is offline
Beelzebub
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: The nether regions...ok, San Diego
Posts: 164 evildj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 12
Try...
<html>
<head>
<title>test</title>
</head>

<script language="JavaScript">

document.write('<frameset rows="25%,*,5%" frameborder="NO" border="0" framespacing="0">');
document.write('<frame name="topFrame" scrolling="NO" noresize src="header.htm">');
document.write('<frame name="mainFrame" src="main.htm">');
document.write('<frame name="bottomFrame" scrolling="NO" noresize src="footer.htm">');
document.write('</frameset>');

</script>
</html>

don't put any body tags in a frameset, and don't have rows that add up to more than 100%

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > setting up frames w/ javascript

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap