| Blue pop-up window |
| Igor-Sousa | Date: Wednesday, 2009-10-14, 4:10 Am | Message # 1 |
Constant
Group: Checked
Messages: 142
Awards: 10
Reputation: 16
Status: Offline
| Can I use the blue pop-up window of uCoz on my site? Several things come with that kind of window, for example, when someone misses a password and a warning appears in the corner saying that the password is wrong, or when someone clicks on "confirm e-mail" link, "Login" link and many other things including submenus. I would like to use that style of window on my site to give some tips and hints for my users, so the whole site will have only 1 style of pop-up window. If this it is allowed, what is the code for that type of pop-up window? If you didn't understand what I'm talking about, is that same kind of window when someone clicks on [?], and a blue window appears. Thanks in advance.
I've made grammar mistakes ?? Google's fault !! Time is the most valuable thing a man can spend.
|
|
| |
|
| Sunny | Date: Thursday, 2009-10-15, 6:34 Am | Message # 2 |
Haunter
Group: Administrators
Messages: 1994
Awards: 121
Reputation: 139
Status: Online
| How to create new pop-up Ajax windows, the same as uCoz ones. Let's start with an example: Its code Code <a href="javascript://" onclick="new _uWnd('myName','Window title',500,200,{autosize:1,maxh:300,minh:100},'Here goes window content');">Click me</a> We need the following part which is the code of an Ajax window itself: Code new _uWnd('myName','Window title',500,200,{autosize:1,maxh:300,minh:100},''Here goes window content'); where: myName – is a unique name of a window. This text is displayed nowhere but is used to work with such windows; Window title – is a title that is displayed at the top of an Ajax window; 500 – width; 200 – height; Here goes window content- is content of a window. Here HTML codes can be used. And now let's add more features to the window. Code <a href="javascript://" onclick="new _uWnd('myName','Window title',500,200,{min:1,shadow:1,header:1,max:1,resize:0},'Here goes window content');">Click me</a> The base of the code is the same. We have added the following part: Code {min:1,shadow:1,header:1,max:1,resize:0} where: Number 0 stands for "No" Number 1 stands for "Yes" min – displaying of 'minimize' button (we have '1' which means that the button is displayed); shadow – adds shadow to the window; header – displaying of the header (where the buttons 'minimize', 'maximize', 'close' and window title are located); max – displaying of 'maximize' button resize – allows users to change window size (we gave '0' therefore the size can't be changed) You can also add the following features: modal[1/0] – a modal window. If this option is enabled all other space will be covered with a semitransparent layer. nomove[1/0] – forbids to move a window.
I'm not "man", "sir" or whatever. I'm female! About signatures, screenshots etc...
|
|
| |
|
| Igor-Sousa | Date: Thursday, 2009-10-15, 8:22 Pm | Message # 3 |
Constant
Group: Checked
Messages: 142
Awards: 10
Reputation: 16
Status: Offline
| Sunny, this tutorial really helped me a lot! But I have some doubts, you said that the place where content goes, HTML code can be used, but when I use the codes: <span style="blue">ANY_WORD</span> or <a href="ANY_SITE">ANY_WORD</a> the contents of the window appears as plain text and as a link, but the link does not work, I can only use the codes: <br /> and <b> and other "simple" tags. And one more question, the text appears centered, how do I make it appear justified? Just to point out, I'm using this code: Code <a href="javascript://" onclick="new _uWnd('Dica','Dica/Ajuda',500,200,{autosize:1,maxh:300,minh:100},'O site é desenvolvido em um sistema estrangeiro, da empresa <a href="http://www.ucoz.com/">uCoz</a>, portanto, as regras de escrita da língua portuguesa não se aplicam no momento do registro.<br /><br />Apenas caracteres de <b><span style="blue">A-Z</span></b>, <b><span style="blue">números</span></b>, <b><span style="blue">hifens</span></b> e <b><span style="blue">underlines</span></b> são aceitos.<br /><br />Não é permitido espaços, letras com acentos, Ç ou qualquer outro tipo de caractere especial.<br /><br />Qualquer dúvida que você tiver, clique no ícone <b>[<span style="blue">?</span>]</b> que se encontra perto de cada campo, para mostrar uma dica de como preenchê-lo.<br /><br />Se ainda assim estiver com dificuldades para se registrar, entre em <a href="MY_SITE_URL/index/0-3">contato</a> com a administração.');">Porque não consigo me registrar no site?</a> Many thanks for your help. Added (2009-10-15, 8:22 Pm) --------------------------------------------- I also can not use quotes "ANY_WORD". Are there any limitations of tags or characters that can be used?
I've made grammar mistakes ?? Google's fault !! Time is the most valuable thing a man can spend.
Message edited by Igor-Sousa - Thursday, 2009-10-15, 8:26 Pm |
|
| |
|
| Sunny | Date: Friday, 2009-10-16, 4:40 Am | Message # 4 |
Haunter
Group: Administrators
Messages: 1994
Awards: 121
Reputation: 139
Status: Online
| Igor-Sousa, probably there are some limitations. Sorry, I can't help you more.
I'm not "man", "sir" or whatever. I'm female! About signatures, screenshots etc...
|
|
| |
|
| Igor-Sousa | Date: Friday, 2009-10-16, 5:02 Am | Message # 5 |
Constant
Group: Checked
Messages: 142
Awards: 10
Reputation: 16
Status: Offline
| No problem, I will "explore" a little more. I appreciate all your help. Can close this thread.
I've made grammar mistakes ?? Google's fault !! Time is the most valuable thing a man can spend.
|
|
| |
|
| Hybrid4525 | Date: Friday, 2009-10-16, 8:53 Pm | Message # 6 |
|
Regular
Group: Checked
Messages: 58
Awards: 1
Reputation: -4
Status: Offline
| Quote (Sunny) Its code Code <a href="javascript://" onclick="new _uWnd('myName','Window title',500,200,{autosize:1,maxh:300,minh:100},'Here goes window content');">Click me</a> We need the following part which is the code of an Ajax window itself: Code new _uWnd('myName','Window title',500,200,{autosize:1,maxh:300,minh:100},''Here goes window content'); Connecting the code? Gimme an example where u have the body and head and stuff thx
|
|
| |
|
| drunkenbird | Date: Friday, 2009-10-16, 8:58 Pm | Message # 7 |
|
Curious
Group: Checked
Messages: 29
Awards: 0
Reputation: 0
Status: Offline
| Quote (Hybrid4525) Quote (Sunny) Its code Code <a href="javascript://" onclick="new _uWnd('myName','Window title',500,200,{autosize:1,maxh:300,minh:100},'Here goes window content');">Click me</a> We need the following part which is the code of an Ajax window itself: Code new _uWnd('myName','Window title',500,200,{autosize:1,maxh:300,minh:100},''Here goes window content'); <--- This is a part of the above Codeline... Connecting the code? Gimme an example where u have the body and head and stuff thx Body Head and stuff? What are you talking about? Sunny explained all about it, its a Single Line you can put every where you want.
|
|
| |
|
| Hybrid4525 | Date: Friday, 2009-10-16, 9:16 Pm | Message # 8 |
|
Regular
Group: Checked
Messages: 58
Awards: 1
Reputation: -4
Status: Offline
| Well, u seem to know a little so how do u integregate the code with say the profile page
|
|
| |
|
| Igor-Sousa | Date: Saturday, 2009-10-17, 0:38 Am | Message # 9 |
Constant
Group: Checked
Messages: 142
Awards: 10
Reputation: 16
Status: Offline
| Hybrid4525, you do not need to put this code anywhere in your template. This code is to be used as a link when someone clicks on it, a pop-up Ajax window will appear. A simple example: You are adding an entry about a game, and want to give some tips about this game to your users, you can use this code this way: Quote <a href="javascript://" onclick="new _uWnd('myName','Window title',500,200,{autosize:1,maxh:300,minh:100},'If you press two times up arrow key of your keyboard, your character will make a super jump.');">TIP</a> Where: in blue - content of the window. in red - the word that will appear as a link. Your users will see a text like this: TIP and when they click on it, the window will appear showing your tip.
I've made grammar mistakes ?? Google's fault !! Time is the most valuable thing a man can spend.
Message edited by Igor-Sousa - Saturday, 2009-10-17, 0:38 Am |
|
| |