Last active
August 29, 2015 14:19
-
-
Save Dan4IT/af3e79f7c9f4f5a9def0 to your computer and use it in GitHub Desktop.
Mura Backstretch Gallery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <cfoutput> | |
| <!--- set galleryContentID to the Content ID of the Gallery you want to load ---> | |
| <cfset galleryContentID='contentID goes here'> | |
| <cfset it=$.getBean('content').loadBy(contentID=galleryContentID,siteID=event.getValue('siteID')).getKidsIterator()> | |
| <cfset it.setNextN(5)> | |
| <script type="text/javascript"> | |
| $("##slideshow").backstretch([ | |
| <cfloop condition="it.hasNext()"> | |
| <cfset sub1=it.next()> | |
| <cfif ! it.currentrow() IS 1> | |
| , | |
| </cfif> | |
| "http://#$.siteConfig('domain')##sub1.getImageURL(size = 'custom', width = 860, height = 395)#" | |
| </cfloop> | |
| ], {duration: 3000, fade: 750}); | |
| </script> | |
| </cfoutput> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id="slideshow" style="width: 860px; height: 395px;"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!--- Backstretch JS ---> | |
| <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-backstretch/2.0.4/jquery.backstretch.min.js"></script> | |
| <cfinclude template="backstretch_gallery.cfm"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment