< div id ="promobox" ><! -- jQuery tools promo box: tabs with autoscroll -- > <!-- tabs work as navigator for scrollable -->
< ul id ="flowtabs" >
< li >< a id ="t1" href ="#" >< span > 1 </ span >< br /> , 1! </ a ></ li >
< li >< a id ="t2" href ="#" > ="#" >< span > 2 </ span >< br /> , 2! </ a ></ li >
< li >< a id ="t3" href ="#" >< span > 3 </ span >< br /> , , 3! </ a ></ li >
</ ul >
<!-- panes -->
< div id ="flowpanes" ><! -- wrapper for scrollable items -- >
< div class ="items" >
{{block type="cms/block" block_id="home-page-promo-01"}}
{{block type="cms/block" block_id="home-page-promo-02"}}
{{block type="cms/block" block_id="home-page-promo-03"}}
</ div >
</ div >
</ div >
* This source code was highlighted with Source Code Highlighter .
< div >
< div style ="background: #F0F1F2; color:black" >
< h2 > Forget about scrollbars </ h2 >
< p > The purpose of this library is to make it extremely easy to add
scrolling functionality to a website. Whenever you wish to scroll HTML
elements in a visually-appealing manner, this is the only library you
need. The main design goals of this library are to provide < em > visual
customization </ em > functionality and < em > programmability </ em > . Here are some
example scenarios where you would benefit from using the library: </ p >
< ul >
< li > Home pages, like this one right here </ li >
< li > Product catalogues </ li >
< li > News tickers </ li >
< li > Custom select boxes in forms </ li >
< li > Image galleries </ li >
< li > Video playlists </ li >
< li > All kinds of navigational systems </ li >
</ ul >
< p > The first version of the library was released on January 3, 2008.
Since then, this tool has come a long way and it is now a stable and
mature product. </ p >
</ div >
</ div >
* This source code was highlighted with Source Code Highlighter .
< div >
< div style ="background: #F0F1F2; color:black" >
< h2 > Extendable architecture </ h2 >
< p > Just like other tools this tool can be extended with plugins.
Currently available plugins include: </ p >
< ul >
< li >< a href ="http://flowplayer.org/tools/scrollable.html#circular" > circular </ a >
makes an infinite loop from the Scrollable items so they
continue cycling back to the beginning once the last item is reached. </ li >
< li >< a
href ="http://flowplayer.org/tools/scrollable.html#autoscroll" > autoscroll </ a >
makes the scrolling behaviour automatic and is highly
configurable. </ li >
< li >< a
href ="http://flowplayer.org/tools/scrollable.html#navigator" > navigator </ a >
provides navigation buttons for switching between pages in
Scrollable. </ li >
< li >< a
href ="http://flowplayer.org/tools/scrollable.html#mousewheel" > mousewheel </ a >
enables mousewheel support for Scrollable. </ li >
</ ul >
< p > You can also write < a
href ="http://flowplayer.org/tools/using.html#plugins" > your own
plugins </ a > . Another way to alter the default behaviour is the ability to
make your < a
href ="http://flowplayer.org/tools/demos/scrollable/easing.html" > own
animation effects </ a > . There is lots of room for experimentation! </ p >
</ div >
</ div >
* This source code was highlighted with Source Code Highlighter .
< div >
< div style ="”background: #F0F1F2; color:black" >
< h2 > Rich yet simple </ h2 >
< ul style ="font-size: 12px" >
< li > Horizontal and vertical scrolling. </ li >
< li > Scrolling using navigational buttons, API calls, keyboard
arrow keys, and the mouse scroll wheel. </ li >
< li > The number of items scrolled at once is customizable. </ li >
< li > The navigational buttons are setup without a single line of
JavaScript. </ li >
< li > Tabbed navigation like this one can be setup without any
programming. </ li >
< li > Programmatic actions are available, such as: < samp > next </ samp > ,
< samp > prev </ samp > , < samp > nextPage </ samp > , < samp > prevPage </ samp > , < samp > seekTo </ samp > ,
< samp > begin </ samp > , and < samp > end </ samp > . </ li >
< li > Dynamic addition and removal of Scrollable items. </ li >
< li > The ability to customize the scrolling experience with < samp > onBeforeSeek </ samp >
and < samp > onSeek </ samp > listeners. </ li >
</ ul >
</ div >
</ div >
* This source code was highlighted with Source Code Highlighter .
/* Promobox styles */
#promobox {
width: 560px;
height: 290px;
margin: 0;
padding: 0;
}
/* */
#flowtabs {
float: right;
/* dimensions */
width:172px;
height: 0 !important;
margin:0 !important;
padding:0;
/* IE6 specific branch (prefixed with "_") */
_margin-bottom:-2px;
}
/* */
#flowtabs li {
margin:0;
padding:0;
text-indent:0;
list-style-type:none;
}
/* < a > - */
#flowtabs li a {
background:#fbfaf6;
display:block;
height: 50px;
width: 168px;
padding:18px 0 0 4px;
margin:1px 0 1px 0;
border-left: 5px solid #fbfaf6;
/* font decoration */
color:#000;
text-align:left;
text-decoration:none;
}
#flowtabs li a span { text-transform:uppercase; font-weight:bold; }
/* */
#flowtabs a.current { cursor:default; border-left: 5px solid #59111e; }
/* – */
#flowpanes {
background: #fff;
width:388px;
height:290px;
/* from html */
position:relative;
overflow:hidden;
}
/* */
#flowpanes div {
display:none;
color:#e65505;
background: #fff;
padding: 0 10px 0 0;
/* from html */
float:left;
display:block;
width:378px;
height: 290px;
cursor:pointer;
font-size:14px;
}
#flowpanes div h2 { color:#e65505; }
/* */
#flowpanes .items {
height:20000em; /* – - */
position:absolute;
clear:both;
margin:0;
padding:0;
}
* This source code was highlighted with Source Code Highlighter .
// #flowplanes . circular navigator
jQuery( "#flowpanes" ).scrollable( {
vertical : true , // ,
size : 1, //
clickable : false
// , ..
}).circular().mousewheel(400).navigator( {
// id #flowtabs
navi : "#flowtabs" ,
// , <a> ( «» )
naviItem : 'a' ,
// "current" <a>
activeClass : 'current'
}).autoscroll( {
//
autoplay : true ,
interval : 5000
//
});
* This source code was highlighted with Source Code Highlighter .
{{block type="cms/block" block_id="home-page-promo"}}
Source: https://habr.com/ru/post/76743/
All Articles