, , , . .
,
, , . , , . RSS .
, ( , ).
,
, - , , . , , - .
. , , , , .
«Kubrick» WordPress, . , , , .
, . .
,
, , , . , .
. , . , .
: , (permalinks) , , , , . .
AdSense, , , . , , , .
SEO
, . , , , , . h1.
, , !
, , , , . (= ) .
Lightbox |
|
, . , , , , . Lightbox, Lightbox2, , :
prototype scriptaculous, . 18, , .
, , .
prototype, , . 5, .
, , .
, . , , , , . , , . , (events), prototype scriptaculous.
, 3€ 295€ .
, :
prototype scriptaculous.
— must have. .
Lightbox Lytebox, .. , , . -, .
- v3.22. 3.
, , .
, , — -.
, i-style. , , 23, .
, , iframe.
, , .
, , , .
. , standalone. — , . , .
, .
, jQuery. 99% Lightbox2, .
— , jQuery.
2007 , , .
0.
prototype. , . — 3! .
Just for fun Lightbox, , - , - Lightbox . , , 3 .
, jQuery, . Highslide JS ( ), , .
jQuery.
, . , API. flash .
, , . «»: img, html, iframe, swf… .
.
c0rr , all-in-one. , 9 , css, .
lightbox, jQuery.
, jQuery, . , «» . , . 2.1.
source http://dustweb.ru/log/2008/07/17/lightbox_n_clones/
: controls javascript lightbox |
Web Colors |
|
steelblue | steelblue | steelblue | 4682B4 |
royalblue | royalblue | royalblue | 041690 |
cornflowerblue | cornflowerblue | cornflowerblue | 6495ED |
lightsteelblue | lightsteelblue | lightsteelblue | B0C4DE |
mediumslateblue | mediumslateblue | mediumslateblue | 7B68EE |
slateblue | slateblue | slateblue | 6A5ACD |
darkslateblue | darkslateblue | darkslateblue | 483D8B |
midnightblue | midnightblue | midnightblue | 191970 |
navy | navy | navy | 000080 |
darkblue | darkblue | darkblue | 00008B |
mediumblue | mediumblue | mediumblue | 0000CD |
blue | blue | blue | 0000FF |
dodgerblue | dodgerblue | dodgerblue | 1E90FF |
deepskyblue | deepskyblue | deepskyblue | 00BFFF |
lightskyblue | lightskyblue | lightskyblue | 87CEFA |
skyblue | skyblue | skyblue | 87CEEB |
lightblue | lightblue | lightblue | ADD8E6 |
powderblue | powderblue | powderblue | B0E0E6 |
azure | azure | azure | F0FFFF |
lightcyan | lightcyan | lightcyan | E0FFFF |
paleturquoise | paleturquoise | paleturquoise | AFEEEE |
mediumturquoise | mediumturquoise | mediumturquoise | 48D1CC |
lightseagreen | lightseagreen | lightseagreen | 20B2AA |
darkcyan | darkcyan | darkcyan | 008B8B |
teal | teal | teal | 008080 |
cadetblue | cadetblue | cadetblue | 5F9EA0 |
darkturquoise | darkturquoise | darkturquoise | 00CED1 |
aqua | aqua | aqua | 00FFFF |
cyan | cyan | cyan | 00FFFF |
turquoise | turquoise | turquoise | 40E0D0 |
aquamarine | aquamarine | aquamarine | 7FFFD4 |
mediumaquamarine | mediumaquamarine | mediumaquamarine | 66CDAA |
darkseagreen | darkseagreen | darkseagreen | 8FBC8F |
mediumseagreen | mediumseagreen | mediumseagreen | 3CB371 |
seagreen | seagreen | seagreen | 2E8B57 |
darkgreen | darkgreen | darkgreen | 006400 |
green | green | green | 008000 |
forestgreen | forestgreen | forestgreen | 228B22 |
limegreen | limegreen | limegreen | 32CD32 |
lime | lime | lime | 00FF00 |
chartreuse | chartreuse | chartreuse | 7FFF00 |
lawngreen | lawngreen | lawngreen | 7CFC00 |
greenyellow | greenyellow | greenyellow | ADFF2F |
yellowgreen | yellowgreen | yellowgreen | 9ACD32 |
palegreen | palegreen | palegreen | 98FB98 |
lightgreen | lightgreen | lightgreen | 90EE90 |
springgreen | springgreen | springgreen | 00FF7F |
mediumspringgreen | mediumspringgreen | mediumspringgreen | 00FA9A |
darkolivegreen | darkolivegreen | darkolivegreen | 556B2F |
olivedrab | olivedrab | olivedrab | 6B8E23 |
olive | olive | olive | 808000 |
darkkhaki | darkkhaki | darkkhaki | BDB76B |
darkgoldenrod | darkgoldenrod | darkgoldenrod | B8860B |
goldenrod | goldenrod | goldenrod | DAA520 |
gold | gold | gold | FFD700 |
yellow | yellow | yellow | FFFF00 |
khaki | khaki | khaki | F0E68C |
palegoldenrod | palegoldenrod | palegoldenrod | EEE8AA |
blanchedalmond | blanchedalmond | blanchedalmond | FFEBCD |
moccasin | moccasin | moccasin | FFE4B5 |
wheat | wheat | wheat | F5DEB3 |
navajowhite | navajowhite | navajowhite | FFDEAD |
burlywood | burlywood | burlywood | DEB887 |
tan | tan | tan | D2B48C |
rosybrown | rosybrown | rosybrown | BC8F8F |
sienna | sienna | sienna | A0522D |
saddlebrown | saddlebrown | saddlebrown | 8B4513 |
chocolate | chocolate | chocolate | D2691E |
peru | peru | peru | CD853F |
sandybrown | sandybrown | sandybrown | F4A460 |
darkred | darkred | darkred | 8B0000 |
maroon | maroon | maroon | 800000 |
brown | brown | brown | A52A2A |
firebrick | firebrick | firebrick | B22222 |
indianred | indianred | indianred | CD5C5C |
lightcoral | lightcoral | lightcoral | F08080 |
salmon | salmon | salmon | FA8072 |
darksalmon | darksalmon | darksalmon | E9967A |
lightsalmon | lightsalmon | lightsalmon | FFA07A |
coral | coral | coral | FF7F50 |
tomato | tomato | tomato | FF6347 |
darkorange | darkorange | darkorange | FF8C00 |
orange | orange | orange | FFA500 |
orangered | orangered | orangered | FF4500 |
crimson | crimson | crimson | DC143C |
red | red | red | FF0000 |
deeppink | deeppink | deeppink | FF1493 |
fuchsia | fuchsia | fuchsia | FF00FF |
magenta | magenta | magenta | FF00FF |
hotpink | hotpink | hotpink | FF69B4 |
lightpink | lightpink | lightpink | FFB6C1 |
pink | pink | pink | FFC0CB |
palevioletred | palevioletred | palevioletred | DB7093 |
mediumvioletred | mediumvioletred | mediumvioletred | C71585 |
purple | purple | purple | 800080 |
darkmagenta | darkmagenta | darkmagenta | 8B008B |
mediumpurple | mediumpurple | mediumpurple | 9370DB |
blueviolet | blueviolet | blueviolet | 8A2BE2 |
indigo | indigo | indigo | 4B0082 |
darkviolet | darkviolet | darkviolet | 9400D3 |
darkorchid | darkorchid | darkorchid | 9932CC |
mediumorchid | mediumorchid | mediumorchid | BA55D3 |
orchid | orchid | orchid | DA70D6 |
violet | violet | violet | EE82EE |
plum | plum | plum | DDA0DD |
thistle | thistle | thistle | D8BFD8 |
lavender | lavender | lavender | E6E6FA |
ghostwhite | ghostwhite | ghostwhite | F8F8FF |
aliceblue | aliceblue | aliceblue | F0F8FF |
mintcream | mintcream | mintcream | F5FFFA |
honeydew | honeydew | honeydew | F0FFF0 |
lightgoldenrodyellow | lightgoldenrodyellow | lightgoldenrodyellow | FAFAD2 |
lemonchiffon | lemonchiffon | lemonchiffon | FFFACD |
cornsilk | cornsilk | cornsilk | FFF8DC |
lightyellow | lightyellow | lightyellow | FFFFE0 |
ivory | ivory | ivory | FFFFF0 |
floralwhite | floralwhite | floralwhite | FFFAF0 |
linen | linen | linen | FAF0E6 |
oldlace | oldlace | oldlace | FDF5E6 |
antiquewhite | antiquewhite | antiquewhite | FAEBD7 |
bisque | bisque | bisque | FFE4C4 |
peachpuff | peachpuff | peachpuff | FFDAB9 |
papayawhip | papayawhip | papayawhip | FFEFD5 |
beige | beige | beige | F5F5DC |
seashell | seashell | seashell | FFF5EE |
lavenderblush | lavenderblush | lavenderblush | FFF0F5 |
mistyrose | mistyrose | mistyrose | FFE4E1 |
snow | snow | snow | FFFAFA |
white | white | white | FFFFFF |
whitesmoke | whitesmoke | whitesmoke | F5F5F5 |
gainsboro | gainsboro | gainsboro | DCDCDC |
lightgrey | lightgrey | lightgrey | D3D3D3 |
silver | silver | silver | C0C0C0 |
darkgray | darkgray | darkgray | A9A9A9 |
gray | gray | gray | 808080 |
lightslategray | lightslategray | lightslategray | 778899 |
slategray | slategray | slategray | 708090 |
dimgray | dimgray | dimgray | 696969 |
darkslategray | darkslategray | darkslategray | 2F4F4F |
black | black | black | 000000 |
: |
jQuery |
|
jQuery — Javascript Framework, . - , — , …
,
, :
<head> <script type="text/javascript" src="jquery.js"></script></head>
:
- CSS, .. CSS jQuery:
— -, / (.
)
, , ( «active» «btn-slide»), id=«panel» /. ( «active» , . CSS ).
$(document).ready(function(){ $(".btn-slide").click(function(){ $("#panel").slideToggle("slow"); $(this).toggleClass("active"); });});
(.
):
<img class=«delete»>, <div class=«pane»>, opacity= 1.0 opacity=hide:
$(document).ready(function(){ $(".pane .delete").click(function(){ $(this).parents(".pane").animate({ opacity: "hide" }, "slow"); });});
, jQuery. , . (.
):
Line 0: (DOM )
Line 1: click <a class=«run»>
Line 2: <div id=«box»> — 0.1, left 400px, 1200 (milliseconds)
Line 3: : opacity=0.4, top=160px, height=20, width=20; : «slow», «normal», «fast»
Line 4: opacity=1, left=0, height=100, width=100, — «slow»
Line 5: opacity=1, left=0, height=100, width=100, — «slow»
Line 6: top=0, — «fast»
Line 7: slideUp ( — «normal»)
Line 8: slideDown, — «slow»
Line 9: false
$(document).ready(function(){ $(".run").click(function(){ $("#box").animate({opacity: "0.1", left: "+=400"}, 1200) .animate({opacity: "0.4", top: "+=160", height: "20", width: "20"}, "slow") .animate({opacity: "1", left: "0", height: "100", width: "100"}, "slow") .animate({top: "0"}, "fast") .slideUp() .slideDown("slow") return false; }); });
«». (.
)
:
«active» <h3> <div class=«accordion»> («active» — ). <p> <div class=«accordion»>.
<h3>, <p> slideToggle, <p> slideUp. «active», <h3> «active»
$(document).ready(function(){ $(".accordion h3:first").addClass("active"); $(".accordion p:not(:first)").hide(); $(".accordion h3").click(function(){ $(this).next("p").slideToggle("slow") .siblings("p:visible").slideUp("slow"); $(this).toggleClass("active"); $(this).siblings("h3").removeClass("active"); }); });
, , . (.
)
CSS <p> display:none. . $(".accordion2 p").eq(2).show(), eq . , :
$(document).ready(function(){ $(".accordion2 h3").eq(2).addClass("active"); $(".accordion2 p").eq(2).show(); $(".accordion2 h3").click(function(){ $(this).next("p").slideToggle("slow") .siblings("p:visible").slideUp("slow"); $(this).toggleClass("active"); $(this).siblings("h3").removeClass("active"); });});
hover (,
?), (.
):
(mouseover), <em>, :
$(document).ready(function(){ $(".menu a").hover(function() { $(this).next("em").animate({opacity: "show", top: "-75"}, "slow"); }, function() { $(this).next("em").animate({opacity: "hide", top: "-85"}, "fast"); });});
- : linktitle (.
)
<em> <a>. mouseover, «thetitle» «hoverText», <em>:
$(document).ready(function(){ $(".menu2 a").append("<em></em>"); $(".menu2 a").hover(function() { $(this).find("em").animate({opacity: "show", top: "-75"}, "slow"); var hoverText = $(this).attr("title"); $(this).find("em").text(hoverText); }, function() { $(this).find("em").animate({opacity: "hide", top: "-85"}, "fast"); });});
, (.
):
<ul> class=«pane-list» <li> . click ".pane-list li"; , <a> href.
$(document).ready(function(){ $(".pane-list li").click(function(){ window.location=$(this).find("a").attr("href"); return false; });});
- ( Gmail inbox). (.
)
$(document).ready(function(){ //hide message_body after the first one $(".message_list .message_body:gt(0)").hide(); //hide message li after the 5th $(".message_list li:gt(4)").hide(); //toggle message_body $(".message_head").click(function(){ $(this).next(".message_body").slideToggle(500) return false; }); //collapse all messages $(".collpase_all_message").click(function(){ $(".message_body").slideUp(500) return false; }); //show all messages $(".show_all_message").click(function(){ $(this).hide() $(".show_recent_only").show() $(".message_list li:gt(4)").slideDown() return false; }); //show recent messages only $(".show_recent_only").click(function(){ $(this).hide() $(".show_all_message").show() $(".message_list li:gt(4)").slideUp() return false; });});
wordpress'a, . - .
. (.
)
//don't forget to include the Color Animations plugin$(document).ready(function(){ $(".pane:even").addClass("alt"); $(".pane .btn-delete").click(function(){ alert("This comment will be deleted!"); $(this).parents(".pane").animate({ backgroundColor: "#fbc7c7" }, "fast") .animate({ opacity: "hide" }, "slow") return false; }); $(".pane .btn-unapprove").click(function(){ $(this).parents(".pane").animate({ backgroundColor: "#fff568" }, "fast") .animate({ backgroundColor: "#ffffff" }, "slow") .addClass("spam") return false; }); $(".pane .btn-approve").click(function(){ $(this).parents(".pane").animate({ backgroundColor: "#dafda5" }, "fast") .animate({ backgroundColor: "#ffffff" }, "slow") .removeClass("spam") return false; }); $(".pane .btn-spam").click(function(){ $(this).parents(".pane").animate({ backgroundColor: "#fbc7c7" }, "fast") .animate({ opacity: "hide" }, "slow") return false; });});
, . (.
)
<em> <h2>
<p class=thumbs> :
$(document).ready(function(){ $("h2").append('<em></em>') $(".thumbs a").click(function(){ var largePath = $(this).attr("href"); var largeAlt = $(this).attr("title"); $("#largeImg").attr({ src: largePath, alt: largeAlt }); $("h2 em").html(" (" + largeAlt + ")"); return false; }); });
, CSS : a[href $='.pdf'] {… }. IE6 , jQuery. (.
)
, .
<a> "
http://www.webdesignerwall.com
" "#" «href», «external» target= "_blank".
$(document).ready(function(){ $("a[@href$=pdf]").addClass("pdf"); $("a[@href$=zip]").addClass("zip"); $("a[@href$=psd]").addClass("psd"); $("a:not([@href*=http://www.webdesignerwall.com])").not("[href^=#]") .addClass("external") .attr({ target: "_blank" });});
.
:
http://www.webdesignerwall.com/tutorials/jquery-tutorials-for-designers/
jQuery :
http://blog.termit.name/jquery/
http://anton.shevchuk.name/javascript/jquery-for-beginners/
: |
? |
|
, , , . .
, , . , , . RSS .
, ( , ).
, - , , . , , - .
. , , , , .
«Kubrick» WordPress, . , , , .
, . .
, , , . , .
. , . , .
: , (permalinks) , , , , . .
AdSense, , , . , , , .
, . , , , , . h1.
, , , , . (= ) .
: |
|
|
: http://www.colorsontheweb.com
, . . , , .
?
, , . , , , .
, , , .
– .
1. - . .
2. - , . .
3. - web-. . , , - (. .)
.
.
()
, - .
.
, , .
, , .
, .
.
, .
, .
, , .
.
– .
, , , .
, , .
– . , , . , .
-
- . , . «» .
, , .
Enter hex code #, , Set. . Monocromatic, Analogous .., , .
: |