مشکل با لایه !

fahimehf

Member
با سلام
منوی من فلشی و توی یک لایه با z-index:2 گذاشتمش .
کنار منو یک فریم دارم که اونم توی یک لایه با z-index:0 هستش .
توی فریم یک جدول با چهار خونه دارم.
حالا مشکلم :
وقتی زیرمنو باز میشه قسمتی ا زاون که با خونه ای از جدول تداخل داره نشون داده نمیشه . یعنی زیرمنو ناقص !
و نصفش زیر مثلا عکسی که توی اون خونه گذاشتم .
راه حل چیه ؟
 

echessdesign

مدیر انجمن طراحی وب
درود بر شما
در ابتدا با ید این مورد رو متذکر بشم که کد صفحه رو جهت بررسی قرار بدهید.
و دوم اینکه آیا مقدار خصیصه position برابر با absolute هست؟
 

fahimehf

Member
این کد صفحه اصلیم .
HTML:
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
  <style type=text/css>
   #Banner
     {
       position:absolute;
       height:135px;
       width:800px;       
       top:0px;
       right:100px;
       left:100px;
            }
    #MainMenu
     {
	position:absolute;
	top:136px;
	right:100px;
	left:100px;
	background-color: #F5F8FA;
	width: 800px;
	height: 25px;
	z-index: 0;
           } 
    
    #RightMenu
     {
	position:absolute;
	height:600px;
	top:160px;
	right:100px;
	width: 81px;
            } 
   
    #LeftMenu
     {
	position:absolute;
	height:599px;
	top:161px;
	left:100px;
	width: 82px;
      } 
     #Layer
     {
	position:absolute;
	width: 800px;
	height: 400px;
	top:160px;
	right:100px;
	left:100px;
	z-index: -1;      
      }
     #MainFrame
     {
       position:absolute;
       top:160px;
       height: 600px;    
       width:636px;
       right:182px;
       left:182px;
       bgcolor:blue;       
             
      }
     #Clock
     {
       position:absolute;
       width: 318px;
       height: 300px;
       top:0px;
       right:0px;
       left:318px;
      
      }
    #Animation
     {
       position:absolute;
       width: 318px;
       height: 300px;
       top:0px;
       right:318px;
       left:0px;
      
      }
    #Message
     {
       position:absolute;
       width: 318px;
       height: 300px;
       top:300px;
       right:0px;
       left:318px;
     
      }
    #Picture
     {
       position:absolute;
       width: 318px;
       height: 300px;
       top:300px;
       right:318px;
       left:0px;
      
      }
    #Footer_Mail
     {
       position:absolute;
       width: 800px;
       height: 4px;       
       top:760px;
       right:100px;
       left:100px;
      } 
