לוגו אתר Fresh          
 
 
  אפשרות תפריט  ראשי     אפשרות תפריט  צ'אט     אפשרות תפריט  מבזקים     אפשרות תפריט  צור קשר     חץ שמאלה ‎print ‎"Hello World!"; if‎ ‎not rules.‎know ‎then rules.‎read(); חץ ימינה  

לך אחורה   לובי הפורומים > מחשבים > תכנות ובניית אתרים
שמור לעצמך קישור לדף זה באתרי שמירת קישורים חברתיים
תגובה
 
כלי אשכול חפש באשכול זה



  #1  
ישן 02-03-2008, 10:12
  reemh7 reemh7 אינו מחובר  
 
חבר מתאריך: 26.02.08
הודעות: 11
עזרה עזרה בתפריט נפתח

אני בונה אתר ועשיתי בו תפריט נפתח שאמור להיפתח ללמטה אך משום מה הוא נפתח ללמטה אך לצד מישהו יכול לומר לי למה/ מה אני צריך לשנות כדי שהוא יפתח בדיוק מתחת לתמונה?

<html>
<head>
<script language="javascript">
function showHideTable(menuId)
{
var obj=document.getElementById(menuId)
obj.style.visibility=(obj.style.visibility=="visible"?"hidden":"visible")
}
</script>
<style>
div.menu
{
position:absolute ;
visibility:hidden
}
</style>
</head>
<body>
<table align="center" cellspacing="0" cellpadding="0">
<tr>
<td onmouseover="showHideTable('i')" onmouseout="showHideTable('i')">
<IMG SRC="../images/part_i.png">
<div class="menu" id="i">
<img src="../images/buttenB.gif" width="50"><br>
<img src="../images/buttenB.gif" width="50"><br>
<img src="../images/buttenB.gif" width="50"><br>
</div>
</td>
<td onmouseover="showHideTable('h')" onmouseout="showHideTable('h')">
<IMG SRC="../images/part_h.png">
<div class="menu" id="h">
<table align="center">
<br><br>
<tr><td><img src="../images/buttenB.gif" width="50"></tr></tr>
<tr><td><img src="../images/buttenB.gif" width="50"></tr></tr>
<tr><td><img src="../images/buttenB.gif" width="50"></tr></tr>
</table>
</div>
</td>
<td onmouseover="showHideTable('g')" onmouseout="showHideTable('g')">
<IMG SRC="../images/part_g.png" >
<div class="menu" id="g">
<table align="center">
<br><br>
<tr><td><img src="../images/buttenB.gif" width="50"></tr></tr>
<tr><td><img src="../images/buttenB.gif" width="50"></tr></tr>
<tr><td><img src="../images/buttenB.gif" width="50"></tr></tr>
</table>
</div>
</td>
<td onmouseover="showHideTable('f')" onmouseout="showHideTable('f')">
<IMG SRC="../images/part_f.png" >
<div class="menu" id="f">
<table align="center">
<br><br>
<tr><td><img src="../images/buttenB.gif" width="50"></tr></tr>
<tr><td><img src="../images/buttenB.gif" width="50"></tr></tr>
<tr><td><img src="../images/buttenB.gif" width="50"></tr></tr>
</table>
</div>
</td>
<td onmouseover="showHideTable('e')" onmouseout="showHideTable('e')">
<IMG SRC="../images/part_e.png">
<div class="menu" id="e">
<table align="center">
<br><br>
<tr><td><img src="../images/buttenB.gif" width="50"></tr></tr>
<tr><td><img src="../images/buttenB.gif" width="50"></tr></tr>
<tr><td><img src="../images/buttenB.gif" width="50"></tr></tr>
</table>
</div>
</td>
<td onmouseover="showHideTable('d')" onmouseout="showHideTable('d')">
<IMG SRC="../images/part_d.png" >
<div class="menu" id="d">
<table align="center">
<br><br>
<tr><td><img src="../images/buttenB.gif" width="50"></tr></tr>
<tr><td><img src="../images/buttenB.gif" width="50"></tr></tr>
<tr><td><img src="../images/buttenB.gif" width="50"></tr></tr>
</table>
</div>
</td>
<td onmouseover="showHideTable('c')" onmouseout="showHideTable('c')">
<IMG SRC="../images/part_c.png">
<div class="menu" id="c">
<table align="center">
<br><br>
<tr><td><img src="../images/buttenB.gif" width="50"></tr></tr>
<tr><td><img src="../images/buttenB.gif" width="50"></tr></tr>
<tr><td><img src="../images/buttenB.gif" width="50"></tr></tr>
</table>
</div>
</td>
<td onmouseover="showHideTable('b')" onmouseout="showHideTable('b')">
<IMG SRC="../images/part_b.png">
<div class="menu" id="b">
<table align="center">
<br><br>
<tr><td><img src="../images/buttenB.gif" width="50"></tr></tr>
<tr><td><img src="../images/buttenB.gif" width="50"></tr></tr>
<tr><td><img src="../images/buttenB.gif" width="50"></tr></tr>
</table>
</div>
</td>
<td onmouseover="showHideTable('a')" onmouseout="showHideTable('a')">
<IMG SRC="../images/part_a.png">
<div class="menu" id="a">
<table align="center">
<br><br>
<tr><td><img src="../images/buttenB.gif" width="50"></tr></tr>
<tr><td><img src="../images/buttenB.gif" width="50"></tr></tr>
<tr><td><img src="../images/buttenB.gif" width="50"></tr></tr>
</table>
</div>
</td>
</tr>
</table>
</body>
</html>
תגובה ללא ציטוט תגובה עם ציטוט חזרה לפורום
  #3  
