Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] DIV in a DIV


  • From: javascript@xxxxxxxxxx (Muchacho, Laurent (TWIi London))
  • Subject: [Javascript] DIV in a DIV
  • Date: Tue, 28 Aug 2001 10:35:39 +0100

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C12FA4.CA80F2F8
Content-Type: text/plain;
	charset="iso-8859-1"

Hi Felix
 
I think you can have a try with that
 
document.parentLayer.document.childLayer.propertyName
 
I Think it will work 

[Muchacho, Laurent (TWIi London)] 
 
http://www.dansteinman.com/dynduo <http://www.dansteinman.com/dynduo> 
 
 
 -----Original Message-----
From: Felix [mailto:bruno.lanciau@xxxxxxx]
Sent: 28 August 2001 09:42
To: javascript@xxxxxxxxxx
Subject: [Javascript] DIV in a DIV



Here is my problem: (no problem with IE but with Netcape 4+)
 
I have got one div in an other div:
 
<DIV ID="boite1" style= "position: absolute;visibility:visible; top: 210px;
left : 10px; width: 500px; height: 80px; z-index:1 ;clip:rect(0,600,70,0) ;
"> 
 
 
<DIV ID="boite2" style="position: absolute;visibility:visible; top: 5px;
left : 1px;   width: 500px; height:100px; z-index:2
;clip:rect(0,600,200,0);">
 
.......
 
</DIV>
</DIV>
 
In a function 
    document.boite1.width=600; 
 
// Is OK, but how to do the same with boite2 ?
Neither  document.boite2.width=600 nor document.boite1.boite2.width=600 are
OK !
 
Thank you for help
 
Felix
 
    



------_=_NextPart_001_01C12FA4.CA80F2F8
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 5.00.3207.2500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=762293309-28082001>Hi 
Felix</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=762293309-28082001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=762293309-28082001>I 
think you can have a try with that</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=762293309-28082001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=762293309-28082001>document.parentLayer.document.childLayer.propertyName</SPAN></FONT></DIV>
<DIV><SPAN class=762293309-28082001></SPAN><FONT face=Tahoma></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=762293309-28082001>I 
Think it will work </SPAN></FONT></DIV>
<DIV><FONT face=Tahoma><BR><FONT size=2><SPAN class=762293309-28082001><FONT 
color=#0000ff face=Arial>[Muchacho, Laurent (TWIi 
London)]&nbsp;</FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN 
class=762293309-28082001></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><A 
href="http://www.dansteinman.com/dynduo";>http://www.dansteinman.com/dynduo</A></FONT></DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN 
class=762293309-28082001></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN 
class=762293309-28082001></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN 
class=762293309-28082001>&nbsp;</SPAN>-----Original Message-----<BR><B>From:</B> 
Felix [mailto:bruno.lanciau@xxxxxxx]<BR><B>Sent:</B> 28 August 2001 
09:42<BR><B>To:</B> javascript@xxxxxxxxxx<BR><B>Subject:</B> [Javascript] DIV in 
a DIV<BR><BR></DIV></FONT>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px"></FONT>
  <DIV><FONT face=Arial size=2>Here is my problem: (no problem with IE but with 
  Netcape 4+)</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>I have got one div in an other div:</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>&lt;DIV ID="boite1" style= "position: 
  absolute;visibility:visible; top: 210px; left : 10px; width: 500px; height: 
  80px; z-index:1&nbsp;</FONT><FONT face=Arial size=2>;clip:rect(0,600,70,0) ; 
  "&gt;</FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>&lt;DIV ID="boite2" style="position: 
  absolute;visibility:visible; top: 5px;&nbsp;&nbsp; left : 1px;&nbsp;&nbsp; 
  width: 500px; height:100px;</FONT><FONT face=Arial size=2> z-index:2 
  ;clip:rect(0,600,200,0);"&gt;</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>.......</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>&lt;/DIV&gt;</FONT></DIV>
  <DIV><FONT face=Arial size=2>&lt;/DIV&gt;</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>In a function </FONT></DIV>
  <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; document.boite1.width=600; 
  </FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>// Is OK, but how to do the same with boite2 
  ?</FONT></DIV>
  <DIV><FONT face=Arial size=2>Neither&nbsp;</FONT>&nbsp;<FONT face=Arial 
  size=2>document.boite2.width=600 nor document.boite1.boite2.width=600 are OK 
  !</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Thank you for help</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Felix</FONT></DIV>
  <DIV><FONT face=Arial size=2>&nbsp;</FONT></DIV>
  <DIV><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;<BR></FONT></DIV></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C12FA4.CA80F2F8--