עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

עזרה עם תפריט נפתח

Featured Replies

פורסם

יש לי בעיה עם התפריט שבניתי

זה הקוד:

<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>
<tr>
<td onmouseover="showHideTable('עמוד ראשי')" onmouseout="showHideTable('עמוד ראשי')">
<a href="home.html">עמוד ראשי</a><br>
<div class="menu" id="עמוד ראשי">
<a href="page1.html"> 1</a><br>
<a href="page2.html">2</a><br>
<a href="page3.html"> 3</a><br>
</div>
</td>
<td onmouseover="showHideTable('products')" onmouseout="showHideTable('products')">
<a href="products.html">מנגות</a><br>
<div class="menu" id="products">
<a href="page1.html">מנגות מתורגמות</a><br>
<a href="page2.html">מנגות להורדה</a><br>
<a href="page3.html">עזרה </a><br>
</div>
</td>
<td onmouseover="showHideTable('contacts')" onmouseout="showHideTable('contacts')">
<a href="contacts.html">contacts</a><br>
<div class="menu" id="contacts">
<a href="mailto:shlomi@www.com">Sales</a><br>
<a href="mailto:yoav@www.com">Marketing</a><br>
<a href="mailto:david@www.com">Management</a><br>
</div>
</td>
<td onmouseover="showHideTable('פורום')" onmouseout="showHideTable('פורום')">
<a href="search.html">פורום</a><br>
<div class="menu" id="פורום">
<a href="search.asp?keyword=book">ראשי</a><br>
<a href="search.asp?keyword=block">הרשמה</a><br>
</div>
</td>
</tr>
</table>



</body>
</html>

עכשיו יש לי שאלות

1.איך אני עושה שיהיה רקע לתפריט שנפתח

2.איך בקטע של המנגות אני עושה שזה לא ירד שורה

פורסם

צבע רקע: background-color: #ccc; למשל, תוסיף בין התגית פתיחה לסגירה של <style>

בשביל שלא ירד שורה תוסיף white-space: nowrap; באותו מקום של הצבע רקע.

ואז זה צריך להראות ככה:

<style type="text/css">
div.menu {
position:absolute;
visibility:hidden;
white-space: nowrap;
background-color: #ccc;
}
</style>

פורסם
  • מחבר

תודה רבה לך אבל יש לי עוד שאלה

1.איך אני יוצר רקע גם לחלק שהוא לא נפתח

פורסם

במקום

<a href="home.html">עמוד ראשי</a><br>

תעשה:

<a href="home.html" style="background-color: #ccc;">עמוד ראשי</a><br>

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.