ישן 03-03-2008, 20:14
  reemh7 reemh7 אינו מחובר  
 
חבר מתאריך: 26.02.08
הודעות: 11
בתגובה להודעה מספר 2 שנכתבה על ידי ShoobyD שמתחילה ב "למה לא עשית את שאר התפריטים..."

קודם כל תודה על ההתיחסות.
ניסיתי את מה שאתה אומר ובכל זאת זה לא מצליח.
הנה הקוד אחרי התיקון, אם מישו יכול להגיד לי מה הטעות אני אודה לו מאוד.
קוד PHP:
 <html>
<
head>
<
script language="javascript">
function 
showHideTable(menuId)
{
    var 
obj=document.getElementById(menuId)
    
obj.style.visibility=(obj.style.visibility=="visible"?"hidden":"visible")
}
</script>
<style>
div.menu
{
position:absolute ;
visibility:hidden
}
</style>
</head>
<body>
<table align="center" cellspacing="0" cellpadding="0">
<tr>
    <td onmouseover="showHideTable('i')" onmouseout="showHideTable('i')">
     <IMG SRC="../images/part_i.png">
     <div class="menu" id="i">
     <br><br>
            <img src="../images/buttenB.gif" width="50">
         <img src="../images/buttenB.gif" width="50">
            <img src="../images/buttenB.gif" width="50">
     </div>
    </td>
    <td onmouseover="showHideTable('h')" onmouseout="showHideTable('h')">
     <IMG SRC="../images/part_h.png">
     <div class="menu" id="h">
     <br><br>
         <img src="../images/buttenB.gif" width="50">
         <img src="../images/buttenB.gif" width="50">
         <img src="../images/buttenB.gif" width="50">
     </div>
    </td>
    <td onmouseover="showHideTable('g')" onmouseout="showHideTable('g')">
     <IMG SRC="../images/part_g.png" >
     <div class="menu" id="g">
     <br><br>
         <img src="../images/buttenB.gif" width="50">
         <img src="../images/buttenB.gif" width="50">
         <img src="../images/buttenB.gif" width="50">
     </div>
    </td>
    <td onmouseover="showHideTable('f')" onmouseout="showHideTable('f')">
     <IMG SRC="../images/part_f.png" >
     <div class="menu" id="f">
     <br><br>
         <img src="../images/buttenB.gif" width="50">
         <img src="../images/buttenB.gif" width="50">
         <img src="../images/buttenB.gif" width="50">
     </div>
    </td>
    <td onmouseover="showHideTable('e')" onmouseout="showHideTable('e')">
     <IMG SRC="../images/part_e.png">
     <div class="menu" id="e">
     <br><br>
            <img src="../images/buttenB.gif" width="50">
         <img src="../images/buttenB.gif" width="50">
            <img src="../images/buttenB.gif" width="50">
     </div>
    </td>
    <td onmouseover="showHideTable('d')" onmouseout="showHideTable('d')">
     <IMG SRC="../images/part_d.png" >
     <div class="menu" id="d">
     <br><br>
             <img src="../images/buttenB.gif" width="50">
            <img src="../images/buttenB.gif" width="50">
         <img src="../images/buttenB.gif" width="50">
     </div>
    </td>
    <td onmouseover="showHideTable('c')" onmouseout="showHideTable('c')">
     <IMG SRC="../images/part_c.png">
     <div class="menu" id="c">
     <br><br>
            <img src="../images/buttenB.gif" width="50">
         <img src="../images/buttenB.gif" width="50">
            <img src="../images/buttenB.gif" width="50">
     </div>
    </td>
    <td onmouseover="showHideTable('b')" onmouseout="showHideTable('b')">
     <IMG SRC="../images/part_b.png">
     <div class="menu" id="b">
     <br><br>
            <img src="../images/buttenB.gif" width="50">
         <img src="../images/buttenB.gif" width="50">
            <img src="../images/buttenB.gif" width="50">
     </div>
    </td>
    <td onmouseover="showHideTable('a')" onmouseout="showHideTable('a')">
     <IMG SRC="../images/part_a.png">
     <div class="menu" id="a">
     <br><br>
         <img src="../images/buttenB.gif" width="50">
         <img src="../images/buttenB.gif" width="50">
         <img src="../images/buttenB.gif" width="50">
     </div>
    </td>
