[Javascript] Frame

Yi Li yili1998 at yahoo.com
Fri Mar 23 12:44:52 CST 2001


Thanks Mark:

I tryed putting marginheight & marginwidth attributes
in the FRAME also, still not centered( v-center). here
is the nav.html.

Yi
-------------------------------------------------------
<html>
<head>
<title>company page</title>
<SCRIPT LANGUAGE="JavaScript">
<!--
if (document.images)
 {
    homeoff = new Image();  
    homeoff.src = "home.gif";    
    homeon = new Image();    
    homeon.src = "homeRO.gif";    

    aboutusoff = new Image();  
    aboutusoff.src = "about.gif";    
    aboutuson = new Image();    
    aboutuson.src = "aboutRO.gif";    

    servicesoff = new Image();  
    servicesoff.src = "services.gif";    
    serviceson = new Image();    
    serviceson.src = "servicesRO.gif"; 
 
    clientsoff = new Image();  
    clientsoff.src = "clients.gif";    
    clientson = new Image();    
    clientson.src = "clientsRO.gif"; 

    orderoff = new Image();  
    orderoff.src = "order.gif";    
    orderon = new Image();    
    orderon.src = "orderRO.gif"; 
 }

 function On(imageName)
  {
   if (document.images)
    {
      document[imageName].src =
eval(imageName+"on.src");
    }
  }
 function Off(imageName)
  {
   if (document.images)
    {
      document[imageName].src =
eval(imageName+"off.src");
    }
  }

 //-->
</SCRIPT>
</head>

<body background="back.gif">
<table border="0" cellspacing="5" cellpadding="0"
align="left">
<TR>  
  <TD ><IMG SRC="logo2.gif" border="0" height="59"
Valign="top"></TD>

 
<TD>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  <TD><A HREF="home.html" target="frame3" onmouseover
= "On('home')" onmouseout = "Off('home')">
      <IMG SRC="home.gif" NAME="home" BORDER="0"
alt="Home Page"></A>
  </TD>
  <TD><A HREF="aboutus.html" target="frame3"
onmouseover = "On('aboutus')" onmouseout =
"Off('aboutus')">
      <IMG SRC="about.gif" NAME="aboutus" BORDER="0"
alt="About us"></A>
  </TD>
  <TD><A HREF="services.html" target="frame3"
onmouseover = "On('services')" onmouseout =
"Off('services')">
      <IMG SRC="services.gif" NAME="services"
BORDER="0" alt="Services"></A>
  </TD>
  <TD><A HREF="clients.html" target="frame3"
onmouseover = "On('clients')" onmouseout =
"Off('clients')">
      <IMG SRC="clients.gif" NAME="clients" BORDER="0"
alt="Clients"></A>
  </TD> 
  <TD><A HREF="order.html" target="frame3" onmouseover
= "On('order')" onmouseout = "Off('order')">
      <IMG SRC="order.gif" NAME="order" BORDER="0"
alt="Order Information"></A>
  </TD>  
</TR>
</table>
</body>
</html>
---------------------end-------------------------------
--- "Rees, Mark (TWIi London)" <mrees at twii.net> wrote:
> Try putting the marginheight & marginwidth
> attributes in the FRAME tag not
> the FRAMESET. 
> 
> If that doesn't work how about showing us the code
> of nav.html?
> 
> Mark
> 
> -----Original Message-----
> From: Yi Li [mailto:yili1998 at yahoo.com]
> Sent: 23 March 2001 14:54
> To: javascript at LaTech.edu
> Subject: RE: [Javascript] Frame
> 
> 
> Thanks Mark.
> Yes, I did. Here is the code, also I used table to
> control gifs.
>
-------------------------------------------------------
> <FRAMESET ROWS="60,*" BORDER="0" FRAMEBORDER=NO
> SCROLLING="NO" MARGINHEIGHT="0" MARGINWIDTH="0"
> NORESIZE>
>     <FRAME SRC="nav.html" NAME="frame1"
> SCROLLING="NO">
>     <FRAMESET COLS="30%,*" BORDER="0" MARGINHEIGHT=5
> MARGINWIDTH=10 NORESIZE>
>         <FRAME SRC="left.html" NAME="frame2"
> MARGINHEIGHT=5 MARGINWIDTH=10 NORESIZE>
> 	<FRAME SRC="main.html" NAME="frame3" MARGINHEIGHT=3
> MARGINWIDTH=3 NORESIZE>
>     </FRAMESET>
> </FRAMESET>
>
-------------------------------------------------------
> 
> --- "Rees, Mark (TWIi London)" <mrees at twii.net>
> wrote:
> > Hello
> > 
> > Have you got this in your frame tag? 
> > 
> > marginwidth="0" marginheight="0" 
> > 
> > Mark
> > 
> > -----Original Message-----
> > From: Yi Li [mailto:yili1998 at yahoo.com]
> > Sent: 23 March 2001 07:24
> > To: javascript at LaTech.edu
> > Subject: [Javascript] Frame
> > 
> > 
> > Hi, all:
> > 
> > I try to set home page with a navigator frame (top
> > of
> > the window),
> > This frame contains a logo (width="117"
> height="59")
> > and 5 rollover buttons (about 1/3 height of logo),
> I
> > want ROW="60,*",logo and buttons need to be
> > centered.
> > the logo just shows part of and cut by bottom of
> the
> > frame edge,  buttons just right on the edge, I
> tried
> > Valign="TOP", it doesn't work. Could anyone help
> > with
> > this? Please see attached gif.
> > Thank you!
> > 
> > 
> > Yi
> > 
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Get email at your own domain with Yahoo! Mail. 
> > http://personal.mail.yahoo.com/
> > 
> > _______________________________________________
> > Javascript mailing list
> > Javascript at LaTech.edu
> > http://www.LaTech.edu/mailman/listinfo/javascript
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail. 
> http://personal.mail.yahoo.com/
> 
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> http://www.LaTech.edu/mailman/listinfo/javascript
> 
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> http://www.LaTech.edu/mailman/listinfo/javascript


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/




More information about the Javascript mailing list