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

פתיחת חלון חדש מתוך SWF שבתוך HTML

Featured Replies

פורסם

שלום

window.open אני מנסה לפתוח דף חדש בעזרת פונקציה

.אך לא הצלחתי להפעיל פונקציה בג'וואה סקריפט

בקוד של הכפתור כתוב כך

on (release)

{

getURL("javascript:newwin()");

}

HTMLוזה מה שכתוב ב

<html>

<head>

<SCRIPT language="JavaScript">

function newwin()

{

window.open('myPage.html','newPage','width=640,height=640,toolbar=no');

}

</SCRIPT>

</head>

<body>

<!--url's used in the movie-->

<a href="javascript:newwin()"></a>

<!--text used in the movie-->

<!-- saved from url=(0013)about:internet -->

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="Untitled-1">

<param name="allowScriptAccess" value="sameDomain" />

<param name="movie" value="Untitled-1.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="Untitled-1.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="Untitled-1" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" />

</object>

</body>

</html>

(התהפכו כאן תווים אך במקור זה בסדר)

תודה רבה מראש!

פורסם

אם יש לך רק פונקצייה אחת, אז למה לא להכניס אותה לSWF?

on (release)
{
getURL("javascript:window.open('myPage.html','newPage','width=640,height=640,toolbar=no');");
}

אני לא בטוח אם זה יעבוד, אבל בשבילי זה נראה קצת יותר טוב...

פורסם
  • מחבר

ניסיתי גם בצורה הזו, לא עבד לי משום מה. :-\

פורסם

לא מבינים כלום מהקוד שלך, תסדר אותו.

בכל מקרה, הנה מה שאני עשיתי:

on (release) {
getURL("javascript:openNewWindow('SportDiets.html','thewin', 'height=577,width=800,toolbar=no,scrollbars=no')");
}

תתעלם מהפרמטרים, הם לקוחים מהקוד שלי.

ואז בעמוד HTML:

<html xmlns="[url]http://www.w3.org/1999/xhtml"[/url] xml:lang="en" lang="en">
<head>
<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures) { newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
</script>

ארכיון

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

דיונים חדשים

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.