</tr>
</table>
</body>
</html> 
תגובה ללא ציטוט תגובה עם ציטוט חזרה לפורום
  #4  
ישן 03-03-2008, 22:17
  DCD DCD אינו מחובר  
 
חבר מתאריך: 17.05.05
הודעות: 7,321
מצאתי פתרון עקום:
בתגובה להודעה מספר 3 שנכתבה על ידי reemh7 שמתחילה ב "קודם כל תודה על..."

קוד:
<html> <head> <script language="javascript"> function showHideTable(menuId) { var obj=document.getElementById(menuId) obj.style.visibility=(obj.style.visibility=="visible"?"hidden":"visible") } </script> <style> div.menu { position:absolute; /*visibility:hidden;*/ } .myImg { float:right; } </style> </head> <body> <table align="center" cellspacing="0" cellpadding="0"> <tr> <td onmouseover="showHideTable('i')" onmouseout="showHideTable('i')"> <IMG SRC="../images/part_i.png" class='myImg'> <div class="menu" id="i"> <br><br> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> </div> </td> <td onmouseover="showHideTable('h')" onmouseout="showHideTable('h')"> <IMG SRC="../images/part_h.png" class='myImg'> <div class="menu" id="h"> <br><br> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> </div> </td> <td onmouseover="showHideTable('g')" onmouseout="showHideTable('g')"> <IMG SRC="../images/part_g.png" class='myImg'> <div class="menu" id="g"> <br><br> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> </div> </td> <td onmouseover="showHideTable('f')" onmouseout="showHideTable('f')"> <IMG SRC="../images/part_f.png" class='myImg'> <div class="menu" id="f"> <br><br> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> </div> </td> <td onmouseover="showHideTable('e')" onmouseout="showHideTable('e')"> <IMG SRC="../images/part_e.png" class='myImg'> <div class="menu" id="e"> <br><br> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> </div> </td> <td onmouseover="showHideTable('d')" onmouseout="showHideTable('d')"> <IMG SRC="../images/part_d.png" class='myImg'> <div class="menu" id="d"> <br><br> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> </div> </td> <td onmouseover="showHideTable('c')" onmouseout="showHideTable('c')"> <IMG SRC="../images/part_c.png" class='myImg'> <div class="menu" id="c"> <br><br> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> </div> </td> <td onmouseover="showHideTable('b')" onmouseout="showHideTable('b')"> <IMG SRC="../images/part_b.png" class='myImg'> <div class="menu" id="b"> <br><br> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> </div> </td> <td onmouseover="showHideTable('a')" onmouseout="showHideTable('a')"> <IMG SRC="../images/part_a.png" class='myImg'> <div class="menu" id="a"> <br><br> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> </div> </td> </tr> </table> </body> </html>
תגובה ללא ציטוט תגובה עם ציטוט חזרה לפורום
  #6  
ישן 04-03-2008, 13:30
  DCD DCD אינו מחובר  
 
חבר מתאריך: 17.05.05
הודעות: 7,321
בתגובה להודעה מספר 5 שנכתבה על ידי reemh7 שמתחילה ב "תודה על התגובה"

הקוד החדש:

