Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resizing From 800x600 to 1024x768

Status
Not open for further replies.

killbuzz

Technical User
Mar 21, 2001
103
US
I’m trying to get this website to resize in two resolution.
This is the website I’m doing
Here’s the index2.htm code

<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Frameset//EN&quot; &quot;<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
</head>

<frameset rows=&quot;121,*&quot; cols=&quot;*&quot; framespacing=&quot;0&quot; frameborder=&quot;NO&quot; border=&quot;0&quot;>
<frame src=&quot;topframe.htm&quot; name=&quot;topFrame&quot; scrolling=&quot;NO&quot; noresize >
<frameset rows=&quot;*&quot; cols=&quot;129,*&quot; framespacing=&quot;0&quot; frameborder=&quot;NO&quot; border=&quot;0&quot;>
<frame src=&quot;leftframe.htm&quot; name=&quot;leftFrame&quot; scrolling=&quot;NO&quot; noresize>
<frameset rows=&quot;*&quot; cols=&quot;*,127&quot; framespacing=&quot;0&quot; frameborder=&quot;NO&quot; border=&quot;0&quot;>
<frame src=&quot;mainframe.shtml&quot; name=&quot;mainFrame&quot;>
<frame src=&quot;rightframe.htm&quot; name=&quot;rightFrame&quot; scrolling=&quot;NO&quot; noresize>
</frameset>
</frameset>
</frameset>
<noframes><body>

</body></noframes>
</html>

I have four frames on the site, two sides, one at top and the center as my mainframe. When viewing in 800x600 the side, and center frames wont resize. The hours at the bottom right wont come up so you can see it in 800x600 resolution. I thought just making them 100% would make it, but it wont.

In rentals I have a table with 100% but I assume that wont work when viewing in 600x800 if you click on rentals and go into 600x800 you can see the scrolling bars, I don’t want any scrolling bars on this site.

Help me please, Thanks!
 
why not make one single page that will redirect user depending on thier scren size?
then just direct them on FrameSet1 and Frameset2
that will hold the rest of the pages:
Index.html-----------------------
Code:
....
</head>
<script>
<!--
function sizeRedirect()
{
  var wide = window.screen.width;
    
  if(wide = 800) URLStr = &quot;FrameSet1.htm&quot;;
  else URLStr = &quot;FrameSet2.html&quot;;
  location = URLStr;
}
//-->
</script>
<body onLoad=&quot;sizeRedirect()&quot;>
</body>

All the best!


> need more info?
:: don't click HERE ::
 
that sounds good, but what about the side frames its two of them, you got &quot;frameset1.htm&quot; how would i add more frames? in the if 800 wide code?
 
NVM i understand what you are saying. Put it in the frame i want to resize, thanks thats a good idea!
 
oh by bad....u can just adjust your top frame to resize and u should be ok
<frame src=&quot;topframe.htm&quot; name=&quot;topFrame&quot; scrolling=&quot;no&quot; >
making your page into:
Code:
<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Frameset//EN&quot; &quot;[URL unfurl="true"]http://www.w3.org/TR/html4/frameset.dtd&quot;>;[/URL]
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
</head>

<frameset rows=&quot;121,*&quot; cols=&quot;*&quot; framespacing=&quot;0&quot; frameborder=&quot;NO&quot; border=&quot;0&quot;>
  <frame src=&quot;topframe.htm&quot; name=&quot;topFrame&quot; scrolling=&quot;no&quot; >
  <frameset rows=&quot;*&quot; cols=&quot;129,*&quot; framespacing=&quot;0&quot; frameborder=&quot;NO&quot; border=&quot;0&quot;> 
  <frame src=&quot;leftframe.htm&quot; name=&quot;leftFrame&quot; scrolling=&quot;NO&quot; noresize>
  <frameset rows=&quot;*&quot; cols=&quot;*,127&quot; framespacing=&quot;0&quot; frameborder=&quot;NO&quot; border=&quot;0&quot;> 
  <frame src=&quot;mainframe.shtml&quot; name=&quot;mainFrame&quot;>
  <frame src=&quot;rightframe.htm&quot; name=&quot;rightFrame&quot; scrolling=&quot;NO&quot; noresize>
