Yout
-
Upload
kulbir-singh -
Category
Documents
-
view
215 -
download
0
Transcript of Yout
7/23/2019 Yout
http://slidepdf.com/reader/full/yout 1/26
DHTML(cont…)
With DHTML,many visual efectsare implemented directly in theclient-side broser, so no server-
side processin! delays aeincurred" DHTML code thatinitiates these efects is !enerally
#uite small $ is coded directlyinto HTML eb pa!e"
7/23/2019 Yout
http://slidepdf.com/reader/full/yout 2/26
%<' $ T*+&T&+
%ilters are used to apply visual efectsto HTML elements" Transitions are used to apply a
pleasant visual efects such as randomdissolve hile transormin! or movin!rom one ob.ecct to another"%ilters $ Transition don/t add content to
your pa!es rather they present e0istin!content in an en!a!in! manner to helphold the user/s attention"
7/23/2019 Yout
http://slidepdf.com/reader/full/yout 3/26
%ilters $ Transitions are so easyto use that virtually any eb
pa!e desi!ner or pro!rammercan incorporate these efectsith minimal efort"
%ilters $ Transitions are aMicrosot Technolo!y availableonly in Windos-based versions
o &'1"
7/23/2019 Yout
http://slidepdf.com/reader/full/yout 4/26
%<'2%ilters can be applied to HTML
elements throu!h the 3 45lter6property"ynta02
%or inline style27element8name style945lter25lter-name
(parameter)6:
%or embedded $ lin;ed style sheet2
elector<5lter25ltername<parameters==
7/23/2019 Yout
http://slidepdf.com/reader/full/yout 5/26
Types o %ilters2
%lip %ilterMas; 5lterMiscellaneous ima!e
5lter(invert,!ray $ 0ray)hado 5lter*lpha 5lter>lo 5lter?lur %ilterWave %ilter3hroma %ilter
7/23/2019 Yout
http://slidepdf.com/reader/full/yout 6/26
%lip %ilter2
&t is used to mirror the te0t or ima!eseither vertically or hori@ontally"Aertical efects is !iven usin! Bipv( ) $
Hori@ontal efects is !iven by Biph( )"ynta0 or !ivin! sin!le 5lter2
7element-namestyle945lter2Biph6:te0t7Celement-
name:ynta0 or !ivin! multiple 5lter2
7element-name style945lter2BiphBipv6:te0t7Celement-name:
7/23/2019 Yout
http://slidepdf.com/reader/full/yout 7/26
%ilter2
7html:
7head:
7title:The %lip %ilter7Ctitle:
7style type9te0tCcss:
body
<
bac;!round-color2 E33%%33=
table <ont-si@e2 FemGont-amily2arial,sans-seriG
bac;!round-color2E%%3333Gborder-style2rid!eG
border-collapse2collapse
=
td
<
border-style2!rooveG
=
7Cstyle:
7Chead:
7/23/2019 Yout
http://slidepdf.com/reader/full/yout 8/26
7body:
7table:
7tr:
7td style95lter2Biph:Te0t7Ctd:
7td:Te0t7Ctd:
7Ctr:
7tr:7td style95lter2Bipv Biph:Te0t7Ctd:
7td style95lter2Bipv:Te0t7Ctd:
7Ctr:
7Ctable:7body:
7Chtml:
7/23/2019 Yout
http://slidepdf.com/reader/full/yout 9/26
TIT2
7/23/2019 Yout
http://slidepdf.com/reader/full/yout 10/26
M*J %<'2
&n case o te0t, speci5ed color isset as bac;!round $ ore!roundo te0t is transparent to the color
behind it"%or ima!es, mas; 5lter mar;ed
the ima!e $ color !iven as a
parameter in mas; 5lter isdisplayed in bac;!round"ynta0 2
5lter2mas;(color9value)
7/23/2019 Yout
http://slidepdf.com/reader/full/yout 11/26
%ilters applied on an&ma!e(invert,!ray $ 0ray)2&nvert 5lter applies a ne!ative ima!e
efect i"e dar; area become li!ht $ li!htarea become dar;">ray %ilter applies a !rayscale ima!e
efect, in hich all color is stripped romima!e 4$ all that remains is bri!htnessdata"
Kray 5lter applies an 0ray efect hich isbasically .ust an inversion o the!rayscale efect"
7/23/2019 Yout
http://slidepdf.com/reader/full/yout 12/26
ynta02
7&M> src94pic".pe!style95lter2!ray( ):
7&M> src94pic".p!
style95lter2invert( ):7&M> src94pic".p!
style95lter20ray( ):
7/23/2019 Yout
http://slidepdf.com/reader/full/yout 13/26
&mportant Jeypoint or %ilters $transitions2
+T'2 %ilters $ Transitions can beapplied to ?loc;-level elementssuch as div or p $ can only be
applied to inline-elements suchas stron! or em i the elementhas its hei!ht or idth 3
Iroperty set"
7/23/2019 Yout
http://slidepdf.com/reader/full/yout 14/26
hado 5lter2
se to apply the shado efect to thete0t or ima!es"&t has to properties2 color $ direction
ynta02 5lter2shado(color9color-value,direction9direction-value)
here,
color corresponds to the speci5c color interms o >? or name o color $ directiondetermine the direction o shado"
7/23/2019 Yout
http://slidepdf.com/reader/full/yout 15/26
Direction is e0pressed in terms ode!ree $ it can be set to any o
ei!ht directions (up),1(above-ri!ht),N(ri!ht),
OF1(belo-
ri!ht),OP(belo),QQ1(belo-let,FO1(above-let)"
'"!2
7hOstyle94idth2p0Gposition2absoluteGlet21p0Gtop21p0G5lter2shado(direction91,color9red)6:
7/23/2019 Yout
http://slidepdf.com/reader/full/yout 16/26
3HM* %ilter2
The chroma 5lter is used to applytransparency efect based onspeci5ed color !iven as a
parameter"7'L'M'+T TRL' 9 5lter2
chroma(Iroperties) """ :
here color" etC!ets the color tobe made transparent"'"!25lter2chroma(color9value)
7/23/2019 Yout
http://slidepdf.com/reader/full/yout 17/26
*lpha %ilter2
se to create !radient efectmeans !radual pro!ression roma startin! color to a tar!et color"
&t is also oten used ortransparency efect notachievable by chroma 5lter"
ynta02%ilter2alpha(opacity9opacity-
value,5nishopacity(optional)9val
ue,style( optional)9style-value)
7/23/2019 Yout
http://slidepdf.com/reader/full/yout 18/26
Iarameters2pacity2 determine the level o opacity
9ull transparent(invisible)
O9ully opa#ue(visible)%inishopacity9value ran!e rom to O $ determineat hat value the !radient efect ill 5nish"tyle9speci5es the shape characteristic o the opacity!radient"possible values are2
9uniorm O9linear
Q9radialCcircular !radient
F9rectan!ular
+ote2 alpha 5lter has additional attributes li;estart0,starty,5nish0,5nishy that speciy at hat 0$ ycoordinates the !radient start S$ 5nishes in thatelement"
7/23/2019 Yout
http://slidepdf.com/reader/full/yout 19/26
e"!2
7divstyle94idth2p0Ghei!ht21p0G5lter2alpha(opacity9O,5nishopacity
9,style9Q):7im! src94O".p!6:
7Cdiv:
7/23/2019 Yout
http://slidepdf.com/reader/full/yout 20/26
>lo %ilter2
&t allos you to add an aura ocolor around your te0t"&t is used to add radiance around
the outside ed!e o the ob.ect,!ivin! it the apperance o a !lo"ynta02
%ilter2!lo(color9colorname,stren!th9 value)
7/23/2019 Yout
http://slidepdf.com/reader/full/yout 21/26
Iarameters2
3olor2determine the color or the !loob.ecttren!th(optional)2determine the
intensity o the !lo means the no" ppi0el the !lo ill e0tend"
an!e is O to Q11"Deault is 1
e"!27hO
style94idth2Qp0Gposition2absoluteGtop2Op0Glet21p0G5lter2!lo(color9!reen,stren!th9Q):'0ample o !lo5lter7ChO:
7/23/2019 Yout
http://slidepdf.com/reader/full/yout 22/26
?lur 5lter
&t creates an illusion o motion byblurrin! te0t or ima!es in acertain direction"
&t has three properties (all areoptional)
add, direction $ stren!th
ynta02%ilter2blur(add9CO,direction9value
in de!ree,stren!th9inte!ervalue)
7/23/2019 Yout
http://slidepdf.com/reader/full/yout 23/26
Iarameters2
add9contain boolean value"&true(non-@ero)then adds a copyo the ori!inal ima!e over theblurred ima!e"*laus use O to
see the efect properly"direction2determine the direction
o the motion o the blur efect"
(same as shado 5lter)tren!th2determines ho stron!
the blurrin! efect ill be"
7/23/2019 Yout
http://slidepdf.com/reader/full/yout 24/26
Wave %ilter2
3reates a av li;e distortion o theob.ect alon! its vertical a0is"&t allos you to apply sine-ave
distortions to te0t or ima!es on your eb
pa!es"&t has attributes2
add,re#uency,phase $ stren!th
ynta02 5lter2ave(add9CO,re#9re#-
value,phase9phasevalue,stren!th9stren!th-value)
7/23/2019 Yout
http://slidepdf.com/reader/full/yout 25/26
Iarameters2
add9 i its O,adds the copy o the ori!inalima!e underneath i the aved ima!e"*lays use to see the efect properly"
%re#9determine number o complete sineave efect properly to appear in thevisual distortion"
Ihase9determine the phase shit o theave hich is !enerally de!ree but itran!e rom to O "
tren!th2 determine the intensity o theave efect i"e amplitude o the sineave"
7/23/2019 Yout
http://slidepdf.com/reader/full/yout 26/26
'!2
7divstyle94idth2Op0G5lter2ave(add9,re#9O,phase9,stren!th9O)6:
7hO:'0ample o Wave %ilter7ChO:
7Cd&A: