PSD-Tutorials.de
Forum für Design, Fotografie & Bildbearbeitung
Tutkit
Agentur
Hilfe
Kontakt
Start
Forum
Aktuelles
Besonderer Inhalt
Foren durchsuchen
Tutorials
News
Anmelden
Kostenlos registrieren
Aktuelles
Suche
Suche
Nur Titel durchsuchen
Von:
Menü
Anmelden
Kostenlos registrieren
App installieren
Installieren
JavaScript ist deaktiviert. Für eine bessere Darstellung aktiviere bitte JavaScript in deinem Browser, bevor du fortfährst.
Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden.
Du solltest ein Upgrade durchführen oder einen
alternativen Browser
verwenden.
Antworten auf deine Fragen:
Neues Thema erstellen
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
PHP, Javascript, jQuery, Ajax, nodeJS, MySQL...
JQuery - Funktion gesucht
Beitrag
<blockquote data-quote="Samuelll" data-source="post: 1286470" data-attributes="member: 273384"><p><strong>AW: JQuery - Funktion gesucht</strong></p><p></p><p>Habe bisher nur das Beispiel "Sepzial Circular" genommen und es um wenige Parrameter ergänzt :</p><p></p><p>[CODE]</p><p>cript type="text/javascript"></p><p></p><p>var mycarousel_itemList = [</p><p> {url: 'http://static.flickr.com/66/199481236_dc98b5abb3_s.jpg', title: 'Flower1'},</p><p> {url: 'http://static.flickr.com/75/199481072_b4a0d09597_s.jpg', title: 'Flower2'},</p><p> {url: 'http://static.flickr.com/57/199481087_33ae73a8de_s.jpg', title: 'Flower3'},</p><p> {url: 'http://static.flickr.com/77/199481108_4359e6b971_s.jpg', title: 'Flower4'},</p><p> {url: 'http://static.flickr.com/58/199481143_3c148d9dd3_s.jpg', title: 'Flower5'},</p><p> {url: 'http://static.flickr.com/72/199481203_ad4cdcf109_s.jpg', title: 'Flower6'},</p><p> {url: 'http://static.flickr.com/58/199481218_264ce20da0_s.jpg', title: 'Flower7'},</p><p> {url: 'http://static.flickr.com/69/199481255_fdfe885f87_s.jpg', title: 'Flower8'},</p><p> {url: 'http://static.flickr.com/60/199480111_87d4cb3e38_s.jpg', title: 'Flower9'},</p><p> {url: 'http://static.flickr.com/70/229228324_08223b70fa_s.jpg', title: 'Flower10'}</p><p>];</p><p></p><p>function mycarousel_itemVisibleInCallback(carousel, item, i, state, evt)</p><p>{</p><p> // The index() method calculates the index from a</p><p> // given index who is out of the actual item range.</p><p> var idx = carousel.index(i, mycarousel_itemList.length);</p><p> carousel.add(i, mycarousel_getItemHTML(mycarousel_itemList[idx - 1]));</p><p>};</p><p></p><p>function mycarousel_itemVisibleOutCallback(carousel, item, i, state, evt)</p><p>{</p><p> carousel.remove(i);</p><p>};</p><p></p><p>/**</p><p> * Item html creation helper.</p><p> */</p><p>function mycarousel_getItemHTML(item)</p><p>{</p><p> return '<img src="' + item.url + '" width="75" height="75" alt="' + item.title + '" />';</p><p>};</p><p></p><p>jQuery(document).ready(function() {</p><p> jQuery('#mycarousel').jcarousel({</p><p> wrap: 'circular',</p><p> itemVisibleInCallback: {onBeforeAnimation: mycarousel_itemVisibleInCallback},</p><p> itemVisibleOutCallback: {onAfterAnimation: mycarousel_itemVisibleOutCallback},</p><p> vertical: true,</p><p> scroll: 1,</p><p> auto : 1,</p><p> animation : 3000.0</p><p> });</p><p>});</p><p></p><p></script></p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="Samuelll, post: 1286470, member: 273384"] [b]AW: JQuery - Funktion gesucht[/b] Habe bisher nur das Beispiel "Sepzial Circular" genommen und es um wenige Parrameter ergänzt : [CODE] cript type="text/javascript"> var mycarousel_itemList = [ {url: 'http://static.flickr.com/66/199481236_dc98b5abb3_s.jpg', title: 'Flower1'}, {url: 'http://static.flickr.com/75/199481072_b4a0d09597_s.jpg', title: 'Flower2'}, {url: 'http://static.flickr.com/57/199481087_33ae73a8de_s.jpg', title: 'Flower3'}, {url: 'http://static.flickr.com/77/199481108_4359e6b971_s.jpg', title: 'Flower4'}, {url: 'http://static.flickr.com/58/199481143_3c148d9dd3_s.jpg', title: 'Flower5'}, {url: 'http://static.flickr.com/72/199481203_ad4cdcf109_s.jpg', title: 'Flower6'}, {url: 'http://static.flickr.com/58/199481218_264ce20da0_s.jpg', title: 'Flower7'}, {url: 'http://static.flickr.com/69/199481255_fdfe885f87_s.jpg', title: 'Flower8'}, {url: 'http://static.flickr.com/60/199480111_87d4cb3e38_s.jpg', title: 'Flower9'}, {url: 'http://static.flickr.com/70/229228324_08223b70fa_s.jpg', title: 'Flower10'} ]; function mycarousel_itemVisibleInCallback(carousel, item, i, state, evt) { // The index() method calculates the index from a // given index who is out of the actual item range. var idx = carousel.index(i, mycarousel_itemList.length); carousel.add(i, mycarousel_getItemHTML(mycarousel_itemList[idx - 1])); }; function mycarousel_itemVisibleOutCallback(carousel, item, i, state, evt) { carousel.remove(i); }; /** * Item html creation helper. */ function mycarousel_getItemHTML(item) { return '<img src="' + item.url + '" width="75" height="75" alt="' + item.title + '" />'; }; jQuery(document).ready(function() { jQuery('#mycarousel').jcarousel({ wrap: 'circular', itemVisibleInCallback: {onBeforeAnimation: mycarousel_itemVisibleInCallback}, itemVisibleOutCallback: {onAfterAnimation: mycarousel_itemVisibleOutCallback}, vertical: true, scroll: 1, auto : 1, animation : 3000.0 }); }); </script> [/CODE] [/QUOTE]
Bilder bitte
hier hochladen
und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Zitate einfügen…
Authentifizierung
Wenn ▲ = 7, ▼ = 3, ◇ = 2 und die Summe von ▲ und ▼ durch ◇ geteilt wird, was ist das Ergebnis?
Antworten
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
PHP, Javascript, jQuery, Ajax, nodeJS, MySQL...
JQuery - Funktion gesucht
Oben