• Page 1 of 1
  • 1
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 1
  • 1
Search:
                                                               
Statistics Forum
New Posts Popular topic Top Forum Users New User

type list Appearance of entries movie site for uCoz (0)
type list Google preloader on pure CSS ucoz (0)
type list Pre-Loader for a site on pure CSS (Transition) ucoz (0)
type list Script to disable the F12 key and right-click ucoz (0)
type list Animated button for downloading using SVG and Vue UCOZ (0)
type list Top Forum Users ucoz (0)
type list Snow script for your website ucoz (0)
type list Original watch without digits ucoz (0)
type list Bookmark Buttons Generator (0)
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 Skaiciuojam nuo 1 iki 1000 ! (557)
type list Forum SignatureBar (60)
type list Avatars (22)
type list Juokingos Fotkes :) (19)
type list Kaip pakeisti paveiksla mazas? (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)
type list Button scrolling up ucoz (10)
type list Slider KinoPlius Help to setup :) (10)
type list Apklausa Jūsų Svetainei New ucoz (10)
type list KinoPlius (9)
type list SexMergytes.do.am (9)
type list Money for the forum ucoz (9)
type list 11.17.2011 (9)
type list Puslapis "Atliekami techniniai darbai" Ucoz scriptas (9)
type list User personal Page ucoz (8)
interout
Forum Posts: 1027
Comments: 51
Reputation: 83
Rank:
GoblinaS
Forum Posts: 380
Comments: 15
Reputation: 25
Rank:
Adi
Forum Posts: 179
Comments: 11
Reputation: 23
Rank:
Esquire
Forum Posts: 147
Comments: 8
Reputation: 5
Rank:
BAtman
Forum Posts: 129
Comments: 1
Reputation: 18
Rank:
WaSHkaZ
Forum Posts: 83
Comments: 0
Reputation: 3
Rank:
Skacikas
Forum Posts: 71
Comments: 0
Reputation: 12
Rank:
meskis
Forum Posts: 51
Comments: 0
Reputation: 25
Rank:
Gytenas
Forum Posts: 51
Comments: 0
Reputation: 1
Rank:
vicka
Forum Posts: 50
Comments: 1
Reputation: 4
Rank:
vallmu1337
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
Calean
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
K3nT
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
alinagross009
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
sheekshaggy420
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
Samartinean
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
Азиза_Азизи
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
woscs1-6
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
Matruka
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
ArEzO
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:


Site design by uCozBaze
uCozBaze © 2011-2016