קוד:
<html> <head> <script language="javascript"> function showHideTable(menuId) { var obj=document.getElementById(menuId) obj.style.visibility=(obj.style.visibility=="visible"?"hidden":"visible") } </script> <style> div.menu { position:absolute; visibility:hidden; } .myImg { float:right; } </style> </head> <body> <table align="center" cellspacing="0" cellpadding="0"> <tr> <td onmouseover="showHideTable('i')" onmouseout="showHideTable('i')"> <IMG SRC="../images/part_i.png" class='myImg'> <div class="menu" id="i"> <br><br> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> </div> </td> <td onmouseover="showHideTable('h')" onmouseout="showHideTable('h')"> <IMG SRC="../images/part_h.png" class='myImg'> <div class="menu" id="h"> <br><br> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> </div> </td> <td onmouseover="showHideTable('g')" onmouseout="showHideTable('g')"> <IMG SRC="../images/part_g.png" class='myImg'> <div class="menu" id="g"> <br><br> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> </div> </td> <td onmouseover="showHideTable('f')" onmouseout="showHideTable('f')"> <IMG SRC="../images/part_f.png" class='myImg'> <div class="menu" id="f"> <br><br> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> </div> </td> <td onmouseover="showHideTable('e')" onmouseout="showHideTable('e')"> <IMG SRC="../images/part_e.png" class='myImg'> <div class="menu" id="e"> <br><br> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> </div> </td> <td onmouseover="showHideTable('d')" onmouseout="showHideTable('d')"> <IMG SRC="../images/part_d.png" class='myImg'> <div class="menu" id="d"> <br><br> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> </div> </td> <td onmouseover="showHideTable('c')" onmouseout="showHideTable('c')"> <IMG SRC="../images/part_c.png" class='myImg'> <div class="menu" id="c"> <br><br> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> </div> </td> <td onmouseover="showHideTable('b')" onmouseout="showHideTable('b')"> <IMG SRC="../images/part_b.png" class='myImg'> <div class="menu" id="b"> <br><br> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> </div> </td> <td onmouseover="showHideTable('a')" onmouseout="showHideTable('a')"> <IMG SRC="../images/part_a.png" class='myImg'> <div class="menu" id="a"> <br><br> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> <img src="../images/buttenB.gif" width="50"> </div> </td> </tr> </table> </body> </html>


ציטוט:
התמונות המוסתרות שאמורות להופיע במעבר עכבר מופיעות כשנכנסים לדף נשארות שם עד שעוברים עם העכבר עליהן ומופיעות שוב כשעוברים על התמונה העליונה

זה קרה בגלל ששכחתי להסיר את תגי ההערה מה-CSS:
קוד:
/*visibility:hidden;*/


ציטוט:
בנוסף ברצף התמונות השני מימין התמונות לא מסודרות בטור אלא שתיים בשורה ואחת מתחתיהן

זה לא קורה אצלי... (השתמשתי ב-IE6)
תגובה ללא ציטוט תגובה עם ציטוט חזרה לפורום
  #10  
ישן 08-03-2008, 16:19
  reemh7 reemh7 אינו מחובר  
 
חבר מתאריך: 26.02.08
הודעות: 11
בתגובה להודעה מספר 1 שנכתבה על ידי reemh7 שמתחילה ב "עזרה בתפריט נפתח"

על מנת לנסות לפתור את הבעיה התחלתי לנסות למחוק חלקים מהסקריפט המקורי וגיליתי שכשאני מוריד את ה POSITION התפריט נפתח טוב אך ישנו רווח בין התא D לבין כל השאר.
השאלה שלי היא מה בדיוק עשיתי כשהורדתי את אותה התכונה (אני לא מבין גדול ב CSS ) ולמה הרווח הוא דווקא משני צידי התא הזה ולא במקום אחר אה וכמובן איך פותרים את זה.
קוד PHP:
 <html>
<
head>
<
script language="javascript">
function 
showHideTable(menuId)
{
    var 
obj=document.getElementById(menuId)
    
obj.style.visibility=(obj.style.visibility=="visible"?"hidden":"visible")
}
</script>
<style>
div.menu
{
visibility:hidden;
}
</style>
</head>
<body>
<table align="center" cellspacing="0" cellpadding="0">
<tr>
    <td onmouseover="showHideTable('i')" onmouseout="showHideTable('i')">
<IMG SRC="../images/part_i.png">
<div class="menu" id="i">
     <table>
            <tr><td><img src="../images/buttenB.gif" width="50"></td></tr>
            <tr><td><img src="../images/buttenB.gif" width="50"></td></tr>
            <tr><td><img src="../images/buttenB.gif" width="50"></td></tr>
     </table>
     </div>
