<! doctype html>
< html >
< head >
< meta http-equiv = "Content-Type" content = "text / html; charset = utf-8" / >
< title > NoScript Album < / title >
< link rel = "stylesheet" type = "text / css" href = "style2.css" / >
< link rel = "stylesheet" type = "text / css" href = "imgs.css" / >
< base target = "_blank" / >
< / head >
< body >
< span class = "cover" > < / span >
< span class = "hide" >
<a href = "http://kirpich.example.com/imgs/rust/rust_vid-1.jpg" id = "lnk0" class = "lnk">
< span class = "img" > < img src = "http://kirpich.example.com/thmb/rust/rust_vid-1.jpg" alt = "" > < / span >
< / a >
<a href = "http://kirpich.example.com/imgs/fjord/fjord_vid-1.jpg" id = "lnk1" class = "lnk">
< span class = "img" > < img src = "http://kirpich.example.com/thmb/fjord/fjord_vid-1.jpg" alt = "" > < / span >
< / a >
<a href = "http://kirpich.example.com/imgs/shater/shater_enter.jpg" id = "lnk2" class = "lnk">
< span class = "img" > < img src = "http://kirpich.example.com/thmb/shater/shater_enter.jpg" alt = "" > < / span >
< / a >
<a href = "http://kirpich.example.com/imgs/osenniy_list/vid1.jpg" id = "lnk3" class = "lnk">
< span class = "img" > < img src = "http://kirpich.example.com/thmb/osenniy_list/vid1.jpg" alt = "" > < / span >
< / a >
<a href = "http://kirpich.example.com/imgs/vsevologsk1.jpg" id = "lnk4" class = "lnk">
< span class = "img" > < img src = "http://kirpich.example.com/thmb/vsevologsk1.jpg" alt = "" > < / span >
< / a >
<a href = "http://kirpich.example.com/imgs/luch/Sertolovo.jpg" id = "lnk5" class = "lnk">
< span class = "img" > < img src = "http://kirpich.example.com/thmb/luch/Sertolovo.jpg" alt = "" > < / span >
< / a >
<a href = "http://kirpich.example.com/921-1_.jpg" id = "lnk6" class = "lnk">
< span class = "img" > < img src = "http://kirpich.example.com/thmb/921-1_.jpg" alt = "" > < / span >
< / a >
<a href = "http://kirpich.example.com/917-1.jpg" id = "lnk7" class = "lnk">
< span class = "img" > < img src = "http://kirpich.example.com/thmb/917-1.jpg" alt = "" > < / span >
< / a >
< / span >
< / body >
< / html >
body {
background-color : # 555555 ;
color : white ;
height : 100 % ;
}
.lnk {
display : block ;
float : left ;
margin-bottom : 10px ;
margin-left : 10px ;
overflow : hidden ;
}
.lnk .img {
position : relative ;
z-index : 3 ;
margin-bottom : 10px ;
border : 1px solid black ;
overflow : hidden ;
display : table-cell ;
height : 100px ;
vertical-align : middle ;
background-color : # 555555 ;
}
img {
vertical-align : middle ;
border : 0px ;
width : 100px ;
}
.lnk : hover : after {
content : "" ;
}
.lnk : focus , .lnk : hover : after {
background-color : # 555555 ;
background- size : contain ;
background-position : center ;
background-repeat : no-repeat ;
cursor : crosshair ;
}
.cover , .lnk : hover : after , .lnk : focus {
position : fixed ;
top : 0px ;
left : 0px ;
width : 100 % ;
height : 100 % ;
margin : 0px ;
}
. hide : hover. img {
opacity : 0.01 ;
filter : alpha ( opacity = 1 ) ;
cursor : crosshair ;
}
.cover {
z-index : 2 ;
}
.lnk : focus {
z-index : 4 ;
}
.lnk : focus .img {
display : none ;
}
.lnk : focus + .lnk {
position : fixed ;
bottom : 20px ;
right : 0px ;
z-index : 4 ;
}
.lnk : focus + .lnk .img {
opacity : 1 ;
filter : alpha ( opacity = 100 ) ;
border : 1px solid black ;
}
.lnk : focus + .lnk : after {
display : none ;
}
# lnk0 : focus , # lnk0 : hover : after {
background-image : url ( 'http://kirpich.example.com/imgs/rust/rust_vid-1.jpg' ) ;
}
# lnk1 : focus , # lnk1 : hover : after {
background-image : url ( 'http://kirpich.example.com/imgs/fjord/fjord_vid-1.jpg' ) ;
}
# lnk2 : focus , # lnk2 : hover : after {
background-image : url ( 'http://kirpich.example.com/imgs/shater/shater_enter.jpg' ) ;
}
# lnk3 : focus , # lnk3 : hover : after {
background-image : url ( 'http://kirpich.example.com/imgs/osenniy_list/vid1.jpg' ) ;
}
# lnk4 : focus , # lnk4 : hover : after {
background-image : url ( 'http://kirpich.example.com/imgs/vsevologsk1.jpg' ) ;
}
# lnk5 : focus , # lnk5 : hover : after {
background-image : url ( 'http://kirpich.example.com/imgs/luch/Sertolovo.jpg' ) ;
}
# lnk6 : focus , # lnk6 : hover : after {
background-image : url ( 'http://kirpich.example.com/921-1_.jpg' ) ;
}
# lnk7 : focus , # lnk7 : hover : after {
background-image : url ( 'http://kirpich.example.com/917-1.jpg' ) ;
}
. img {
/ * Firefox * /
- moz - transition - property : opacity ;
- moz - transition - duration : 2s ;
/ * WebKit *
- webkit - transition - property : opacity ;
- webkit - transition - duration : 2s ;
/ * Opera * /
- o - transition - property : opacity ;
- o - transition - duration : 2s ;
/ * Standard * /
transition - property : opacity ;
transition - duration : 2s ;
}
Source: https://habr.com/ru/post/129945/
All Articles