</frameset>
</frameset>
</frameset>
<noframes><body>

</body></noframes>
</html>

All the best

> need more info?
:: don't click HERE ::
 
The topframe already had no scrolling, Its done in flash, And it fits all screens. I went ahead and uploaded the rightframe and the 800x600 version of the rightframe2 to the site.
Now it will go to the rightframe2.htm even if im in 1024x768 I need it to be at the bottom of the page on the 1024x768 and the same on 800x600.. What would be casing it to go to the rightframe2 when im in 1024x768?

heres the code i put: The rightframe2.htm is the 800x600 and the rightframe.htm is the 1024x768

<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;>
<html>
<head>
<title>rightframe</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
<script>
<!--
function sizeRedirect()
{
var wide = window.screen.width;

if(wide = 800) URLStr = &quot;rightframe2.htm&quot;;
else URLStr = &quot;rightframe.html&quot;;
location = URLStr;
}
//-->
</script>
<body bgcolor=&quot;#333333&quot; onLoad=&quot;sizeRedirect()&quot;>

<body bgcolor=&quot;#333333&quot;>
<table width=&quot;100%&quot; height=&quot;100%&quot; border=&quot;0&quot;>
<tr>
<td width=&quot;100%&quot; height=&quot;100%&quot;><div align=&quot;center&quot;>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong><font color=&quot;#FFFFFF&quot;>Store Hours</font></strong><br>
<font color=&quot;#CCCCCC&quot;>Sunday 1-5<br>
Monday 10-6</font><font color=&quot;#CCCCCC&quot;></font><font color=&quot;#FFFFFF&quot;><br>
<font color=&quot;#FF0000&quot;><strong>Tues. Closed <br>
Wed Closed</strong></font><br>
<font color=&quot;#CCCCCC&quot;>Thurs. 10-6<br>
Friday 10-7<br>
Sat. 9-6</font></font></p>
</div></td>
</tr>
</table>
</body>
</html>

Thanks
 
ok...
1st.----------------------------------------
I don't see the problem...your page resizes fine WITHOUT the script I gave you!
so ur DONE without this script!

2nd.---------------------------------------
&quot;The topframe already had no scrolling, &quot;
--> yes but I removed
<frame src=&quot;topframe.htm&quot; name=&quot;topFrame&quot; scrolling=&quot;NO&quot; noresize >

3rd.---------------------------------------
it seem that u have concept of frames and frameSETS confused......u neeed 2 sizes FRAMESETS that hold 4 frames (2 pages like the one on top) and are set size IF U WANT to use the detection script...so
if(wide = 800) URLStr = &quot;rightframe2.htm&quot;;
does not apply since ur sending user to ONLY one page rightframe2.html instead of FrameSet1.htm

BUT above all I just checked your page and it resizes as it is because of the top_frame being set to resize (removed noresize)

All the best!
[noevil]


> need more info?
:: don't click HERE ::
 
follow up:
u might consider using CSS to decorate your scroll bar -since ur trying to &quot;blend&quot; the frameset.
here is a snip that u can place appropriatly:
Code:
<STYLE TYPE=&quot;text/css&quot;>
<!--

body {scrollbar-3dlight-color:#000000; 
scrollbar-arrow-color:#000000;
scrollbar-base-color:#FFFFFF;
scrollbar-darkshadow-color:#00000;
scrollbar-face-color:#FFFFFF;
scrollbar-highlight-color:#FFFFFF;
scrollbar-shadow-color:#FF9900}


-->
</STYLE>
<title>MY SCROLL BARS</title>
....

All the best!

> need more info?
:: don't click HERE ::
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top