Code: Select all
<__script__ type="text/javascript" src="uploads/BizBuzz/functions.js"></__script>
Code: Select all
<__script__ type="text/javascript" src="uploads/BizBuzz/functions.js"></__script>
Code: Select all
{content block="Display Three Blocks in Content" oneline="true" size="1" default="-" assign="contentblocks"}
{if empty($contentblocks)}{assign var="contentblocks" value="+"}{/if}
{* Showing the Header Sliders *}
{capture assign='cfirst'}{content block='First Teaser Title Attribute' wysiwyg="false" oneline="true"}{/capture}
{capture assign='tfirst'}{content_image block='First Teaser' dir='BizBuzz/teaser' urlonly='true'}{/capture}
{capture assign='csecond'}{content block='Second Teaser Title Attribute' wysiwyg="false" oneline="true"}{/capture}
{capture assign='tsecond'}{content_image block='Second Teaser' dir='BizBuzz/teaser' urlonly='true'}{/capture}
{capture assign='cthird'}{content block='Third Teaser Title Attribute' wysiwyg="false" oneline="true"}{/capture}
{capture assign='tthird'}{content_image block='Third Teaser' dir='BizBuzz/teaser' urlonly='true'}{/capture}
Code: Select all
// Superfish Menu
$(document).ready(function() {
$('ul.sf-menu').superfish({
delay: 1000,
animation: {opacity:'show',height:'show'},
speed: 'fast',
autoArrows: false,
dropShadows: true
});
});
// erstes Wort im Titel orange
$(document).ready(function()
{$("#contentTitle").html(function(i,text){
return text.replace(/\w+\s/, function(match){
return '<span class="brown">' + match + '</span>';
});
});
});
// headerTeaser - Nivo Slider
$(document).ready(function() {
$('#slider').nivoSlider();
} );
// News Cycle Scroller
$(document).ready(function() {
$('.newsCycle')
.after('<div class="newsControl">')
.cycle({
fx: 'scrollLeft',
timeout: 6000,
pager: '.newsControl',
pause: 1,
delay: -3500
});
});
/*
Sitemap Styler v0.1
written by Alen Grakalic, provided by Css Globe (cssglobe.com)
visit http://cssglobe.com/lab/sitemap_styler/
*/
this.sitemapstyler = function(){
var sitemap = document.getElementById("sitemap")
if(sitemap){
this.listItem = function(li){
if(li.getElementsByTagName("ul").length > 0){
var ul = li.getElementsByTagName("ul")[0];
ul.style.display = "";
var span = document.createElement("span");
span.className = "expanded";
span.onclick = function(){
ul.style.display = (ul.style.display == "none") ? "block" : "none";
this.className = (ul.style.display == "none") ? "collapsed" : "expanded";
};
li.appendChild(span);
};
};
var items = sitemap.getElementsByTagName("li");
for(var i=0;i<items.length;i++){
listItem(items[i]);
};
};
};
window.onload = sitemapstyler;
/*
* Tooltip script
* powered by jQuery (http://www.jquery.com)
*
* written by Alen Grakalic (http://cssglobe.com)
*
* for more info visit http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery
*
*/
this.tooltip = function(){
/* CONFIG */
xOffset = 10;
yOffset = 20;
// these 2 variable determine popup's distance from the cursor
// you might want to adjust to get the right result
/* END CONFIG */
$(".tooltip").hover(function(e){
this.t = this.title;
this.title = "";
$("body").append("<p id='tooltip'>"+ this.t +"</p>");
$("#tooltip")
.css("top",(e.pageY - xOffset) + "px")
.css("left",(e.pageX + yOffset) + "px")
.fadeIn("fast");
},
function(){
this.title = this.t;
$("#tooltip").remove();
});
$(".tooltip").mousemove(function(e){
$("#tooltip")
.css("top",(e.pageY - xOffset) + "px")
.css("left",(e.pageX + yOffset) + "px");
});
};
// starting the script on page load
$(document).ready(function(){
tooltip();
});
// Slide to with jquery
function goToByScroll(id){
$('html,body').animate({scrollTop: $("#"+id).offset().top},'slow');
}
// Scroll to Top
/*
|--------------------------------------------------------------------------
| UItoTop jQuery Plugin 1.1
| http://www.mattvarone.com/web-design/uitotop-jquery-plugin/
|--------------------------------------------------------------------------
*/
(function($){
$.fn.UItoTop = function(options) {
var defaults = {
text: 'To Top',
min: 200,
inDelay:600,
outDelay:400,
containerID: 'toTop',
containerHoverID: 'toTopHover',
scrollSpeed: 1200,
easingType: 'linear'
};
var settings = $.extend(defaults, options);
var containerIDhash = '#' + settings.containerID;
var containerHoverIDHash = '#'+settings.containerHoverID;
$('body').append('<a href="#" id="'+settings.containerID+'">'+settings.text+'</a>');
$(containerIDhash).hide().click(function(){
$('html, body').animate({scrollTop:0}, settings.scrollSpeed, settings.easingType);
$('#'+settings.containerHoverID, this).stop().animate({'opacity': 0 }, settings.inDelay, settings.easingType);
return false;
})
.prepend('<span id="'+settings.containerHoverID+'"></span>')
.hover(function() {
$(containerHoverIDHash, this).stop().animate({
'opacity': 1
}, 600, 'linear');
}, function() {
$(containerHoverIDHash, this).stop().animate({
'opacity': 0
}, 700, 'linear');
});
$(window).scroll(function() {
var sd = $(window).scrollTop();
if(typeof document.body.style.maxHeight === "undefined") {
$(containerIDhash).css({
'position': 'absolute',
'top': $(window).scrollTop() + $(window).height() - 50
});
}
if ( sd > settings.min )
$(containerIDhash).fadeIn(settings.inDelay);
else
$(containerIDhash).fadeOut(settings.Outdelay);
});
};
})(jQuery);
$(document).ready(function() {
/*
var defaults = {
containerID: 'moccaUItoTop', // fading element id
containerHoverClass: 'moccaUIhover', // fading element hover class
scrollSpeed: 1200,
easingType: 'linear'
};
*/
$().UItoTop({ easingType: 'easeOutQuart' });
});
DCX wrote: uniqu3 - I found the right functions.js file. I was trying to edit the wrong one inside the js/ folder. I still cannot seem to change the settings though? What I want to do is change the effect to "scroll right" and change the speed or delay. I am also looking at Nivo Slider website. I know you don't support their work but if anyone knows where I can do this I appreciate it.
This is my functions.js file I am playing with. var defaults near bottom have no effectCode: Select all
// Superfish Menu $(document).ready(function() { $('ul.sf-menu').superfish({ delay: 1000, animation: {opacity:'show',height:'show'}, speed: 'fast', autoArrows: false, dropShadows: true }); }); // erstes Wort im Titel orange $(document).ready(function() {$("#contentTitle").html(function(i,text){ return text.replace(/\w+\s/, function(match){ return '<span class="brown">' + match + '</span>'; }); }); }); // headerTeaser - Nivo Slider $(document).ready(function() { $('#slider').nivoSlider(); } ); // News Cycle Scroller $(document).ready(function() { $('.newsCycle') .after('<div class="newsControl">') .cycle({ fx: 'scrollLeft', timeout: 6000, pager: '.newsControl', pause: 1, delay: -3500 }); }); /* Sitemap Styler v0.1 written by Alen Grakalic, provided by Css Globe (cssglobe.com) visit http://cssglobe.com/lab/sitemap_styler/ */ this.sitemapstyler = function(){ var sitemap = document.getElementById("sitemap") if(sitemap){ this.listItem = function(li){ if(li.getElementsByTagName("ul").length > 0){ var ul = li.getElementsByTagName("ul")[0]; ul.style.display = ""; var span = document.createElement("span"); span.className = "expanded"; span.onclick = function(){ ul.style.display = (ul.style.display == "none") ? "block" : "none"; this.className = (ul.style.display == "none") ? "collapsed" : "expanded"; }; li.appendChild(span); }; }; var items = sitemap.getElementsByTagName("li"); for(var i=0;i<items.length;i++){ listItem(items[i]); }; }; }; window.onload = sitemapstyler; /* * Tooltip script * powered by jQuery (http://www.jquery.com) * * written by Alen Grakalic (http://cssglobe.com) * * for more info visit http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery * */ this.tooltip = function(){ /* CONFIG */ xOffset = 10; yOffset = 20; // these 2 variable determine popup's distance from the cursor // you might want to adjust to get the right result /* END CONFIG */ $(".tooltip").hover(function(e){ this.t = this.title; this.title = ""; $("body").append("<p id='tooltip'>"+ this.t +"</p>"); $("#tooltip") .css("top",(e.pageY - xOffset) + "px") .css("left",(e.pageX + yOffset) + "px") .fadeIn("fast"); }, function(){ this.title = this.t; $("#tooltip").remove(); }); $(".tooltip").mousemove(function(e){ $("#tooltip") .css("top",(e.pageY - xOffset) + "px") .css("left",(e.pageX + yOffset) + "px"); }); }; // starting the script on page load $(document).ready(function(){ tooltip(); }); // Slide to with jquery function goToByScroll(id){ $('html,body').animate({scrollTop: $("#"+id).offset().top},'slow'); } // Scroll to Top /* |-------------------------------------------------------------------------- | UItoTop jQuery Plugin 1.1 | http://www.mattvarone.com/web-design/uitotop-jquery-plugin/ |-------------------------------------------------------------------------- */ (function($){ $.fn.UItoTop = function(options) { var defaults = { text: 'To Top', min: 200, inDelay:600, outDelay:400, containerID: 'toTop', containerHoverID: 'toTopHover', scrollSpeed: 1200, easingType: 'linear' }; var settings = $.extend(defaults, options); var containerIDhash = '#' + settings.containerID; var containerHoverIDHash = '#'+settings.containerHoverID; $('body').append('<a href="#" id="'+settings.containerID+'">'+settings.text+'</a>'); $(containerIDhash).hide().click(function(){ $('html, body').animate({scrollTop:0}, settings.scrollSpeed, settings.easingType); $('#'+settings.containerHoverID, this).stop().animate({'opacity': 0 }, settings.inDelay, settings.easingType); return false; }) .prepend('<span id="'+settings.containerHoverID+'"></span>') .hover(function() { $(containerHoverIDHash, this).stop().animate({ 'opacity': 1 }, 600, 'linear'); }, function() { $(containerHoverIDHash, this).stop().animate({ 'opacity': 0 }, 700, 'linear'); }); $(window).scroll(function() { var sd = $(window).scrollTop(); if(typeof document.body.style.maxHeight === "undefined") { $(containerIDhash).css({ 'position': 'absolute', 'top': $(window).scrollTop() + $(window).height() - 50 }); } if ( sd > settings.min ) $(containerIDhash).fadeIn(settings.inDelay); else $(containerIDhash).fadeOut(settings.Outdelay); }); }; })(jQuery); $(document).ready(function() { /* var defaults = { containerID: 'moccaUItoTop', // fading element id containerHoverClass: 'moccaUIhover', // fading element hover class scrollSpeed: 1200, easingType: 'linear' }; */ $().UItoTop({ easingType: 'easeOutQuart' }); });
I didn't see anything in the documentation about changing the slide direction but you can change the effect.// headerTeaser - Nivo Slider
$(document).ready(function() {
$('#slider').nivoSlider({
animSpeed:500,
pauseTime:3000
});
});
effect:'random', //Specify sets like: 'fold,fade,sliceDown'
Try the effect fade and see if the effect has changed after it, delete functions.js and upload it again after changes weremade, maybe it didn't get overwritten.// headerTeaser - Nivo Slider
$(document).ready(function() {
$('#slider').nivoSlider({
animSpeed:500,
pauseTime:3000,
effect:'fade'
});
});
Another thing you could try is adding display:block to #slider in the stylesheet.
{if ($cfirst)&&($tfirst)}
{elseif ($tfirst)}{/if}
{if ($csecond)&&($tsecond)}
{elseif ($tsecond)}{/if}
{if ($cthird)&&($tthird)}
{elseif ($tthird)}{/if}
#slider {
position: relative;
background: url('uploads/BizBuzz/images/loading.gif') no-repeat 50% 50% #202834;
z-index: 1
display:block;
}
{literal}
.sf-menu li a:hover, .sf-menu li a:active, .sf-menu li a.current {
height:28px;
line-height: 28px;
padding:0 5px;
border: none;
}
{/literal}