Page 1 of 11
UcozBaze All Scripts And Templates » Scripts and Coding » Ajax Scripts » Code for uCoz AJAX Windows with personal settings (Code for uCoz AJAX Windows with personal settings)
Code for uCoz AJAX Windows with personal settings
AdiDate: Wednesday, 2011-09-21, 8:42 PM | Message # 1
Group: Member
Messages: 179
3
Here is an example of what a uCoz Default AJAX Window:



Below is the code for the AJAX window above. Place this code anywhere within the '' and '' tags:

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>


myName – This is a unique name of a window. This text is displayed nowhere but is used to work with such windows;
Window title – This is the title that is displayed at the top of an AJAX window;
500 – width (pixels, px);
200 – height (pixels, px);
'Here goes window content'- This is the content of the window. Basic HTML codes can be used.
'Click Me' - This represents the link of which will open the window.

Below is a more advanced AJAX window with features such as 'Maximize' and 'Minimize' buttons.



Below is the code for the AJAX window above. Place this code anywhere within the '' and '' tags:

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 script for the advanced window is the same as the original except the following code has been added:

Code
{min:1,shadow:1,header:1,max:1,resize:0}


Number '0' - Stands for "No"
Number '1' - Stands for "Yes"
min – This is to display the 'minimize' button (we have '1' which means that the button is displayed/enabled);
shadow – This adds shadow to the window;
header – This is what displays the header (where the buttons 'minimize', 'maximize', 'close' and window title are located);
max– This is to display the 'maximize' button (we have '1' which means that the button is displayed/enabled);
resize – This allows users to change window size (we gave '0' therefore the size can't be changed)


 
MessageHere is an example of what a uCoz Default AJAX Window:



Below is the code for the AJAX window above. Place this code anywhere within the '' and '' tags:

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>


myName – This is a unique name of a window. This text is displayed nowhere but is used to work with such windows;
Window title – This is the title that is displayed at the top of an AJAX window;
500 – width (pixels, px);
200 – height (pixels, px);
'Here goes window content'- This is the content of the window. Basic HTML codes can be used.
'Click Me' - This represents the link of which will open the window.

Below is a more advanced AJAX window with features such as 'Maximize' and 'Minimize' buttons.



Below is the code for the AJAX window above. Place this code anywhere within the '' and '' tags:

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 script for the advanced window is the same as the original except the following code has been added:

Code
{min:1,shadow:1,header:1,max:1,resize:0}


Number '0' - Stands for "No"
Number '1' - Stands for "Yes"
min – This is to display the 'minimize' button (we have '1' which means that the button is displayed/enabled);
shadow – This adds shadow to the window;
header – This is what displays the header (where the buttons 'minimize', 'maximize', 'close' and window title are located);
max– This is to display the 'maximize' button (we have '1' which means that the button is displayed/enabled);
resize – This allows users to change window size (we gave '0' therefore the size can't be changed)

Author - Adi
Date Added - 2011-09-21 в 8:42 PM
EsquireDate: Thursday, 2011-09-22, 11:00 AM | Message # 2
Group: Member
Messages: 147
1


 
Message

Author - Esquire
Date Added - 2011-09-22 в 11:00 AM
UcozBaze All Scripts And Templates » Scripts and Coding » Ajax Scripts » Code for uCoz AJAX Windows with personal settings (Code for uCoz AJAX Windows with personal settings)
Page 1 of 11
Search:
                                                               
Statistics Forum
New Posts Popular topic Top Forum Users New User

type list Automatically add tags for all uCoz modules (6)
type list How to customize the design of the site for mobile version (3)
type list Video player for uCoz (3)
type list Auto Youtube Trailers for Ucoz Movies Web (0)
type list Pranešimai skrti jums yra matomi Tag Board Ucoz skriptas (1)
type list Why can’t I copy large files over 4GB to my USB flash drive (0)
type list Forumo Informatorius (2)
type list Pereiti i kita puslapi forume 1.2.3. Ucoz skriptas (1)
type list The script for the output of a random video from Youtube (0)
type list The script updates the block comment without refreshing the (0)

type list Skaiciuojam nuo 1 iki 1000 ! (557)
type list Forum SignatureBar (60)
type list Avatars (22)
type list Kaip pakeisti paveiksla mazas? (19)
type list Juokingos Fotkes :) (19)
type list Mini-Chatas islendantis is sono ucoz (15)
type list Mp3-Tau.do.am (13)
type list Шаблон форума для ucoz For-css (12)
type list Ucoz script - favicon (11)
type list Megsti samp? Ateik cia (10)

interout
GoblinaS
Adi
Esquire
BAtman
WaSHkaZ
Skacikas
meskis
Gytenas
vicka

Adriana
aljoxp
Eden
Bind3436
TotEu9652
honda012009
m7mad
greeklifeinworld
gmosergey123
robihorvat95


Site design by uCozBaze
uCozBaze © 2011-2016