Просмотр полной версии : fullscreen в браузере.
хотелось бы сделать ссылочу на ХТМЛ страничке, которая открывала фуллскрином флэшку, Заранее благодарен за ответы.
начинающий
05.08.2004, 02:05
<script language=JavaScript>
var width=screen.width, height=screen.height;
var left = 0
var top = 0;
var styleStr =
'toolbar=no,location=no,directories=no,status=no,menubar=no,'+
'scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+
',left='+left+',top='+top;
var msgWindow = window.open("c:\\","", styleStr);
</script>
2 начинающий: Спасибо, почти то, что нужно. Страничка открывается автоматически, а мне нужно со ссылки... Как не старался у меня ничего не вышло :(
Raven B.
09.08.2004, 21:00
Оформи скрипт как ф-ю
<script language=JavaScript>
function foo(){
var width=screen.width, height=screen.height;
var left = 0
var top = 0;
var styleStr =
'toolbar=no,location=no,directories=no,status=no,menubar=no,'+
'scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+
',left='+left+',top='+top;
var msgWindow = window.open("c:\\","", styleStr);
}
</script>
А потом привяжи к событию. Например так.
<style>
.brdb {border: 1px solid black}
.brdbsel { border: 1px solid black;
background-color:#c5c5c5; }
</style>
<td width=25% align=center class=brdb
onclick=javascript:foo() onmouseover=this.className='brdbsel' onmouseout=this.className='brdb'
>
Some Link
</td>
Так, кажеться тоже можно но я не уверен.
<a onclick=javascript:foo() >Some Link</a>
Должно работать. С уважением. Ворон.
<script language=JavaScript>
function foo(){
var width=screen.width, height=screen.height;
var left = 0
var top = 0;
var styleStr =
'toolbar=no,location=no,directories=no,status=no,menubar=no,'+
'scrollbar=no,resizeble=no,copyhistory=yes,width='+width+',height='+height+
',left='+left+',top='+top;
var msgWindow = window.open("www.mail.ru","", styleStr);
}
</script>
<A HREF="javascript:foo()">Начать просмотр сайта.</a>
Вобщем-то что-то работает, но есть пару вопросов:
1. Хотелось бы, чтобы окно открывалось фуллСкрином т.е. чтобы пуска не было видно.
2. Как сделать, чтобы статус бар не отображал javascript:foo()
3. Почему-то не работает параметр resizeble=no. В предидущих примерах в названии параметра была допущена ошибка.
Народ, если кто знает как, помогите пож.
С уважением,
Greep.
http://www.flasher.ru/forum/showthread.php?threadid=18567
Попробуй приладить этот "хромлесс". Я его подсмотрел на http://www.ego7.net
Но там сейчас прошел редизайн и хромлесс выкинули.
Недостатки - если у XP включены/выключены стили отображения окон/папок, то получаются разные размеры окна хромлесс
Открывается хромлесс так:
javascript: openLoader(tvoi_URL);
<HTML>
<HEAD>
<meta http-equiv=Content-Type content="text/html;charset=windows-1251">
<script language=JavaScript>
<!--
function chromeless(u,n,W,H,X,Y,wNS,fSO,brd,min,tsz){
var s=",width="+W+",height="+H;
//var s=",width="+W+",height="+H;
var CWIN=window.open(u,n,wNS+s,true);
//var CWIN=window.open(u,n,wNS+s,true);
CWIN.moveTo(X,Y);
//CWIN.focus();
//CWIN.setURL=function(u) { if (this && !this.closed) { if (this.frames.main) this.frames.main.location.href=u; else this.location.href=u } }
//CWIN.closeIT=function() { if (this && !this.closed) this.close() }
//return CWIN;
}
//
function openIT(u, W, H, X, Y, n, b, x, m, r) {
var wNS = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0';
var fSO = 'scrolling=auto noresize';
var brd = b || 5;
var max = x || false;
var min = m || false;
var res = r || false;
var tsz = 20;
return chromeless(u,n,W,H,X,Y,wNS,fSO,brd,min,tsz);
}
var platform;
var browser;
var version;
version = parseInt(navigator.appVersion);
if (navigator.userAgent.indexOf('Win') == -1) {
platform = "Macintosh";
} else {
platform = "Windows";
}
if (navigator.appName.indexOf('Netscape') == -1) {
browser = "IE";
} else {
browser = "Netscape";
}
//
function openLoader(url) {
var winl = (window.screen.availWidth-250)/2;
var wint = (window.screen.availHeight-100)/2;
if ((platform == 'Windows') && (browser == 'IE')) {
openIT(url,screen.availWidth,screen.availHeight+28,-5,-23,'top',5,false,false,true);
var sw = window.screen.availWidth;
var sh = window.screen.availHeight;
var w = screen.availwidth+10;//250;
var h = screen.height;//100;
//win.resizeTo(w, h);
//top.window.resizeTo(w, h);
window.opener = top;
//window.close();
//win.moveTo((sw-w)/2, (sh-h)/2);
//top.moveTo(-0, -0);
} else {
if ((platform == 'Windows') && (browser == 'Netscape')) {
var nw = window.screen.availWidth;
window.open(url, 'top' );
window.opener = top;
//window.close();
} else {
window.open(url, 'top');
//top.window.resizeTo(250, 100);
//top.moveTo(winl, wint);
//top.window.resizeTo(window.screen.availWidth, window.screen.availHeight);
}
}
self.blur();
}
//-->
</script>
</HEAD>
<BODY>
<!-- Flash 7 ActiveX Object -->
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="/intensiv/misc/swflash.cab#version=7,0,0,0"
WIDTH="100%" HEIGHT="100%" id="login" standby="Loading in progress...">
<PARAM NAME=movie VALUE="%%login_swf%%">
<PARAM NAME=loop VALUE=false>
<PARAM NAME=menu VALUE=true>
<PARAM NAME=quality VALUE=autohigh>
<PARAM NAME=scale VALUE=noscale>
<PARAM NAME=wmode VALUE=transparent> <!-- Opaque -->
<!-- <PARAM NAME=align VALUE=B> -->
<!-- <PARAM NAME=salign VALUE=RT> -->
<PARAM NAME=bgcolor VALUE="#666666">
<EMBED src="%%login_swf%%" loop=false menu=false quality=autolow salign=T bgcolor=#666666
WIDTH="100%" HEIGHT="100%" NAME="index" ALIGN="top" TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>
</BODY>
</HTML>
FreeLander
11.08.2004, 20:14
Оригинал написал(а) greep
хотелось бы сделать ссылочу на ХТМЛ страничке, которая открывала фуллскрином флэшку, Заранее благодарен за ответы.
это тебе не сюда (http://www.flasher.ru/forum/showthread.php?s=&threadid=27390) случайно?
2FreeLander: Респект.
2All:
Задача: Оконо должно открываться ФуллСкрином. Тоесть занимать обсолютно весь экран.
даже задизебленной полоски от скролбара справа чтобы не было?
Работает на vBulletin ® версия 3.7.3. Copyright ©2000-2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Copyright © 1999-2008 Flasher.ru. All rights reserved.