17-01-06, 16:24
|
# 8
|
A Al Alm Almo Almog! תודה על תרומתך!
|
ציטוט:
נכתב במקור על ידי Homie
הנה לך סקריפט כמו של enterserv:
HTML קוד:
</script>
function King2006() {
props=window.open('http://www.walla.co.il', 'poppage', 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=0, width=440, height=320');
}
</script>
ובקישור בחבילה במקום לכתוב: http://www.blah.co.il
תכתוב:
HTML קוד:
<a href="javascript:King2006()">
הסברים:
width: רוחב החלון הקופץ
height: גובה החלון הקופץ
windows.open: הכתובת שנפתחת
|
תיקון קטן.
window.open זאת הפקודה או איך שלא קוראים לזה שמגדירה שיפתח חלון חדש.
www.walla.co.il
במקום זה צריך לבוא כתובת העמוד.
PHP קוד:
<script type="text/javascript"> function King2006() { props=window.open('http://www.walla.co.il', 'poppage', 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=0, width=440, height=320'); } </script>
בשביל מה צריך props=?
למה לא לכתוב ישר:
PHP קוד:
<script type="text/javascript"> function King2006() { window.open('http://www.walla.co.il', 'poppage', 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=0, width=440, height=320'); } </script>
בלי השווה.
__________________
דוא"ל: almog.zimel ב ג'מייל נקודה קום מסנג'ר: almog שטרודל freetopsite נקודה co נקודה il
|
|
|