
рдЖрдЬ рдореИрдВ рдПрдХ рд╕рд╛рдЗрдЯ рдкрд░ рдЖрдпрд╛ рдерд╛ , рдЬрд┐рд╕рдХреА рдкреГрд╖реНрдарднреВрдорд┐, рдмреНрд░рд╛рдЙрдЬрд╝рд░ рд╡рд┐рдВрдбреЛ рдХреЛ рд╢рд╛рдВрдд рдХрд░рддреЗ рд╕рдордп рд╕реНрдХреНрд░реЙрд▓ рдХрд░реЗрдЧреА, рдХреВрд▓, рдЖрдк рдХреБрдЫ рднреА рдирд╣реАрдВ рдХрд╣ рд╕рдХрддреЗ, рд▓реЗрдХрд┐рди рдпрд╣ рдореЗрд░реЗ рд▓рд┐рдП рдкрд░реНрдпрд╛рдкреНрдд рдирд╣реАрдВ рдерд╛ред рдЗрд╕рд▓рд┐рдП, рдореИрдВ рдмрд┐рдирд╛ рдХрд┐рд╕реА рдЬрд┐рдлрд╝ рдпрд╛ рдлреНрд▓рд╢ рдХреЗ рд▓рдЧрд╛рддрд╛рд░ рдмреИрдХрдЧреНрд░рд╛рдЙрдВрдб рд╕реНрдХреНрд░реЙрд▓ рдХрд░рдирд╛ рдЪрд╛рд╣рддрд╛ рдерд╛ред рдЙрдиреНрд╣реЛрдВрдиреЗ рдЕрдкрдиреЗ рдкрд╕рдВрджреАрджрд╛ рд╕рдВрдЧреАрдд рдФрд░ ... рд╡рд╕реАрд▓рд╛ рдХреЛ рдЪрд╛рд▓реВ рдХрд┐рдпрд╛! :)
рдореИрдВрдиреЗ рдпрд╣рд╛рдВ рдХреНрдпрд╛ рдЖрдХрд░реНрд╖рд┐рдд рдХрд┐рдпрд╛ рд╣реИ jQuery рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рддрд╛ рд╣реИ, рдФрд░ рдпрд╣ рдмрд╣реБрдд рдЬрд▓реНрджреА рд▓рд┐рдЦрд╛ рдЧрдпрд╛ рдерд╛ред рдЗрд╕рд▓рд┐рдП, рдЬреНрдпрд╛рджрд╛ рд▓рд╛рдд рдордд рдЦрд╛рдУ :)
рдпрд╣ рдХрд╣рд╛рдВ рд▓рд╛рдЧреВ рдХрд┐рдпрд╛ рдЬрд╛ рд╕рдХрддрд╛ рд╣реИ? рдареАрдХ рд╣реИ, рдирд┐рд╢реНрдЪрд┐рдд рд░реВрдк рд╕реЗ рдкреВрд░реА рд╕рд╛рдЗрдЯ рдкрд░ рдирд╣реАрдВ рд╣реИ, рд▓реЗрдХрд┐рди рдкреЛрд╕реНрдЯрдХрд╛рд░реНрдб рдпрд╛ рд╡реНрдпрд╡рд╕рд╛рдп рдХрд╛рд░реНрдб / рдкреНрд░рд╕реНрддреБрддрд┐ рдкреГрд╖реНрда рдХреЗ рд▓рд┐рдП - рдореБрдЭреЗ рд▓рдЧрддрд╛ рд╣реИ рдХрд┐ рдпрд╣ рд╕рдмрд╕реЗ рдЕрдзрд┐рдХ рд╣реИ :)
1. рдПрдЪрдЯреАрдПрдордПрд▓
рд╣рдорд╛рд░реЗ рдкрд╛рд╕ рдХреЗрд╡рд▓ рддреАрди рдЪрд┐рддреНрд░ рд╣реИрдВ, рдЗрд╕рд▓рд┐рдП, рдкрд╣рд▓реЗ рдбреНрд░рд╛рдЗрдВрдЧ рдХреЗ рд▓рд┐рдП рд╣рдорд╛рд░реЗ рдкрд╛рд╕ рд╢рд░реАрд░ рд╣реИ, рдЕрдиреНрдп рджреЛ рдХреЗ рд▓рд┐рдП рд╣рдо рджреЛ divas рдмрдирд╛рддреЗ рд╣реИрдВ рдФрд░ рдЙрдиреНрд╣реЗрдВ рд╡рд╣реАрдВ рдмрдВрдж рдХрд░ рджреЗрддреЗ рд╣реИрдВред рд▓реЗрдХрд┐рди, рдЪреВрдВрдХрд┐ рдпреЗ рджреЛ рджрд┐рд╡рд╛ рдмрд╕ рдкрд╛рдЧрд▓ рд╣реЛ рдЬрд╛рдПрдВрдЧреЗ рдХрд┐рддрдиреЗ рдмрдбрд╝реЗ, рд╣рдо рдЙрдиреНрд╣реЗрдВ рдПрдХ рдФрд░ div рдореЗрдВ рдбрд╛рд▓рддреЗ рд╣реИрдВ:
<div id="overflow">
<div id="midground"></div>
<div id="foreground"></div>
</div>
рдмреЗрд╢рдХ, рд╕рд╛рдордЧреНрд░реА рдХреЗ рд▓рд┐рдП, рд╣рдорд╛рд░реЗ рдкрд╛рд╕ рдПрдХ рдЕрд▓рдЧ div рд╣реИ:
<div id="content">
<!-- content goes here -->
</div>
2. рд╕реАрдПрд╕рдПрд╕
рдЕрдм рд╢реИрд▓рд┐рдпреЛрдВ рдХреЗ рд▓рд┐рдПред
, .
#overflow { width: 100%; overflow: hidden; height: 500px; position: absolute; }
, , :
#midground {
background: transparent url(bg-mid.png) left top repeat-x;
margin: 0; padding: 0; width: 1000%;
position: absolute; top: 0;
height: 600px;
z-index: 1;
}
#foreground {
background: transparent url(bg-front.png) left top repeat-x;
margin: 0; padding: 0; width: 1000%; height: 200px;
position: absolute; top: 0; left: -9000px;
z-index: 2;
}
3. jQuery
, :
init.js: $(document).ready(function() {
$('#midground').animate({left: "-=9000px"}, { easing: "linear", duration:120000 });
$('#foreground').animate({left: "+=9000px"}, { easing: "linear", duration:120000 });
});
, , .
1. $(document).ready тАФ html/js .
2. $() - jQuery, css- xpath
3. $.animate() - , css (easing)
4. $.animate({left: "+=9000px"}) - - . - .
5. {easing: "linear", duration: 120000} - (easing) "linear", , , .. jQuery "swing". .. . duration: 120000 - , self-explanatory, .
6. , - , :)
, , , .
! :)
: Firefox 2, Opera 9.26, Internet Explorer 7, Safari 3.0.4.
IE 6 , - , :)
, .
#overflow { width: 100%; overflow: hidden; height: 500px; position: absolute; }
, , :
#midground {
background: transparent url(bg-mid.png) left top repeat-x;
margin: 0; padding: 0; width: 1000%;
position: absolute; top: 0;
height: 600px;
z-index: 1;
}
#foreground {
background: transparent url(bg-front.png) left top repeat-x;
margin: 0; padding: 0; width: 1000%; height: 200px;
position: absolute; top: 0; left: -9000px;
z-index: 2;
}
3. jQuery
, :
init.js: $(document).ready(function() {
$('#midground').animate({left: "-=9000px"}, { easing: "linear", duration:120000 });
$('#foreground').animate({left: "+=9000px"}, { easing: "linear", duration:120000 });
});
, , .
1. $(document).ready тАФ html/js .
2. $() - jQuery, css- xpath
3. $.animate() - , css (easing)
4. $.animate({left: "+=9000px"}) - - . - .
5. {easing: "linear", duration: 120000} - (easing) "linear", , , .. jQuery "swing". .. . duration: 120000 - , self-explanatory, .
6. , - , :)
, , , .
! :)
: Firefox 2, Opera 9.26, Internet Explorer 7, Safari 3.0.4.
IE 6 , - , :)
, .
#overflow { width: 100%; overflow: hidden; height: 500px; position: absolute; }
, , :
#midground {
background: transparent url(bg-mid.png) left top repeat-x;
margin: 0; padding: 0; width: 1000%;
position: absolute; top: 0;
height: 600px;
z-index: 1;
}
#foreground {
background: transparent url(bg-front.png) left top repeat-x;
margin: 0; padding: 0; width: 1000%; height: 200px;
position: absolute; top: 0; left: -9000px;
z-index: 2;
}
3. jQuery
, :
init.js: $(document).ready(function() {
$('#midground').animate({left: "-=9000px"}, { easing: "linear", duration:120000 });
$('#foreground').animate({left: "+=9000px"}, { easing: "linear", duration:120000 });
});
, , .
1. $(document).ready тАФ html/js .
2. $() - jQuery, css- xpath
3. $.animate() - , css (easing)
4. $.animate({left: "+=9000px"}) - - . - .
5. {easing: "linear", duration: 120000} - (easing) "linear", , , .. jQuery "swing". .. . duration: 120000 - , self-explanatory, .
6. , - , :)
, , , .
! :)
: Firefox 2, Opera 9.26, Internet Explorer 7, Safari 3.0.4.
IE 6 , - , :)
, .
#overflow { width: 100%; overflow: hidden; height: 500px; position: absolute; }
, , :
#midground {
background: transparent url(bg-mid.png) left top repeat-x;
margin: 0; padding: 0; width: 1000%;
position: absolute; top: 0;
height: 600px;
z-index: 1;
}
#foreground {
background: transparent url(bg-front.png) left top repeat-x;
margin: 0; padding: 0; width: 1000%; height: 200px;
position: absolute; top: 0; left: -9000px;
z-index: 2;
}
3. jQuery
, :
init.js: $(document).ready(function() {
$('#midground').animate({left: "-=9000px"}, { easing: "linear", duration:120000 });
$('#foreground').animate({left: "+=9000px"}, { easing: "linear", duration:120000 });
});
, , .
1. $(document).ready тАФ html/js .
2. $() - jQuery, css- xpath
3. $.animate() - , css (easing)
4. $.animate({left: "+=9000px"}) - - . - .
5. {easing: "linear", duration: 120000} - (easing) "linear", , , .. jQuery "swing". .. . duration: 120000 - , self-explanatory, .
6. , - , :)
, , , .
! :)
: Firefox 2, Opera 9.26, Internet Explorer 7, Safari 3.0.4.
IE 6 , - , :)
, .
#overflow { width: 100%; overflow: hidden; height: 500px; position: absolute; }
, , :
#midground {
background: transparent url(bg-mid.png) left top repeat-x;
margin: 0; padding: 0; width: 1000%;
position: absolute; top: 0;
height: 600px;
z-index: 1;
}
#foreground {
background: transparent url(bg-front.png) left top repeat-x;
margin: 0; padding: 0; width: 1000%; height: 200px;
position: absolute; top: 0; left: -9000px;
z-index: 2;
}
3. jQuery
, :
init.js: $(document).ready(function() {
$('#midground').animate({left: "-=9000px"}, { easing: "linear", duration:120000 });
$('#foreground').animate({left: "+=9000px"}, { easing: "linear", duration:120000 });
});
, , .
1. $(document).ready тАФ html/js .
2. $() - jQuery, css- xpath
3. $.animate() - , css (easing)
4. $.animate({left: "+=9000px"}) - - . - .
5. {easing: "linear", duration: 120000} - (easing) "linear", , , .. jQuery "swing". .. . duration: 120000 - , self-explanatory, .
6. , - , :)
, , , .
! :)
: Firefox 2, Opera 9.26, Internet Explorer 7, Safari 3.0.4.
IE 6 , - , :)
, .
#overflow { width: 100%; overflow: hidden; height: 500px; position: absolute; }
, , :
#midground {
background: transparent url(bg-mid.png) left top repeat-x;
margin: 0; padding: 0; width: 1000%;
position: absolute; top: 0;
height: 600px;
z-index: 1;
}
#foreground {
background: transparent url(bg-front.png) left top repeat-x;
margin: 0; padding: 0; width: 1000%; height: 200px;
position: absolute; top: 0; left: -9000px;
z-index: 2;
}
3. jQuery
, :
init.js: $(document).ready(function() {
$('#midground').animate({left: "-=9000px"}, { easing: "linear", duration:120000 });
$('#foreground').animate({left: "+=9000px"}, { easing: "linear", duration:120000 });
});
, , .
1. $(document).ready тАФ html/js .
2. $() - jQuery, css- xpath
3. $.animate() - , css (easing)
4. $.animate({left: "+=9000px"}) - - . - .
5. {easing: "linear", duration: 120000} - (easing) "linear", , , .. jQuery "swing". .. . duration: 120000 - , self-explanatory, .
6. , - , :)
, , , .
! :)
: Firefox 2, Opera 9.26, Internet Explorer 7, Safari 3.0.4.
IE 6 , - , :)
, .
#overflow { width: 100%; overflow: hidden; height: 500px; position: absolute; }
, , :
#midground {
background: transparent url(bg-mid.png) left top repeat-x;
margin: 0; padding: 0; width: 1000%;
position: absolute; top: 0;
height: 600px;
z-index: 1;
}
#foreground {
background: transparent url(bg-front.png) left top repeat-x;
margin: 0; padding: 0; width: 1000%; height: 200px;
position: absolute; top: 0; left: -9000px;
z-index: 2;
}
3. jQuery
, :
init.js: $(document).ready(function() {
$('#midground').animate({left: "-=9000px"}, { easing: "linear", duration:120000 });
$('#foreground').animate({left: "+=9000px"}, { easing: "linear", duration:120000 });
});
, , .
1. $(document).ready тАФ html/js .
2. $() - jQuery, css- xpath
3. $.animate() - , css (easing)
4. $.animate({left: "+=9000px"}) - - . - .
5. {easing: "linear", duration: 120000} - (easing) "linear", , , .. jQuery "swing". .. . duration: 120000 - , self-explanatory, .
6. , - , :)
, , , .
! :)
: Firefox 2, Opera 9.26, Internet Explorer 7, Safari 3.0.4.
IE 6 , - , :)