Перейти из форума на сайт.

НовостиФайловые архивы
ПоискАктивные темыТоп лист
ПравилаКто в on-line?
Вход Забыли пароль? Первый раз на этом сайте? Регистрация
Компьютерный форум Ru.Board » Интернет » Web-программирование » Pop-Up на JavaScript - пройстеший вопрос: как?

Модерирует : Cheery

Svarga (18-03-2004 14:45):


обзор «Помощи вебмастеру» » клиентские скрипты »


 Версия для печати • ПодписатьсяДобавить в закладки

   

NT



Advanced Member
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
Как сделать чтоб после нажатия на линк появлялась странийка (попап) без панелей, с заданым файлом (хтмл)?
 


----------
A que jode no entender lo que pone?

Всего записей: 1861 | Зарегистр. 27-07-2002 | Отправлено: 01:46 16-11-2002 | Исправлено: NT, 02:30 16-11-2002
shotgun

Junior Member
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
Я бы посоветовал пойти на google.com и сделать поиск по "javascript pop-up windows"
 
так по крайней мере ты что-то запомнишь. Если же кто-то прямо возьмет и напишет тебе здесь скрипт, то какая в этом польза?

Всего записей: 68 | Зарегистр. 24-10-2002 | Отправлено: 06:52 16-11-2002
atiso



real pepper
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
Оффтоп
shotgun
Я не понял твоей реакции на вполне нормальный вопрос для этого форума... Что-то ты не в тему, как и сказал

Всего записей: 413 | Зарегистр. 09-12-2001 | Отправлено: 06:54 16-11-2002
Svarga

Moderator
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
<a href=# onclick="window.open('url.html','','');">link</a>

----------
away.

Всего записей: 4161 | Зарегистр. 25-06-2002 | Отправлено: 08:47 16-11-2002
NT



Advanced Member
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
Svarga
Сенкью вери мач. Спасибо короче.

----------
A que jode no entender lo que pone?

Всего записей: 1861 | Зарегистр. 27-07-2002 | Отправлено: 12:36 16-11-2002
Svarga

Moderator
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
NT
нот эт ол
 
можно менять параметры открываемого окна-- прописывать их  
window.open('url.html','','здесь')
 
я как-то уже постил допустимые параметры в какой-то теме, сейчас попытаюсь найти.

----------
away.

Всего записей: 4161 | Зарегистр. 25-06-2002 | Отправлено: 02:01 18-11-2002
Svarga

Moderator
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
ничего не возможно найти.
абыдно
 
window.open("URL", "windowName" [,"windowFeatures"][,replaceFlag])
Returns: A window object representing the newly created window; null if method
fails.
Attribute
Browsers
Description
alwaysLowered3 NN4+ (Boolean) Always behind other browser windows
alwaysRaised3 NN4+ (Boolean) Always in front of other browser windows
channelmode IE4+ (Boolean) Theater mode with channel band (default is no)
copyhistory NN2+, IE3+ (Boolean) Duplicates Go menu history for new window
dependent NN4+ (Boolean) Subwindow closes if the opener window closes
directories NN2+, IE3+ (Boolean) "What's New" and other buttons in the row
fullscreen IE4+ (Boolean) No title bar or menus (default is no)
height NN2+, IE3+ (Integer) Content region height in pixels
hotkeys NN4+ (Boolean) If true, disables menu shortcuts (except Quit and Security Info) when menubar is turned off
innerHeight4 NN4+ (Integer) Content region height; same as old height property
innerWidth4 NN4+ (Integer) Content region width; same as old width property
left IE4+ (Integer) Horizontal position of top-left corner on screen
location NN2+, IE3+ (Boolean) Field displaying the current URL
menubar1 NN2+, IE3+ (Boolean) Menubar at top of window
outerHeight4 NN4+ (Integer) Visible window height
outerWidth4 NN4+ (Integer) Visible window width
resizable2 NN2+, IE3+ (Boolean) Interface elements that allow resizing by dragging
screenX4 NN4+ (Integer) Horizontal position of top-left corner on screen
screenY4 NN4+ (Integer) Vertical position of top-left corner on screen
scrollbars NN2+, IE3+ (Boolean) Displays scrollbars if document is larger than window
status NN2+, IE3+ (Boolean) Statusbar at bottom of window
titlebar3 NN4+ (Boolean) Title bar and all other border elements
title IE5 (Boolean) Title bar
toolbar NN2+, IE3+ (Boolean) "Back", "Forward", and other buttons in the row
top IE4+ (Integer) Horizontal position of top-left corner on screen    
width NN2+, IE3+ (Integer) Content region width in pixels
z-lock3 NN4+ (Boolean) Window layer is fixed below browser windows

1 Not on Macintosh because the menubar is not in the browser window; when off  
in NN4/Mac, displays an abbreviated Mac menubar.
2 Macintosh windows are always resizable, also Opera browser f*cks this parameter  
off on all platforms.
3 Requires a signed script.
4 Requires a signed script to size or position a window beyond safe threshold.

Boolean values are handled a bit differently than you might expect. The value  
for true can be either yes, 1, or just the feature name by itself; for false,  
use a value of no or 0. If you omit any Boolean attributes, they are rendered  
as false.
Therefore, if you want to create a new window that shows only the toolbar and  
statusbar and is resizable, the method looks like this: window.open("newURL","NewWindow",  
"toolbar,status,resizable")
 
On-the-Fly windows
var newWindow
...
function createNewWindow() {
newWindow = window.open("","")
if (newWindow != null) {
newWindow.document.write("<HTML><HEAD><TITLE>Hi!</TITLE></HEAD>")
}
}  


----------
away.

Всего записей: 4161 | Зарегистр. 25-06-2002 | Отправлено: 03:28 19-11-2002 | Исправлено: Svarga, 03:32 19-11-2002
Grendle



Junior Member
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
А как сделать, чтобы при заходе на сайт открывался POPUP с заданным URL? :)

Всего записей: 157 | Зарегистр. 01-04-2002 | Отправлено: 16:56 17-03-2004
M AIR J



Member
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
Grendle

Код:
 
<html>
<head>
<script>
function winop(){
window.open('url.html','','');
}
</script>
</head>
<body onload="winop();">
</body>
</html>
 

а вообще вот сюда вам
http://forum.ru-board.com/topic.cgi?forum=24&topic=3098


----------
MJ

Всего записей: 215 | Зарегистр. 07-04-2003 | Отправлено: 20:45 17-03-2004
Grendle



Junior Member
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
M AIR J
 
Спасибо
Ф.А.К.ушки просто не нашел

Всего записей: 157 | Зарегистр. 01-04-2002 | Отправлено: 08:11 18-03-2004
   

Компьютерный форум Ru.Board » Интернет » Web-программирование » Pop-Up на JavaScript - пройстеший вопрос: как?
Svarga (18-03-2004 14:45):


обзор «Помощи вебмастеру» » клиентские скрипты »




Реклама на форуме Ru.Board.

Powered by Ikonboard "v2.1.7b" © 2000 Ikonboard.com
Modified by Ru.B0ard
© Ru.B0ard 2000-2025

LiteCoin: LgY72v35StJhV2xbt8CpxbQ9gFY6jwZ67r

Рейтинг.ru