Mirrored Windows Open on Fixed Window Size HELP please

Need technical advice on coding your web pages? Covers HTML, JavaScript, CSS, and some server side technologies. Also the issue of some webpages not displayed well.

Moderator: Don_HH2K

Mirrored Windows Open on Fixed Window Size HELP please

Postby papucs » Sun 22 Jan, 2006 7:34 am

Hello I read through the other posting regarding adding a pop up window of a fixed size.

Somewhere in my source code two windows are opening, one in a regular browswer size with scroll bars and address area, and
the other (the one that i want) opens in a predefined window size.

I am quite new to the java side of things, but would love to know where in my source code the code is still telling two windows to open. I only want to open a window upon arriving to it in a fixed size.

I am posting the source code here :
(sorry its so long i dont know where the extra window opening up is so i have to include it all)

Code: Select all
<html>
<head>
<title>Gallery_Index</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.photo_description {
   font-size: 0.9em;
   font-family: Georgia, "Times New Roman", Times, serif;
   font-style: normal;
   line-height: normal;
   font-weight: normal;
   font-variant: normal;
   color: #666666;
   letter-spacing: 0.25pt;
   vertical-align: text-top;
   word-spacing: normal;
   text-align: left;
   white-space: normal;
   display: inline;
   margin: 0px;
   padding: 0px;
   height: 0px;
   width: 0px;
   left: 2px;
   top: 2px;
   right: 2px;
   bottom: 2px;
}
body,td,th {
   font-family: Georgia, Times New Roman, Times, serif;
   font-size: small;
   color: #666666;
}
body {
   margin-left: 2px;
   margin-top: 2px;
   margin-right: 2px;
   margin-bottom: 2px;
}
-->
</style>
<script language="Javascript" type="text/javascript"><!--
 window.open('index.html', 'Gallery_Index', 'height=535,resizable=no,width=410');

 //-->
 </script>
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<style type="text/css">
<!--
.style2 {font-size: 10px}
.style3 {font-size: 12px}
-->
</style>
</head>

<body onLoad="MM_preloadImages('../../popup_nav/emailus_up.jpg', '../../popup_nav/all_photos.jpg', '../../popup_nav/forward_up.jpg')">
 
