{{indexmenu_n>10}} ====== Slider enhanced ====== To keep the Slider more flexible, I've adapted the script slightly ([[http://forum.phpwcms.org/viewtopic.php?f=28&t=19101|Have a look into the old thread [DE]]]). The adapted version for **Mootools 1.2** //(since r381)//. **Advantages:** \\ - Width, height and length of the Sliders depend on the adjustment of the picture preview size and number of columns \\ - With several Slidern on a page, you can not scroll beyond the end \\ \\ ---- **slider01.tmpl** V1.1 09.03.10 Docu: -- \\ Forum V1.0: [[http://forum.phpwcms.org/viewtopic.php?f=28&t=19101|Flexible Bild-Slider mit R340]] [DE] \\ Forum V1.1: [[http://forum.phpwcms.org/viewtopic.php?p=123104#p123104]] [DE] \\ **Author:** Gerd (swisscheese) \\ **CMS Version:** >= 1.4.5 \\ **Version:** V1.1 \\ Tag: -- \\ Filename: **slider01.tmpl** Folder: ** template/inc_cntpart/imagespecial/ ** **Condition:** -> [[http://www.phpwcms-docu.de/conf_inc_php_en.phtml|/config/phpwcms/conf.inc.php]] \\ * $phpwcms['allow_cntPHP_rt'] = 1; ---- ---- \\ ===== Template: =====
[TITLE]

{TITLE}

[/TITLE] [SUBTITLE]

{SUBTITLE}

[/SUBTITLE] [TEXT]{TEXT}[/TEXT]

{IMAGE}[CAPTION]
{CAPTION} [/CAPTION]

[PHP] $GLOBALS['block']['custom_htmlhead']['slider_{ID}'] = ' '; [/PHP]
\\ ===== CSS: ===== /* SLIDER */ div.outer { position:relative; } div.slider { margin: 0 0 10px 0; padding: 0 0 5px 0; overflow: hidden; position: absolute; top:0; } .sliderArrowLft, .sliderArrowRgt { width:10px; display:block; border:1px solid #fff; position: absolute; top:0; } .sliderArrowLft img, .sliderArrowRgt img { border:none; } a.sliderArrowLft:hover, a.sliderArrowRgt:hover { border:1px solid #c00; } div.slider div.inner { margin: 0; padding: 0; list-style: none; width: 8000px; position: absolute; left: 0; top: 0; } div.slider div.inner p { padding: 0; float: left; } div.slider div.inner a { float:left; border: 1px solid #FFFFFF; padding: 0; background-color: #000000; } div.slider div.inner a:hover { border: 1px solid #CC3300; } div.slider div.inner br { clear:left } div.slider div.inner img { border: 1px solid #ccc; } div.slider div.inner a img { border: none; } /* eof SLIDER */ \\ ===== Template autoscroll: =====
[TITLE]

{TITLE}

[/TITLE] [SUBTITLE]

{SUBTITLE}

[/SUBTITLE] [TEXT]{TEXT}[/TEXT]

{IMAGE}[CAPTION]
{CAPTION} [/CAPTION]

[PHP] $GLOBALS['block']['custom_htmlhead']['slider_{ID}'] = ' '; [/PHP]
\\