felipesagan Postado Agosto 8, 2014 Denunciar Share Postado Agosto 8, 2014 Olá vi esse código de um rapaz que resolveu conflitos de versões diferentes de bibliotecas Jquery: <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js'></script> <script src="js/jquery.localscroll-min.js" type="text/javascript"></script> <script src="js/jquery.scrollTo-min.js" type="text/javascript"></script> <script type="text/javascript"> var xyz = jQuery.noConflict(); xyz(document).ready(function () { xyz.localScroll.defaults.axis = 'x'; xyz.localScroll(); }); </script> <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script> <script src="js/jquery.mousewheel.min.js"></script> <script> $(document).ready(function() { $('html, body, *').mousewheel(function(e, delta) { this.scrollLeft -= (delta * 3); e.preventDefault(); }); }); </script> Sou leigo,tentei fazer igual e não consegui,se alguém conseguir rearranjar o seguinte código para que não haja conflitos eu agradeço: <script type="text/javascript"> //<![CDATA[ try{if (!window.CloudFlare) {var CloudFlare=[{verbose:0,p:0,byc:0,owlid:"cf",bag2:1,mirage2:0,oracle:0,paths:{cloudflare:"/cdn-cgi/nexp/dokv=88e434a982/"},atok:"f5fb8224532984ed0f1005b950b17009",petok:"6f643c0af7a447ada34e3ff042d88c71e22c41ba-1405698707-1800",zone:"buildinternet.com",rocket:"0",apps:{"ga_key":{"ua":"UA-6444047-1","ga_bs":"2"}}}];!function(a,b){a=document.createElement("script"),b=document.getElementsByTagName("script")[0],a.async=!0,a.src="//ajax.cloudflare.com/cdn-cgi/nexp/dokv=97fb4d042e/cloudflare.min.js",b.parentNode.insertBefore(a,b)}()}}catch(e){}; //]]> </script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script> <script type="text/javascript" src="js/jquery.1.10.2.min.js"></script> <script type="text/javascript" src="js/jquery.easing.min.js"></script> <script type="text/javascript" src="js/supersized.3.2.6.min.js"></script> <script type="text/javascript" src="theme/supersized.shutter.min.js"></script> <script type="text/javascript"> jQuery(function($){ $.supersized({ // Functionality slideshow : 1, // Slideshow on/off autoplay : 1, // Slideshow starts playing automatically start_slide : 1, // Start slide (0 is random) stop_loop : 0, // Pauses slideshow on last slide random : 0, // Randomize slide order (Ignores start slide) slide_interval : 2400, // Length between transitions transition : 1, // 0-None, 1-Fade, 2-Slide Top, 3-Slide Right, 4-Slide Bottom, 5-Slide Left, 6-Carousel Right, 7-Carousel Left transition_speed : 600, // Speed of transition new_window : 1, // Image links open in new window/tab pause_hover : 0, // Pause slideshow on hover keyboard_nav : 1, // Keyboard navigation on/off performance : 1, // 0-Normal, 1-Hybrid speed/quality, 2-Optimizes image quality, 3-Optimizes transition speed // (Only works for Firefox/IE, not Webkit) image_protect : 1, // Disables image dragging and right click with Javascript // Size & Position min_width : 0, // Min width allowed (in pixels) min_height : 0, // Min height allowed (in pixels) vertical_center : 1, // Vertically center background horizontal_center : 1, // Horizontally center background fit_always : 0, // Image will never exceed browser width or height (Ignores min. dimensions) fit_portrait : 1, // Portrait images will not exceed browser height fit_landscape : 0, // Landscape images will not exceed browser width // Components slide_links : 'blank', // Individual links for each slide (Options: false, 'number', 'name', 'blank') thumb_links : 1, // Individual thumb links for each slide thumbnail_navigation : 0, // Thumbnail navigation slides : [ // Slideshow Images {image : src="img/1.jpg", thumb : src="img/m1.jpg"}, {image : src="img/2.jpg", thumb : src="img/m2.jpg"}, {image : src="img/3.jpg", thumb : src="img/m3.jpg"}, {image : src="img/4.jpg", thumb : src="img/m4.jpg"}, {image : src="img/5.jpg", thumb : src="img/m5.jpg"}, {image : src="img/6.jpg",thumb : src="img/m6.jpg"}, {image : src="img/7.jpg",thumb : src="img/m7.jpg"}, {image : 'http://buildinternet.s3.amazonaws.com/projects/supersized/3.2/slides/shaden-2.jpg',thumb : 'http://buildinternet.s3.amazonaws.com/projects/supersized/3.2/thumbs/shaden-2.jpg', url : 'http://www.nonsensesociety.com/2011/06/brooke-shaden/'}, {image : 'http://buildinternet.s3.amazonaws.com/projects/supersized/3.2/slides/shaden-3.jpg', thumb : 'http://buildinternet.s3.amazonaws.com/projects/supersized/3.2/thumbs/shaden-3.jpg', url : 'http://www.nonsensesociety.com/2011/06/brooke-shaden/'} ], // Theme Options progress_bar : 1, // Timer for each slide mouse_scrub : 0 }); }); </script> </head> <body style="background-image: url(images/pattern.png), url(images/5.jpg);"> <script type="text/javascript" src="js/mousestop.js"></script> <script type="text/javascript"> $(window) .mousestop(function() { document.getElementById('supersized').style.zIndex=100000; }) .mousemove(function() {document.getElementById('supersized').style.zIndex=-999; }) .mouseout(function() { document.getElementById('supersized').style.zIndex=100000; }); $(window).mousestop().trigger('mousestop'); </script> </body> <script type="text/javascript">/* CloudFlare analytics upgrade */ </script> </html> Deixei somente os scripts do meu codigo a versao jquery 1,10,2 esta associada a mousestop.js e a parte de $(window).mousestop..... a versão jquery 1.6.1 esta associada a jquery.easing....,supersized3.2.6...,e a supersized,shutter,.. e a $.supersized(que é a parte grande de scripts) Citar Link para o comentário Compartilhar em outros sites More sharing options...
Pergunta
felipesagan
Olá vi esse código de um rapaz que resolveu conflitos de versões diferentes de bibliotecas Jquery:
Sou leigo,tentei fazer igual e não consegui,se alguém conseguir rearranjar o seguinte código para que não haja conflitos eu agradeço:
Deixei somente os scripts do meu codigo a versao jquery 1,10,2 esta associada a mousestop.js e a parte de $(window).mousestop.....
a versão jquery 1.6.1 esta associada a jquery.easing....,supersized3.2.6...,e a supersized,shutter,..
e a $.supersized(que é a parte grande de scripts)
Link para o comentário
Compartilhar em outros sites
0 respostass a esta questão
Posts Recomendados
Participe da discussão
Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.