עבור לתוכן
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.

איך משמיעים צליל באמצעות JS?

Featured Replies

פורסם

אני רוצה לעשות onmoseover על לינק, שישמיע צליל, אבל מה הפקודה להשמיע את הצליל בפונקציה? בשפת JavaScript

תודה :)

עריכה:

מצאתי את זה

http://www.javascriptkit.com/script/script2/soundlink.shtml

אבל זה לא עובד בFF, יש משהו שעובד בכל הדפדפנים?

פורסם
  • מחבר

מישהו? אני ממש צריך את זה.. וגם עברו 24 שעות.

ניסיתי את הקוד הבא, אבל גם זה לא עובד


<embed name="sound" src='sound_file.location' hidden=true autostart=false loop=false />

<a href="#" OnMouseOver="document.sound.play();­ return false;" OnMouseLeave="document.sound.stop();­ return false;">Hover over this link to Play

מצאתי את המדריך הזה

http://forums.digitalpoint.com/showpost.php?p=823264&postcount=5

אבל לא הבנתי אותו בשיט.

אשמח לעזרה...

תודה :)

ארכיון

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

דיונים חדשים

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.