powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / HTML, JavaScript, VBScript, CSS [игнор отключен] [закрыт для гостей] / Размер окна
17 сообщений из 17, страница 1 из 1
Размер окна
    #36061288
lenash
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Как открыть окно эклорера с заданными размерами?
...
Рейтинг: 0 / 0
Размер окна
    #36061342
Фотография Ex_Soft
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
тынць
_________________
"Helo, word!" - 17 errors 56 warnings
Posted via ActualForum NNTP Server 1.4
...
Рейтинг: 0 / 0
Размер окна
    #36061349
Фотография krvsa
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Нужно указать ему нужные значения...

авторSyntax

oNewWindow = window.open( [sURL] [, sName] [, sFeatures] [, bReplace])
Parameters

sURL Optional. String that specifies the URL of the document to display. If no URL is specified, a new window with about:blank is displayed.
sName Optional. String that specifies the name of the window. This name is used as the value for the TARGET attribute on a FORM or an A element. In Microsoft® Internet Explorer 5 and later, specifying the value _search opens sURL in the browser's search pane.
sFeatures Optional. String that specifies the window ornaments to display. The following features are supported: channelmode = { yes | no | 1 | 0 } Specifies whether to display the window in theater mode and show the channel band. The default is no.
directories = { yes | no | 1 | 0 } Specifies whether to add directory buttons. The default is yes.
fullscreen = { yes | no | 1 | 0 } Specifies whether to display the browser in a full-screen or normal window. The default is no, which displays the browser in a normal window. Use full-screen mode carefully. Because this mode hides the browser's title bar and menus, you should always provide a button or other visual clue to help the user close the window. ALT+F4 also closes the new window.
height = number Specifies the height of the window, in pixels. The minimum value is 100.
left = number Specifies the left position, in pixels. This value is relative to the upper-left corner of the screen.
location = { yes | no | 1 | 0 } Specifies whether to display the input field for entering URLs directly into the browser. The default is yes.
menubar = { yes | no | 1 | 0 } Specifies whether to display the menu bar. The default is yes.
resizable = { yes | no | 1 | 0 } Specifies whether to display resize handles at the corners of the window. The default is yes.
scrollbars = { yes | no | 1 | 0 } Specifies whether to display horizontal and vertical scroll bars. The default is yes.
status = { yes | no | 1 | 0 } Specifies whether to add a status bar at the bottom of the window. The default is yes.
titlebar = { yes | no | 1 | 0 } Specifies whether to display a title bar for the window. This parameter is ignored unless the caller is an HTML Application or a trusted dialog box. The default is yes.
toolbar = { yes | no | 1 | 0 } Specifies whether to display the browser toolbar, making buttons such as Back, Forward, and Stop available. The default is yes.
top = number Specifies the top position, in pixels. This value is relative to the upper-left corner of the screen.
width = number Sets the width of the window, in pixels. The minimum value is 100.

bReplace Optional. Boolean that specifies whether the URL that is loaded into the new page should create a new entry in the window's browsing history or replace the current entry in the browsing history. If set to true, no new history entry is created.


Взято из МСДН...
----------
Cache for Windows (x86-32) 2007.1.3 (Build 607) Wed Oct 17 2007 02:12:09 EDT
...
Рейтинг: 0 / 0
Размер окна
    #36061358
Фотография krvsa
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Или вот ...
----------
Cache for Windows (x86-32) 2007.1.3 (Build 607) Wed Oct 17 2007 02:12:09 EDT
...
Рейтинг: 0 / 0
Размер окна
    #36061384
lenash
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
На странице расположена картинка/ссылка, по нажатию на коротую должно должно открыться окно заданных размеров. Делаю вот так:

<td><a href="2.html" Class="Zag1"><img srс="0_1.gif" onclick="window.open('2.html','displayWindow','width = 400,height=300,status=no,toolbar=no,menubar=no')">Картинка1</a></td>

Не работает. Подскажите, пожалуйста в чем ошибка?
...
Рейтинг: 0 / 0
Размер окна
    #36061436
Фотография Ex_Soft
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
lenash
Не работает

Что значит не работает ?
BTW,
lenash
Код: plaintext
1.
window.open('2.html','displayWindow','width = 400,height=300,status=no,toolbar=no,menubar=no')

