Index: webapp/cms/skins/demo/resources/js/jquery.featureList-1.0.0.js =================================================================== --- webapp/cms/skins/demo/resources/js/jquery.featureList-1.0.0.js (revision 15958) +++ webapp/cms/skins/demo/resources/js/jquery.featureList-1.0.0.js (working copy) @@ -16,7 +16,7 @@ return this; }; - $.featureList = function(tabs, output, options) { + $.featureList = function(node, tabs, output, options) { function slide(nr) { if (typeof nr == "undefined") { nr = visible_item + 1; @@ -38,7 +38,41 @@ options.pause_on_hover = options.pause_on_hover || true; options.transition_interval = options.transition_interval || 5000; options.transition_mouseenter = options.transition_mouseenter || false; + options.pauseText = options.pauseText || "Pause"; + options.playText = options.playText || "Play"; + + var running = true; + var timer = null; + + pause = function() { + clearInterval(timer); + } + play = function() { + clearInterval(timer); + timer = setInterval(function () { slide(); }, options.transition_interval); + } + + + node.addClass("js"); + $j(node[0].parentNode).append("
") + var button = $j(node[0].parentNode).find(".featureListButton button") + button.click(function() { + var b = $j(this); + if (b.hasClass("play")) + { + b.removeClass("play").addClass("pause").attr("title", options.pauseText).html(options.pauseText); + running = true; + play(); + } + else + { + b.removeClass("pause").addClass("play").attr("title", options.playText).html(options.playText); + running = false; + pause(); + } + }) + output.hide().eq( visible_item ).show(); tabs.eq( visible_item ).addClass('current'); @@ -60,21 +94,13 @@ }); } - if (options.transition_interval > 0) { - var timer = setInterval(function () { - slide(); - }, options.transition_interval); + if (options.transition_interval > 0) + { + play(); - if (options.pause_on_hover) { - tabs.mouseenter(function() { - clearInterval( timer ); - - }).mouseleave(function() { - clearInterval( timer ); - timer = setInterval(function () { - slide(); - }, options.transition_interval); - }); + if (options.pause_on_hover) + { + node.mouseenter(function() { pause(); }).mouseleave(function() { if (running) { play(); } }); } } }; Index: webapp/cms/skins/demo/resources/css/services/filtered-contents-feature-list.css =================================================================== --- webapp/cms/skins/demo/resources/css/services/filtered-contents-feature-list.css (revision 15958) +++ webapp/cms/skins/demo/resources/css/services/filtered-contents-feature-list.css (working copy) @@ -22,30 +22,38 @@ { float: right; } - +.filtered-contents.feature-list-contents div.featureList.js{ + height: 350px; + overflow: hidden; + border: 1px solid #B3BBC5; +} .filtered-contents.feature-list-contents div.featureList { position: relative; width: 720px; - height: 350px; - overflow: hidden; margin-top: 15px; margin-bottom: 10px; - border: 1px solid #B3BBC5; margin-left: auto; margin-right: auto; } .filtered-contents.feature-list-contents div.featureList ul { - position: absolute; +/* position: absolute; */ list-style: none; padding: 0; margin: 0; + float:left; } .filtered-contents.feature-list-contents ul.featureListTabs { right: 0; z-index: 2; width: 250px; +/* position:absolute; */ + top:0; +} + +.filtered-contents.feature-list-contents div.featureList.js ul.featureListTabs{ + float:right; } .filtered-contents.feature-list-contents ul.featureListTabs li img { @@ -61,7 +69,6 @@ display: block; padding: 5px 10px; height: 60px; - outline: none; } .filtered-contents.feature-list-contents ul.featureListTabs li a:hover { @@ -80,19 +87,21 @@ .filtered-contents.feature-list-contents ul.featureListOutput { left: 0; width: 470px; - height: 340px; +/* height: 340px; */ position: relative; } .filtered-contents.feature-list-contents ul.featureListOutput li { - position: absolute; +/* position: absolute; */ width: 470px; - height: 340px; + height: 350px; + float:left; + margin-bottom:10px; } .filtered-contents.feature-list-contents ul.featureListOutput .featureListDetails { - position:absolute; - top:240px; + position:relative; + top:-113px; left:0; height:94px; background: url("../../img/services/filtered-contents/transparent-bg.png"); @@ -111,4 +120,21 @@ font-style: italic; font-weight: bold; font-size: 1.5em; -} \ No newline at end of file +} +.filtered-contents.feature-list-contents .link{ + float:right; + margin-right:10px; +} +.filtered-contents.feature-list-contents button.featureListControl.play, +.filtered-contents.feature-list-contents button.featureListControl.pause{ + background:transparent url(../../img/services/filtered-contents/dot-pause.png) no-repeat left center; + border-width:0; + overflow:hidden; + padding: 0 7px; + cursor:pointer; + margin-left: 8px; + padding-left:22px; + color:#666666; +} +.filtered-contents.feature-list-contents button.featureListControl:hover{ text-decoration:underline; } +.filtered-contents.feature-list-contents button.featureListControl.play{ background-image:url(../../img/services/filtered-contents/dot-play.png);} \ No newline at end of file Index: webapp/cms/skins/demo/services/web/pages/services/filtered-contents/feature-list_3.3.xsl =================================================================== --- webapp/cms/skins/demo/services/web/pages/services/filtered-contents/feature-list_3.3.xsl (revision 15958) +++ webapp/cms/skins/demo/services/web/pages/services/filtered-contents/feature-list_3.3.xsl (working copy) @@ -65,11 +65,13 @@ - @@ -81,24 +83,24 @@ - + - + -
-
    - -
+
    -
-
- + +
    + +
+ +
empty
@@ -129,13 +131,14 @@ - +
  • - + + #featureListOutput-- {$alt-text} @@ -143,13 +146,14 @@ - +
  • + featureListOutput-- {$alt-text}
    @@ -167,7 +171,7 @@ -

    +