</td>
    <td onmouseover="showHideTable('h')" onmouseout="showHideTable('h')">
     <IMG SRC="../images/part_h.png">
     <div class="menu" id="h">
        <table>
            <tr><td><img src="../images/buttenB.gif" width="50"></td></tr>
            <tr><td><img src="../images/buttenB.gif" width="50"></td></tr>
            <tr><td><img src="../images/buttenB.gif" width="50"></td></tr>
     </table>
     </div>
    </td>
    <td onmouseover="showHideTable('g')" onmouseout="showHideTable('g')">
     <IMG SRC="../images/part_g.png">
     <div class="menu" id="g">
     <table>
            <tr><td><img src="../images/buttenB.gif" width="50"></td></tr>
            <tr><td><img src="../images/buttenB.gif" width="50"></td></tr>
            <tr><td><img src="../images/buttenB.gif" width="50"></td></tr>
     </table>
     </div>
    </td>
    <td onmouseover="showHideTable('f')" onmouseout="showHideTable('f')">
     <IMG SRC="../images/part_f.png">
     <div class="menu" id="f">
     <table>
            <tr><td><img src="../images/buttenB.gif" width="50"></td></tr>
            <tr><td><img src="../images/buttenB.gif" width="50"></td></tr>
            <tr><td><img src="../images/buttenB.gif" width="50"></td></tr>
     </table>
     </div>
    </td>
    <td onmouseover="showHideTable('e')" onmouseout="showHideTable('e')">
     <IMG SRC="../images/part_e.png">
     <div class="menu" id="e">
     <table>
            <tr><td><img src="../images/buttenB.gif" width="50"></td></tr>
            <tr><td><img src="../images/buttenB.gif" width="50"></td></tr>
            <tr><td><img src="../images/buttenB.gif" width="50"></td></tr>
     </table>
     </div>
    </td>
    <td onmouseover="showHideTable('d')" onmouseout="showHideTable('d')">
     <IMG SRC="../images/part_d.png">
     <div class="menu" id="d">
     <table>
            <tr><td><img src="../images/buttenB.gif" width="50"></td></tr>
            <tr><td><img src="../images/buttenB.gif" width="50"></td></tr>
            <tr><td><img src="../images/buttenB.gif" width="50"></td></tr>
     </table>
     </div>
    </td>
    <td onmouseover="showHideTable('c')" onmouseout="showHideTable('c')">
     <IMG SRC="../images/part_c.png">
     <div class="menu" id="c">
     <table>
            <tr><td><img src="../images/buttenB.gif" width="50"></td></tr>
            <tr><td><img src="../images/buttenB.gif" width="50"></td></tr>
            <tr><td><img src="../images/buttenB.gif" width="50"></td></tr>
     </table>
     </div>
    </td>
    <td onmouseover="showHideTable('b')" onmouseout="showHideTable('b')">
     <IMG SRC="../images/part_b.png">
     <div class="menu" id="b">
     <table>
            <tr><td><img src="../images/buttenB.gif" width="50"></td></tr>
            <tr><td><img src="../images/buttenB.gif" width="50"></td></tr>
            <tr><td><img src="../images/buttenB.gif" width="50"></td></tr>
     </table>
     </div>
    </td>
    <td onmouseover="showHideTable('a')" onmouseout="showHideTable('a')">
     <IMG SRC="../images/part_a.png">
     <div class="menu" id="a">
     <table>
            <tr><td><img src="../images/buttenB.gif" width="50"></td></tr>
            <tr><td><img src="../images/buttenB.gif" width="50"></td></tr>
            <tr><td><img src="../images/buttenB.gif" width="50"></td></tr>
     </table>
     </div>
    </td>
</tr>
</table>
</body>
</html> 
תגובה ללא ציטוט תגובה עם ציטוט חזרה לפורום
תגובה

כלי אשכול חפש באשכול זה
חפש באשכול זה:

חיפוש מתקדם
מצבי תצוגה דרג אשכול זה
דרג אשכול זה:

מזער את תיבת המידע אפשרויות משלוח הודעות
אתה לא יכול לפתוח אשכולות חדשים
אתה לא יכול להגיב לאשכולות
אתה לא יכול לצרף קבצים
אתה לא יכול לערוך את ההודעות שלך

קוד vB פעיל
קוד [IMG] פעיל
קוד HTML כבוי
מעבר לפורום



כל הזמנים המוצגים בדף זה הם לפי איזור זמן GMT +2. השעה כעת היא 10:09

הדף נוצר ב 0.10 שניות עם 12 שאילתות

הפורום מבוסס על vBulletin, גירסא 3.0.6
כל הזכויות לתוכנת הפורומים שמורות © 2024 - 2000 לחברת Jelsoft Enterprises.
כל הזכויות שמורות ל Fresh.co.il ©

צור קשר | תקנון האתר