<div align="left"></div>
<table width="410" height="506" border="1" align="center" cellpadding="1" cellspacing="1" bordercolor="#999999">
  <tr>
    <td width="421" height="37" background="../../popup_nav/upperbar.jpg"><table width="408" height="33" border="0" align="center">
        <tr>
          <td width="417"><font color="#666666" size="5" face="Georgia, Times New Roman, Times, serif">Title
              Of Event or Place </font></td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td height="28" background="../../popup_nav/bar.jpg"><table width="408" border="0" align="center">
        <tr>
          <td width="226" height="20"><font color="#666666" size="3" class="photo_description">Place
          it took </font></td>
          <td width="221"><font color="#666666" size="3" class="photo_description">Date
              of Event </font></td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td height="306" align="center" valign="middle"><table width="400" height="235" border="0" align="center" cellpadding="2" cellspacing="2" bordercolor="#FFFFFF" >
        <tr>
          <td height="60" align="center"><a href="Main_Pages/main001.html"><img src="thumbnails/001.jpg" alt="Just a Trial (125kb)" height="54" width="72" border="0"></a> </td>
          <td align="center"><a href="Main_Pages/main002.html"><img src="thumbnails/002.jpg" alt="Cooking CookingCooking CookingCooking CookingCooking CookingCooking Cooking (119kb)" height="54" width="72" border="0"></a> </td>
          <td align="center"><a href="Main_Pages/main003.html"><img src="thumbnails/003.jpg" alt="Cooking CookingCooking Cooking (105kb)" width="72" height="54" border="0" align="middle"></a> </td>
          <td align="center"><a href="Main_Pages/main004.html"><img src="thumbnails/004.jpg" alt="Cooking Again (172kb)" height="54" width="72" border="0"></a> </td>
          <td align="center"><a href="Main_Pages/main005.html"><img src="thumbnails/005.jpg" alt="Eating And Cooking (125kb)" height="54" width="72" border="0"></a> </td>
        </tr>
        <tr>
          <td height="56" align="center"><a href="Main_Pages/main006.html"><img src="thumbnails/006.jpg" alt="Eating And Cooking (125kb)" height="54" width="72" border="0"></a></td>
          <td align="center"><a href="Main_Pages/main007.html"><img src="thumbnails/007.jpg" alt="Eating And Cooking (125kb)" height="54" width="72" border="0"></a></td>
          <td align="center"><a href="Main_Pages/main008.html"><img src="thumbnails/008.jpg" alt="Eating And Cooking (125kb)" height="54" width="72" border="0"></a></td>
          <td align="center"><a href="Main_Pages/main009.html"><img src="thumbnails/009.jpg" alt="Eating And Cooking (125kb)" height="54" width="72" border="0"></a></td>
          <td align="center"><a href="Main_Pages/main010.html"><img src="thumbnails/010.jpg" alt="Eating And Cooking (125kb)" height="54" width="72" border="0"></a></td>
        </tr>
        <tr>
          <td align="center"><a href="Main_Pages/main011.html"><img src="thumbnails/011.jpg" alt="Eating And Cooking (125kb)" height="54" width="72" border="0"></a></td>
          <td align="center"><a href="Main_Pages/main012.html"><img src="thumbnails/012.jpg" alt="Eating And Cooking (125kb)" height="54" width="72" border="0"></a></td>
          <td align="center"><a href="Main_Pages/main013.html"><img src="thumbnails/013.jpg" alt="Eating And Cooking (125kb)" height="54" width="72" border="0"></a></td>
          <td align="center"><a href="Main_Pages/main014.html"><img src="thumbnails/014.jpg" alt="Eating And Cooking (125kb)" height="54" width="72" border="0"></a></td>
          <td align="center"><a href="Main_Pages/main015.html"><img src="thumbnails/015.jpg" alt="Eating And Cooking (125kb)" height="54" width="72" border="0"></a></td>
        </tr>
        <tr>
          <td align="center"><a href="Main_Pages/main016.html"><img src="thumbnails/016.jpg" alt="Eating And Cooking (125kb)" height="54" width="72" border="0"></a></td>
          <td align="center"><a href="Main_Pages/main017.html"><img src="thumbnails/017.jpg" alt="Eating And Cooking (125kb)" height="54" width="72" border="0"></a></td>
          <td align="center"><a href="Main_Pages/main018.html"><img src="thumbnails/018.jpg" alt="Eating And Cooking (125kb)" height="54" width="72" border="0"></a></td>
          <td align="center"><a href="Main_Pages/main019.html"><img src="thumbnails/019.jpg" alt="Eating And Cooking (125kb)" height="54" width="72" border="0"></a></td>
          <td align="center"><a href="Main_Pages/main020.html"><img src="thumbnails/020.jpg" alt="Eating And Cooking (125kb)" height="54" width="72" border="0"></a></td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td height="50" align="left" background="../../popup_nav/bar.jpg"><div align="left" class="photo_description">
        <table width="408" border="0" align="center" class="style2">
          <tr>
            <td height="42" class="photo_description"><font color="#666666"><span class="style3">short
                  description goes here this is the most space there is for this
                  and here is some jh kjhlkhk ;asdikf;sdkafds';kjaf;dlskj<font color="#666666">short
                  description goes here this is the most space there is for this
                  and here is some</font> asfdsafdsadsfasdfdsafda </span></font></td>
          </tr>
        </table>
        <font color="#666666"></font></div></td>
  </tr>
  <tr>
    <td height="35" bgcolor="#ADB972"><table width="408" border="0" align="center">
        <tr>
          <td width="122"><a href="mailto:events@jillprescott.com" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('email_us', '', '../../popup_nav/emailus_up.jpg',1)"><img src="../../popup_nav/emailus_down.jpg" name="email_us" width="122" height="34" border="0"></a></td>
          <td width="167"><a href="index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Gallery_All_Photos', '', '../../popup_nav/all_photos.jpg',1)"><img src="../../popup_nav/all_photos_down.jpg" name="Gallery_All_Photos" width="160" height="34" border="0"></a></td>
          <td width="50"><img src="../../popup_nav/back_down.jpg" name="Gallery_Back_Nav" width="49" height="34" border="0"></td>
          <td width="56"><a href="Main_Pages/main001.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Gallery_Forward_Nav', '', '../../popup_nav/forward_up.jpg',1)"><img src="../../popup_nav/forward_down.jpg" name="Gallery_Forward_Nav" width="49" height="34" border="0" align="right"></a></td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td height="32" bgcolor="#ADB972"><table width="408" align="center">
        <tr>
          <td><img src="../../popup_nav/jillprescott_copyright.jpg" width="399" height="21" align="middle"></td>
        </tr>
    </table></td>
  </tr>
</table>
</body>
</html>



Thank You

