var xaraSwidgets_cycleBottomradio_v8Templates = { entry: '' + '' + '', bulletimage:'{bulletimage}', main: '
' + '{entryhtml}' + '
' + '
' + '
' + '
' }; // this is the constructor for a component // it loops through each 'entry' in the array of data and compiles the entry template for it // it then applies the resulting HTML to the main template before writing the whole lot to the div on the page // it then initialises the actual jquery plugin for the div (that now contains the required HTML as a result of writing the template to it) function xaraSwidgets_cycleBottomradio_v8Constructor(divID, data) { var entryHTML = ''; // loop through each entry in the array and compile the entry template for it for(var i=0; i."+ divID +"cycle_bottomradio {background-color: #F8F8F8; margin:0px; z-index:0; width:" + cb_width +"px; height:" + cb_height + "px;} ."+ divID +"cycleBottomradio_slideshow { overflow:hidden; margin:0px; z-index:0; position:relative; margin:0; padding:0; left:0%; background:transparent; width:" + cb_width +"px; height:" + cb_height + "px;} ."+ divID +"cycleBottomradio_slideshow img { padding: 0px; background-color: #F8F8F8; position: relative; margin:0; border:1px solid #CCC; width:" + cb_width + "px;} "); // 2b. add the class to the images $('#' + divID + 'OuterDiv').find('img').addClass(divID+"cycleBottomradio_slideshow"); // 3. write the css for navigation bullets $('head').append(""); $('#' + divID + 'OuterDiv').cycle({ fx: 'all', // choose your transition type, ex: fade, scrollUp, shuffle, etc... pager: '.'+divID+'cycleBottomradio_nav' }); }