каких попугаях width/height?
_________________
"Helo, word!" - 17 errors 56 warnings
Posted via ActualForum NNTP Server 1.4
...
Рейтинг: 0 / 0
Размер окна
    #36061462
lenash
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Блин, реально помощь нужна, будет время я обязательно прочитаю ваши инструкции.
Лучше бы спосили что вам не понятно в моем вопросе.
Ткните пальцем где не правильно, пожалуйста.
...
Рейтинг: 0 / 0
Размер окна
    #36061506
Фотография Antonariy
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Блин, ну реально не понятно, что значит "не работает".
Ex_Softкаких попугаях width/height?По умолчанию попугаи равны пикселям. А может и не только по умолчанию:
тот же MSDNwidth = number Sets the width of the window, in pixels .
...
Рейтинг: 0 / 0
Размер окна
    #36061529
Фотография krvsa
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
lenashТкните пальцем где не правильно, пожалуйста.

Тут не пальцем... Тут ладонью нужно закрывать!

Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<title>Test</title>
<script type='text/javascript'>
function Go() {
	var type="displayWindow,width=400px,height=300px,status=no,toolbar=no,menubar=no"
	window.open('tmp.html','',type)
}
</script>
<style type='text/css'>
</style>
</head>

<body>
<a href='javascript:Go()'>
	<img srс="0_1.gif" />
	Картинка1
</a>
</body>
</html>
...
Рейтинг: 0 / 0
Размер окна
    #36061546
lenash
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Спасибо большое. Но я совсем обнаглею, и еще спрошу
У меня теперь на странице, размер которой устанавливали, картинка маленькая стала.
Как сделать чтоба она была во все окно?
...
Рейтинг: 0 / 0
Размер окна
    #36061558
lenash
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Ой уже не надо, поторопилась с вопросом.
...
Рейтинг: 0 / 0
Размер окна
    #36063681
lenash
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Передложеный код работает, но не на всех компьютерах. Проверила на нескольких компах, на которых стоит ХР видео показывает, а на viste нет. На некоторых сразу подгружает видео, а на некоторых долго грузит. С чем это может быть связано?
Кстати видео выставлено на сайт.
...
Рейтинг: 0 / 0
Размер окна
    #36063699
Фотография krvsa
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
lenashПередложеный код работает, но не на всех компьютерах.
Но в моём коде нет видео...
...
Рейтинг: 0 / 0
Размер окна
    #36063896
lenash
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Это tmp.html

<html>
<head>
<title>В Кемерово состоялось торжественное открытие нового корпуса научной экспериментальной лаборатории Кузбасского кардиологического центра</title>
<style type="text/css">
<!--
A {text-decoration : none;}
A:Visited {text-decoration : none;}
A:Active {text-decoration : none;}
A:Hover {text-decoration : underline;color : #ff4400;}
-->
</style>
</head>
<body>
<img dynsrc=0617.mpg width=100% height=100%>

</a>
</body>

На сайте есть картинка, по нажатию на которую, открывается окно и в нем проигрывается видео.
</html>
...
Рейтинг: 0 / 0
Размер окна
    #36308069
оутшф
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
krvsa, ваш код

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<title>Test</title>
<script type='text/javascript'>
function Go() {
var type="displayWindow,width=400px,height=300px,status=no,toolbar=no,menubar=no"
window.open('tmp.html','',type)
}
</script>
<style type='text/css'>
</style>
</head>

<body>
<a href='javascript:Go()'>
<img srс="0_1.gif" />
Картинка1
</a>
</body>
</html>
Не работает в Мозилле
...
Рейтинг: 0 / 0
Размер окна
    #36310817
neznau
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
странно, у меня в mozilla ff тоже работает.

видео плеер для mozilla установлен?
...
Рейтинг: 0 / 0
Размер окна
    #36311102
Фотография krvsa
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
оутшф , интересно, что конкретно там "не работает"?
...
Рейтинг: 0 / 0
17 сообщений из 17, страница 1 из 1
Форумы / HTML, JavaScript, VBScript, CSS [игнор отключен] [закрыт для гостей] / Размер окна
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]