JQuery :: Clash With Fancybox And Infinite Carousel Plugins
Oct 28, 2011
I find that either of these plugins work in isolation but together they are clashing. The first to be specified in my initialisation code works, the following doesn't. Initialisation code looks like this:
// remap jQuery to $
// jQuery.noConflict();
(function($){
// Infinite Carousel
$('#carousel').infiniteCarousel({
'transitionSpeed' : 2000,
'displayTime' : 10000,
'textholderHeight' : .25,
'displayProgressBar' : 0
});
// Lightbox
$("a.lightbox").fancybox({
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'speedIn' : 600,
'speedOut' : 200,
'overlayShow' : true,
'titleShow' : false
});
})(this.jQuery);
Web pages:
Carousel working: [URL]
Fancybox not working: [URL]
View 8 Replies
ADVERTISEMENT
Feb 16, 2010
following a tutorial, i've done this jquery infinite carousel
[URL]
Carousel start scrolling only when u click on the left or on the right side of it.
How can I make the carousel to scroll automatically when page loads?
View 3 Replies
View Related
Sep 18, 2009
I've got an infinite jQuery carousel, which is working, however I need to make a couple of tweaks and I don't know where to start. Below is the code for a visually simplified, but technically identical version:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL]">
<html xmlns="[URL]">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Page Title</title>
<script src="[URL]" type="text/javascript"></script>
<script type="text/javascript">
$.fn.infiniteCarousel = function () {
function repeat(str, num) {
return new Array( num + 1 ).join( str );
} .....
Basically, I'm trying to achieve two things:
1. The script creates empty carousel items; these are visible in yellow when you scroll through the items by clicking on the blue squares. How can I remove these so that item '6' goes straight back to item '1', without the two empty list items in between?
2. At the moment two clicks allow you to see all 6 'real' squares, plus the two empty yellow ones. How can I make it so that it scrolls one list item at a time, rather than 4 at present?
View 3 Replies
View Related
Jun 8, 2010
I want the next and previous buttons on my carousel to work when I hover over them.
The way it works now is that the function only fires once each time I hover over one of the buttons.
View 1 Replies
View Related
Oct 17, 2010
I've been working on a freelance design site, and I have been using jshowoff and fancybox on my portfolio page. The portfolio has multiple sections that are set to be scrolled through using jshowoff by using the slide links. This use of jshowoff is working perfectly fine, but fancybox isn't. fancybox is supposed to be set to launch a modal when any of the portfolio thumbnail images are clicked. As it is right now, fancybox links will not work within the jshowoff slide div, but they do work outside of the jshowoff slide div.
I have done about 5 hours of searching online for possible fixed to my issue, and I haven't found anything. I am attempting to fix the conflict the between jshowoff and fancybox. I am very new to using jQuery plugins, so hopefully, you can all bear with me.If anyone may know how I can fix my fancybox links, so that fancybox will work within my jshowoff slide, I'd greatly appreciate it. I have provided the html below:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
[code]....
View 2 Replies
View Related
May 12, 2010
I have created a new theme for Rapidweaver and integrated some neat JQuery animated sliding panels and frankly I was feeling pretty chuffed with my efforts as I am far from a JQuery expert.[URL]..In the side panel on the left, I have embedded a Titter feed widget, lifting the code direct from Twitter. In Safari, Chrome, Opera and even jolly old IE this works fine. But Firefox has a fit and displays a blank page - or just plain won't load. If I remove the Twitter widget the page loads perfectly happily. If I disable Javascript in FF, the page loads (but there is no animation etc) - so there is clearly a JQ/Javascript/Twitter script issue going on here that is causing FF to freak out...
Of course the simple solution is not to add the Twitter feed, but since this is exactly one of the uses I was planning for this sliding panel, that's a fat 'non' option. All the JQuery code I have used for the theme has 'no conflict' calls and I have even added specific calls for specific code - so stuff like:
[Code]...
View 1 Replies
View Related
May 18, 2011
When I write this 2 scripts togeder only one of them works. What do I need to do to make them both work togeder?
[Code]...
View 1 Replies
View Related
Jan 22, 2006
I've got 2 questions if that's OK. I have a number of scripts running on a site i'm working on and I think I may be getting a clash with the image preload and another font resizing script. As I am new to javascript I have picked up the code from elsewehere. I am trying to get my head around it reading tutorials etc but am getting stuck when it comes to multiple scripts on the page
There are a number of scripts running: browser detect, png opacity, image preload, layer show/hide and a font resize.
here is the site
Q1 In IE5.5+ on the PC neither the font sizer nor the image preload is working - i think it is a clash of onload events. Can anyone suggest a fix?
Q2 I think there must be a better way to have my images preload. The current code is the dreamweaver version. Is there a better way?
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
onload = function()
{
MM_preloadImages(
'../images/icons/iconO_01.gif',
'../images/icons/iconO_02.gif',
'../images/icons/iconO_03.gif',
'../images/icons/iconO_04.gif',
'../images/menu/menuDown_01.gif',
'../images/menu/menuDown_02.gif',
'../images/menu/menuDown_03.gif',
'../images/menu/menuDown_04.gif',
'../images/menu/menuDown_05.gif',
'../images/menu/menuDown_06.gif',
'../images/menudrop/coD_01.gif',
'../images/menudrop/coD_02.gif',
'../images/menudrop/coD_03.gif',
'../images/menudrop/coD_04.gif',
'../images/menudrop/coD_05.gif',
'../images/menudrop/prD_01.gif',
'../images/menudrop/prD_02.gif',
'../images/menudrop/prD_03.gif',
'../images/menudrop/seD_01.gif',
'../images/menudrop/seD_02.gif',
'../images/menudrop/seD_03.gif',
'../images/menudrop/seD_04.gif',
'../images/menudrop/seD_05.gif',
'../images/menudrop/seD_06.gif',
'../images/menudrop/soD_01.gif',
'../images/menudrop/soD_02.gif',
'../images/menudrop/soD_03.gif',
'../images/menudrop/soD_04.gif',
'../images/menudrop/paD_01.gif',
'../images/menudrop/paD_02.gif',
'../images/menudrop/paD_03.gif',
'../images/menudrop/neD_01.gif',
'../images/menudrop/neD_02.gif',
'../images/menudrop/neD_03.gif',
'../images/disc/discCD_01.gif',
'../images/disc/discCD_02.gif',
'../images/disc/discCD_03.gif'
);
}
View 5 Replies
View Related
Jan 17, 2011
You can see that when selecting 'Contact' from the top navigation a light-box (fancybox) with a contact form opens, this form can be filled and when the submit button is pressed the content of the form is emailed to myself. However.... The 'Thank you message' is not appearing in the light-box as I would like it to and I cannot work out how to do this.
View 2 Replies
View Related
Dec 5, 2011
I want to create an web page with infinite x and y.
In web page user can add widgets , once widget added they can place it anywhere on the page , and when next time they login again we have to reposition every widget exactly what they originally had.
Like this one .[URL]
View 2 Replies
View Related
Aug 30, 2011
I'm starting with jQuery and all I want is like jCarousel, but I want that when mouse is over image, the entire carousel freezes (until mouse over). So, my first idea is to create something like this:
<div class="photo" style="width: 256px; background-color: #8d99a2;" align="center">
<img class="photo_img" id="photo1" src="fotos/lookbook1.jpg"></div>
<div class="photo" style="width: 256px; background-color: #8d99a2;" align="center">
<img class="photo_img" id="photo2" src="fotos/lookbook/2.jpg"></div>
<div class="photo" style="width: 256px; background-color: #8d99a2;" align="center">
<img class="photo_img" id="photo3" src="fotos/lookbook/3.jpg"></div>
And Then, jQuery like this:
$(".photo").animate({
"right": "+=9999999999"
},{
duration: 200000000000,
easing: 'linear'
});
$(document).ready(function (){
$('.photo_img').mouseover(function(){
$('.photo').stop();
});});
The logic is that:
-> a list of images that go to right eternally, (like jCarousel in infinite mode), but when mouse is over, everything stops. (JCarousel waits until the "next()" function is complete), and when mouse is out, everything moves starting from the point that paused.
View 1 Replies
View Related
Nov 4, 2011
I want to implement infinite scrolling in DataTables and data will be added to the table dynamically on table scroll. Initially all data are loaded in DataTables and display a sub-set of the data and when I start scroll in table its display normally. I am using normal SQL query to load all data available in my database table. How we write SQL query to get sub-set of data on scroll event and added in DataTables dynamically. I am using ASP.net (C#).
View 1 Replies
View Related
Apr 26, 2010
The following sentence makes jQuery hang up: $(":( We'll this activated :D").text()
View 4 Replies
View Related
Jun 7, 2009
I'm trying to create an endless animation similar to a screen saver, here an image floats around the screen, fading in and out. I would like to stay out of the global namespace, so I'd like to use the callback to animate() rather than getTimeout(), which seems to operate only on functions in the global namespace. Please correct me if I'm wrong about that. But I'm having trouble maintaining the scope I want for the callback I want "this" to refer to my Animation object, not the HTML element. I understand many folks have solved this problem for events by using bind() or live(), but I am wondering how to do this for animate().
[Code]...
View 8 Replies
View Related
Jun 2, 2009
I have some problems about using jcarousel library on Google Map, and following is my scenario: there is a Marker on the Map, and when clicking on the Marker,Info-Window will pop up, and jcarousel content will be in the Info- Window And This is a simple demo:
[Code]...
View 1 Replies
View Related
Oct 17, 2011
I have a gallery on my site here:
[URL]
add a caption to the bottom of the images when they are clicked on and perhaps even a link?
View 2 Replies
View Related
Oct 4, 2010
My website [URL] works well in Firefox and Safari. But some of the JQuery function doesn't work in IE, e.g., Fancybox.
View 1 Replies
View Related
Dec 1, 2011
I've managed to open the login form in fancybox. When visitors login, the page opens in the i-frame itself. When they hit the close button of the fancy box, the parent page refreshes.Almost there but I would like to close the popup and refresh the parent page at one go with a proper function when a visitor hits the submit button
View 1 Replies
View Related
May 23, 2011
I use the fancybox plugin. I need the plugin with two setups (CSS and plugin itself changed a little) so I duplicated the script and made my changes to it. Now I want to use both script in the same page. Of course there is a conflict with function name, which is why I want to rename the function name of the one script to .fancybox2. But I can't seem to get it to work. I don't know which parts of the fancybox.js file I have to change. There are so many fn.fancybox's. I tried to change them all but it's not working. Any advise how this has to be done?
View 1 Replies
View Related
Nov 26, 2010
So I have a script that retrieves images from Flickr and displays them on my site. I have Fancybox so that when a user clicks on the image, the picture will come up in a... "fancy box"... everything seems correct, but when I click on the image, it sends the user to the location of the picture on Flickr servers instead of opening it using Fancybox.
Here is the code for the Flickr retrieving...
<script type="text/javascript">
var FLICKR_ID = '41313008@N08';
var THUMBNAIL_HTML = '<a id="single" href="%IMAGE_URL%" title="%IMAGE_TITLE%"><img alt="%IMAGE_TITLE%" src="%THUMBNAIL_URL%" /></a>';
function displayImages(data){
var htmlString = "";
$.each(data.items, function(i,item){
var thumbnail = (item.media.m).replace("_m.jpg", "_s.jpg");
var large = (item.media.m).replace("_m.jpg", ".jpg");
htmlString += THUMBNAIL_HTML;
htmlString = htmlString.replace(/%IMAGE_TITLE%/g, item.title);
htmlString = htmlString.replace(/%IMAGE_URL%/g, large);
htmlString = htmlString.replace(/%THUMBNAIL_URL%/g, thumbnail);
});
$('#gallery').html(htmlString);
}
$.getJSON("[URL]", displayImages);
</script>
<a id="single" is the id that goes to open the image in Fancybox. When I disable this Flickr script, and input an image manually, it works 100%.
View 3 Replies
View Related
May 24, 2010
I'm using the most basic functionality of the Fancybox plugin. All renders fine in FF 3.5.9 & Chrome 4. Wouldn't you know it, IE 7 has a problem, it does not display the close box and doesn't honor the location of the title. You can see the problem here: [URL]
Click the Players tab and then click any thumbnail.
View 2 Replies
View Related
Mar 20, 2011
I have this simple gallery that loads images from an xml file and usesFancyboxto display the images. Demo Everything is working but the last image is not working with fancybox. The last image just displays in it's own window.
[Code]...
View 10 Replies
View Related
Nov 3, 2011
Somehow I can't get this to work on that page: [URL]...
View 2 Replies
View Related
Feb 18, 2010
I have the following problem: In wordpress I wanted to popup the login-page (wp-login.php) and i used the fancybox to generate an iframe. after clicking the "login" button i want that the fancybox is closing (thats not the problem) and i want to reload the whole page so that it recognizes that i'm logged in.
Now that is the problem .. I cant reload the index page when clicking the login button, because (i think so) the login document is in a iframe and is not able to reload the whole screen). I don't know the "reload" command, too, maybe load("index.php"); ? :D
View 2 Replies
View Related
Jun 10, 2011
I did a search of the forums, and this was the only thing I could come up that seems similar: [URL]. The last post in this thread tells me what I already know from my other research today - this function doesn't work in FF, Safari, etc.
Here's my code:
Code:
<script type='text/javascript'> window.onload = function()
{ setTimeout(function()
{ document.getElementById('popupLink').click();
}, $timeleft); }; </script>
Works great in IE, but nothing else. I'm using a jQuery gallery tool called fancybox, and from what I can gather, the popup of the gallery must be tied to a click on an anchor link.
On their support forums, one of their admins suggested that I use the following:
Code:
<script type='javascript'>setTimeout( function() {$
('#popupLink').trigger('click'); }, $timeleft);</script>
Still doesn't work (not even in IE). BTW, $timeleft is a var that is being created in PHP. I've checked the source code and it is counting down correctly.
View 3 Replies
View Related
Sep 27, 2011
I'm planning on making a website which is mainly just a gallery of images.
The site will essentially look like one page with a jCarousel on it, when the user clicks left or right on the carousel, I would like the URL to change but for the animation not to get interupted.
I would also need to change some HTML on the page too, essentially each image will have a Facebook 'like' button and that will need to change to the corresponding URL.
The carousel is going to be database driven and dynamically built up with potentially 1000's of images, so I'm not sure what the best technique for this would be? I'm building it in ASP.NET / Ajax and using the SlideJS carousel [code]...
View 1 Replies
View Related