.style3 {
	font-size: 12px;
	font-weight: bold;
	font-family: tahoma;
	color: #000000;
}
  .style4 {color: #696E82}
.style6 {
	font-size: 12px;
	font-weight: bold;
}
  a:link {
	text-decoration: none;
	color: #000033;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
	color: #000066;
}
a:active {
	text-decoration: none;
}
  </style>
   
<body background="3.jpg">
<font face="tahoma" size="12">
 <div id="Banner" style="visibility: visible">  
    <img border="0" src="b1.jpg" width="800" height="135"></div>
</font>
<div class="style3" id="MainMenu" style="visibility: visible">
  <div align="center">
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="800" height="25">
      <param name="movie" value="main.swf">
      <param name="quality" value="high">
      <embed src="main.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="800" height="25"></embed>
    </object>
  </div>
</div>
 <font face="tahoma" size="-2"><div id="Layer" style="width: 800; height: 600; background-color:#F5F8FA; visibility:visible"></div>
</font>
<div id="MainFrame" style="width: 636px; height: 600px; background-color:#FFFFFF; z-index:0; position:absolute; visibility:visible"><font size="-2" face="tahoma">
  <iframe src="mainframe_mainpage.php" name="main" width="630" height="585" frameborder="0" border="0" style="border-left-width: 1px; border-right: 1px solid #FF0000; border-left: 1px solid #FF0000; border-bottom-width: 1px" scrolling="auto"> Your browser does not support inline frames or is currently configured not to display inline frames. </iframe>
</font></div>
<font face="tahoma" size="-2"><div id="Date">
</div>

</font>
<div id="RightMenu" style="position: absolute;  z-index:2; left:699px; top:161px">
  <p align="center">
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="200" height="400">
      <param name="movie" value="Rm.swf">
      <param name="quality" value="high">
      <param name="wmode" value="transparent">
      <embed src="Rm.swf" width="200" height="400" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
    </object>
  </p>
</div>

<div id="LeftMenu" style="z-index: 2; visibility:visible">
   <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="200" height="400">
    <param name="movie" value="LM1.swf">
    <param name="quality" value="high">
	<param name="wmode" value="transparent">
    <embed src="LM1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="200" height="400" wmode="transparent"></embed>
  </object>
<p align="center" class="style4"></div>
 
 <font face="tahoma" size="-2"><div id="Footer_Mail" style="background-color: #C6CBDF; visibility:visible">
	</div> 
</font>
</body>

</html>
اینم کد فریمم .
PHP:
<html dir="rtl">
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>New Page 4</title>
</head>
<style type="text/css">
#Date
     {
	position:absolute;
	top:200px;
	right:50px;
	visibility: visible;
      }
#main {z-index:0;}
#adm{position:absolute; top:501px; right:436px;}
a:link {
	color: #000000;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
</style>
<body> <font face="tahoma" size="-1">
<?php //   تصاویر=0 , انیمیشن=1 , مطالب کوتاه=2
 $table_name=array('تصاویر','انیمیشن','مطالب کوتاه');
 $files=array('','',''); // files addres set $files array
 // Connect DB
 require('connect_to_mysql.php');
 mysql_select_db('kanoon');
 
 for ($i=0;$i<=2;$i++)
   {
   $query="select id from ids
           where noe='$table_name[$i]'";
   $result=mysql_query($query);
   if ($result)
      $row=mysql_fetch_row($result);
   if (!$row)
     echo 'not Exist in ids table';
   else
     $table_name[$i]=$row[0];
   }
 for ($i=0;$i<=2;$i++)
   {
   $query="select file_add from mpage
           where view='1' && id='$table_name[$i]'";
   $row=mysql_fetch_row(mysql_query($query));
   if ($row)
     $files[$i]=$row[0];
   else
     {
	  $query="select file_add from mpage
	          where id='$table_name[$i]'";
      $result=mysql_query($query);
      $row=mysql_fetch_row($result);
  	  $num=mysql_num_rows($result);
	  if (!$row)
	    {
	     echo 'related case not exist.';
	     }
	  else
	  $files[$i]=$row[0];
//	  $files[$i]=$row[$num];
      }
	}?>
	<div id="main">
<table width="630" height="490" border="0">
  <tr>
  
    <th width="315"height="245" scope="col"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="259" height="184" >
      <param name="quality" value="high"><param name="SRC" value="Clock.swf">
       </object><font size="-1"><?php require('showdate.php');?></font></th>
	   
    <th width="315" height="245" scope="col"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="233" height="173" align="middle">
      <?php echo"<param name='movie' value='$files[1]'>";?>
      <param name="quality" value="high">
      <?php echo"<embed src='$files[1]' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='259' height='184'></embed>";?>
      <br>
      </object></th>
    
  </tr>
  <tr>
  
    <td width="315"height="245" ><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="259" height="184" align="middle"></object>
      <?php echo"<param name='movie' value='$files[2]'>";?>
      <param name="quality" value="high"></      <?php echo"<embed src='$files[2]' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='259' height='184'>";?></embed>
    </object></td>
	
	<td width="315"height="245" ><?php echo"<img src='$files[0]' width='259' height='184'>";?></td>
  </tr>
</table> </div>
</body>

</html>
منتظر نظراتتون هستم .
 
آخرین ویرایش:

جدیدترین ارسال ها

بالا