Papucs
UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/312.5.2 (KHTML, like Gecko) Safari/312.3.3
papucs
new member
new member
 
Posts: 3
Joined: Sun 22 Jan, 2006 7:28 am

Postby Antony » Sun 22 Jan, 2006 8:22 am

Papucs,

Welcome to SillyDog701.

Do you have a test page online? So it would make it easier for all of us.

Antony.
UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/417.9 (KHTML, like Gecko) Safari/417.8
User avatar
Antony
diamond member
diamond member
 
Posts: 14932
Joined: Tue 18 Jun, 2002 11:36 pm
Location: Sydney, Australia

Hello

Postby papucs » Sun 22 Jan, 2006 8:23 pm

Antony - Hello I think I figured out the problem however a new one has arose! Here is the link

http://uni-form.tv/ALL_TEMP/index.htm

1 :
I am trying to get a rollover menu (which has 5 options) to show up, but it gets cut off before it gets to 'Content_Frame' I am using framesets and am REALLY new to them. I would love to get this navigation part figured out as the entire website depends on this simple yet nerve wracking rollover menu! :)

Roll over the buttons 5 from the left.

2 :
One other quick question is that when you first go to this website I can't figure out how to have home page news open in the content section without having to go to (what will be the home button) first from left.

Thanks so much for your help - any suggestions would be appreciated

- papucs
UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/312.5.2 (KHTML, like Gecko) Safari/312.3.3
papucs
new member
new member
 
Posts: 3
Joined: Sun 22 Jan, 2006 7:28 am

Re: Hello

Postby Antony » Sun 22 Jan, 2006 9:09 pm

papucs wrote:Antony - Hello I think I figured out the problem however a new one has arose! Here is the link

http://uni-form.tv/ALL_TEMP/index.htm

1 :
I am trying to get a rollover menu (which has 5 options) to show up, but it gets cut off before it gets to 'Content_Frame' I am using framesets and am REALLY new to them. I would love to get this navigation part figured out as the entire website depends on this simple yet nerve wracking rollover menu! :)
You can't do anything about that. Any layers (or DIV elements) can display across frames. If you want to show your menus, you will need to get rid of frames.

papucs wrote:One other quick question is that when you first go to this website I can't figure out how to have home page news open in the content section without having to go to (what will be the home button) first from left.
specify the page to load in [tt]<frameset>[/tt]?
UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/417.9 (KHTML, like Gecko) Safari/417.8
User avatar
Antony
diamond member
diamond member
 
Posts: 14932
Joined: Tue 18 Jun, 2002 11:36 pm
Location: Sydney, Australia

Frameset?

Postby papucs » Sun 22 Jan, 2006 10:01 pm

Hello thank you for your response.

I am really new to programming or this web stuff. Can you tell me where I add this frameset information in to the source code? I am not sure where it starts and where it ends.

I have the source code posted online. Do i post it on the index page?

Thank you sO much!
:)

ep
UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/312.5.2 (KHTML, like Gecko) Safari/312.3.3
papucs
new member
new member
 
Posts: 3
Joined: Sun 22 Jan, 2006 7:28 am

Re: Frameset?

Postby Antony » Sun 22 Jan, 2006 10:27 pm

papucs wrote:Hello thank you for your response.

I am really new to programming or this web stuff. Can you tell me where I add this frameset information in to the source code? I am not sure where it starts and where it ends.

I have the source code posted online. Do i post it on the index page?

Thank you sO much!
:)

ep
Hello again,

You will need 3 files at least for two frames. Say, your menu page is in [tt]menu.html[/tt], and your main content page is in [tt]maincontent.html[/tt].

Then, You put the [tt]<frameset>[/tt] (parent) in a different file to load other two (child) pages, the recommended filename is [tt]index.html[/tt]

Hence in <tt>index.html</tt>, have it something like
Code: Select all
<FRAMESET ROWS="70%,30%">
  <FRAME NAME="menu" SRC="menu.html">
  <FRAME NAME="content" SRC="maincontent.html">
</FRAMESET>


when loading [tt]index.html[/tt] page, both [tt]menu.html[/tt] and [tt]maincontent.html[/tt] will be loaded automatically.
UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/417.9 (KHTML, like Gecko) Safari/417.8
User avatar
Antony
diamond member
diamond member
 
Posts: 14932
Joined: Tue 18 Jun, 2002 11:36 pm
Location: Sydney, Australia


Return to Web Design and Page Coding

Who is online

Registered users: Bing [Bot], Exabot [Bot], Google [Bot]
cron