PDA

View Full Version : Fullscreen بدون باز کردن صفحه جديد



spicirmkh
چهارشنبه 11 اردیبهشت 1387, 18:42 عصر
سلام

چطور مي توانم بدون اينکه صفحه جديد باز کنم IE بصورت full screen در آورد

سوال دوم : چطور مي شود Toolbar و address خاموش کرد و فقط صفحه بصورت fullscreen باشد و فقط دکمه Exit و Minim فعال باشد


با تشکر

spicirmkh
شنبه 14 اردیبهشت 1387, 18:45 عصر
سلام

دوستان برنامه نويس کسي جواب بلد است

twelve
شنبه 14 اردیبهشت 1387, 21:16 عصر
من فکر نمیکنم در حالت پیش فرض بشه پنجره اصلی رو با اسکریپت Customize کرد ، چیزی که به فکرم می رسه اینه که شما در صفحه اصلی (پدر) اسکریپتی بنویسی که به محض فراخوانی اون یک پنجره (فرزند) با مشخصاتی که لازم دارین باز کنه و خودش رو ببنده! اظلاعات رو هم در صفحه فرزند تمایش بدین!
--- این در حد سواد من ---

ehsan2007
شنبه 14 اردیبهشت 1387, 21:17 عصر
سورس کد یکی از وبلاگ های بلوگفا یا میهن بلاگ 3 رو نگاه کن جوابتو میگیری

spicirmkh
یک شنبه 15 اردیبهشت 1387, 08:23 صبح
سورس کد یکی از وبلاگ های بلوگفا یا میهن بلاگ 3 رو نگاه کن جوابتو میگیری

با سلام

اگر امکان دارد لينک سايت که مربوط به اين سوال است برايم بگذاريد

با تشکر

Mah
دوشنبه 16 اردیبهشت 1387, 10:10 صبح
سلام .
من هم را حل twelve (http://barnamenevis.org/forum/member.php?u=25822) را پیشنهاد می کنم .
به اضافه اینکه :

--------------------------------------------------



window.open(URL,name,specs,replace)

URL :
Optional. Specifies the URL of the page to open. If no URL is specified, a new window with about:blank
is opened
name :

Optional. Specifies the target attribute or the name of the window. The following values are supported:


_blank - URL is loaded into a new window. This is default
_parent - URL is loaded into the parent frame
_self - URL replaces the current page
_top - URL replaces any framesets that may be loaded
name - The name of the window

specs :
Optional. A comma-separated list of items. The following values are supported:



channelmode=yes|no|1|0 : Whether or not to display the window in theater mode. Default is no
directories=yes|no|1|0 : Whether or not to add directory buttons. Default is yes
fullscreen=yes|no|1|0 : Whether or not to display the browser in full-screen mode. Default is no. A window in full-screen mode must also be in theater mode
height=pixels : The height of the window. Min. value is 100
left=pixels : The left position of the window
location=yes|no|1|0 : Whether or not to display the address field. Default is yes
menubar=yes|no|1|0 : Whether or not to display the menu bar. Default is yes
resizable=yes|no|1|0 : Whether or not the window is resizable. Default is yes
resizable=yes|no|1|0 : Whether or not the window is resizable. Default is yes
scrollbars=yes|no|1|0 : Whether or not to display scroll bars. Default is yes
status=yes|no|1|0 : Whether or not to add a status bar. Default is yes
titlebar=yes|no|1|0 : Whether or not to display the title bar. Ignored unless the calling application is an HTML Application or a trusted dialog box. Default is yes
toolbar=yes|no|1|0 : Whether or not to display the browser toolbar. Default is yes
top=pixels : The top position of the window
width=pixels : The width of the window. Min. value is 100

replace :
Optional.Specifies whether the URL creates a new entry or replaces the current entry in the history list. The following values are supported:


true - URL replaces the current document in the history list
false - URL creates a new entry in the history list







--------------------------------------------------

مثال :

در این مثال آدرسhttp://www.Mah.Blogfa.com در مرورگر باز می شود .


<html>
<head>
<script type="text/javascript">
function open_win()
{
window.open("http://www.Mah.Blogfa.com")
}
</script>
</head>
<body> <input type=button value="Open Window" onclick="open_win()" /> </body>
</html>
مثال 2 :


در این مثال یک پنجره خالی باز می شود .


<html>
<body>
<script type="text/javascript">
myWindow=window.open('','','width=200,height=100')
myWindow.document.write("This is 'myWindow'")
myWindow.focus()
</script>
</body>
</html>

منبع : http://www.w3schools.com

برای اینکه راحتتر باشی .
همانطور که می بینید می توانید از خاصیت fullscreen برای تمام صفحه نمودن و menubar=no و ..... استفاده نمایید .
می توانی از شی Self استفاده کنی که پنجره جاری را صدا می زند .

موفق باشید .

spicirmkh
دوشنبه 16 اردیبهشت 1387, 16:10 عصر
من فکر نمیکنم در حالت پیش فرض بشه پنجره اصلی رو با اسکریپت Customize کرد ، چیزی که به فکرم می رسه اینه که شما در صفحه اصلی (پدر) اسکریپتی بنویسی که به محض فراخوانی اون یک پنجره (فرزند) با مشخصاتی که لازم دارین باز کنه و خودش رو ببنده! اظلاعات رو هم در صفحه فرزند تمایش بدین!
--- این در حد سواد من ---
وقتي پنجره پدر مي خواهد با دستور Close بسته بشود سوال مي کند بسته شود يا نه

پنجره فرزند وقتي Full Screen مي کنم کاملا همه صفحه مي گيرد من مي خواهد کليد Close و Minimom فعال باشد