» CMS » DLE » DataLife Engine

DataLife Engine

: DataLife Engine
: CMS » DLE
: 1865
: .
: 18-05-2012, 12:59
: fakel
:
: , ,




   DataLife Engine
yepe, oe cpea oae oa a caax, ae cooa x. K pepy, y ce a cae, oe eco x coy, a a o oe yoo paco.

a e ec caap DLE.

aae paep eo cpyypy, o ca poco cp
function FuncName() {
$(function(){

$('#ModalWin').dialog({
autoOpen: true,
show: 'fade',
hide: 'fade',
width: 220,
height: 450,

});
});
}


Ka e, o oaec a oa y, ee co
FuncName


oopoe oo e oo e oo oopc a oo cpae, oe a oop ye pooc ece( ae cyae oc oaoe oo)
#ModalWin


Hy pye apaep, a eo:
autoOpen o yoa a o ee aee true, o oaae aoaecoe oee aoooo oa p oe eoa dialod. Ec ycao aee o false, o aoooe oo ye axoc cpo coco cea eo oo ye c oo .dialog(open).
bgiframe o yoa false. Ec ycao y o true (opeyec ooeo o a bgIframe), ye cpaea poea IE6, e ee select oeac oepx pyx eeo eaco o ae z-index. Booo, yyx epcx, oee aa ye e ye c oae.
buttons o o epea oe, oopo oo opee o, oopaaee aooo oe, ca x c callback-y.
closeOnEscape o yoa a o ee aee true aoooe oo apaec p aa a Escape. cao aee false oo ape o ece.
dialogClass yaaoe o o acca ( acco) yy pee aoooy oy ooeoo oope.
draggable o yoa ycaoeo aee true, o ae oooc epeee aoooo oa. Ec ycao aee false, epeeee cae eoo.
height o yoa a o pae aee auto, coa aoooo oa opeeec eo coep. Moo epea aee co aoooo oa ceax. Hapep: height: 300. B o cyae, ec coepoe ye pea ycaoe paep, oc epaa ooca popy.
hide o o oo opee e, oop ye cooac p ap aoa. Hapep: hide: slide. o yoa coyec aee null, .e. ax eo e peec.
maxHeight acaa coa, o oopo oe ee paep aoa, ceax.
maxWidth acaa pa, o oopo oe ee paep aoa, ceax.
minHeight aa coa, o oopo oe ee paep aoa, ceax.
minWidth aa pa, o oopo oe ee paep aoa, ceax.
modal ec ycao aee true o o, ao cae oa. T.e. pye ee a e-cpae yy aopoa, ooae e coe c aoecoa. o ye ocyo c oo coa ooeoo co, axoeoc e aoa, o e ocax eeo e-cpa.
position aee o o oe cpoa acc, oope opee aaoe ooee aoooo oa. Booe ae: center, left, right, top, bottom. pyo apa cooae x e ae acce. Hapep [right', 'top'] oo, o pacoo ao pao epxe yy.
resizable o yoa ycaoeo aee true, o ae oooc ee paepo aoooo oa. Ec ycao aee false, o eee paepo cae eoo.
show o o oo opee e, oop ye cooac p op aoa. Hapep: show: slide. o yoa coyec aee null, .e. ax eo e peec.
stack o yoa a o ee aee true, o ooe oy (p cooa ecox aoox oo a oo e-cpae), oyey oyc, oopae oepx ocax oo. cao y o false oo oe aoe oeee paoo oa.
title aee o oe cpoa, c oo oopo oo epeopee aooo oa, aa HTML-paee.
width pa aoa, ceax. o yoa coyec aee 300.
zIndex aee z-index aoooo oa. o yoa coyec aee 1000.

a o o ee e oe, yo ee cea a o o cp apoac caa ey o oo oc (ca).
Bo a ye e oa p aa, a oopy apyec cp
<a href="#" onclick="FuncName()" value="Ha a e" class="bbcodes"></a>


Caoe aoe ec a o onclick="FuncName()"
To ec p aa a oy opoec oaoe oo. O , e a o caeo oa, eopo
<divid="ModalWin" title="ec aooo oa" style="display:none;text-align:left; " >
A ec cooeceo eo coepoe, oo a e <b>HTML o ..</b>
</div>


Oo o o y ac oyoc, oe:
<script type="text/javascript">

function FuncName() {
$(function(){

$('#ModalWin').dialog({
autoOpen: true,
show: 'fade',
hide: 'fade',
width: 220,
height: 450,

});
});
}

</script>


<a href="#" onclick="FuncName()" value="Ha a e" class="bbcodes"></a>

<divid="ModalWin" title="ec aooo oa" style="display:none;text-align:left; " >
A ec cooeceo eo coepoe, oo a e <b>HTML o ..</b>
</div>


Ec xoe o a ee o a "ap" , "O" .. cao cpe oce ( ae cyae height: 450,) e :

buttons: {

"pe": function() {
alert("Haaa oa pe");
},
"ap": function() {
$(this).dialog("close");
}
}

To ec oo oec y oaoe oo, apep p aa o "pe" oc peypeee o "Haaa oa pe" ..
O coo a oooc opae ae javascript. Haec xo o o o c oo ypoa, oa






- -