
22-05-2006, 10:59
|
|
|
|
חבר מתאריך: 17.05.05
הודעות: 7,321
|
|
|
....
שלחתי....בתגובה הראשונה שלי באשכול...
רק שעכשיו שיניתי קצת והנה השינוי:
קוד:
<td width="16%" valign="top" align="center">
<script language='JavaScript' type="text/javascript">
<!--
lastTopics = my_getbyid("lastTopics");
showit_lastTopics = function()
{
lastTopics.style.display = '';
}
hideit_lastTopics = function()
{
lastTopics.style.display = 'none';
}
// lastTopicsAct = my_getbyid("lastTopicsAct");
document.getElementById('lastTopicsAct').innerHTML .onmouseover = showit_lastTopics;
document.getElementById('lastTopicsAct').innerHTML .onmouseout = hideit_lastTopics;
//-->
</script>
<div class="tableborder" align='right' style="width: 90%;">
<div id='lastTopics' style="display:none;z-index:2; padding:8px; right: 50%;" class='fixedBox'>{$topics}
</div><div class='box' align='center' id='lastTopicsAct'>10 נושאים אחרונים</div>
מה שמוזר הוא, שלמרות שבקוד למעלה זה לא עובד, אז אם אני כותב את המאפיינים onmouseover ו- onmouseout ל-DIV אז זה פועל. זה מה שכתבתי וזה פעל:
קוד:
<div id='lastTopics' style="display:none;z-index:2; padding:8px; right: 50%;" class='fixedBox'>{$topics}
</div><div class='box' align='center' id='lastTopicsAct' onmouseover="document.getElementById('lastTopics').style.displa y = ''; " onmouseout="document.getElementById('lastTopics').style.displa y = 'none'; ">10 נושאים אחרונים</div>
( ה- {topics} זה שילוב ה-PHP)
אז מה לא טוב בקוד JS שכתבתי בהתחלה?
=\
|