Jquery / Mootools non compatible ?

Résolu
dreadstock Messages postés 114 Date d'inscription mardi 31 janvier 2006 Statut Membre Dernière intervention 17 avril 2023 - 7 avril 2009 à 13:31
cs_Girou Messages postés 1203 Date d'inscription lundi 10 mars 2003 Statut Membre Dernière intervention 23 juillet 2009 - 7 avril 2009 à 15:08
Bonjour à tous ,
Je suis en train de créer un site web pour mon frangin.
Je souhaite intégrer 2 bibliothèques jquery et mootools plus particulierement mooflow.
Mais mon problème c'est que je n'arrive pas a faire fonctionner les 2 ensemble. J'ai tout essayé mais impossible.
Mon niveau en Javascript est pas top du tout, je me sert des scripts que je trouve un peu partout pour avancer.

J'ai trouver un petit script noconflit pour rendre compatible les 2 . Mais je ne sais pas et n'arrive pas a le faire fonctionner


Voila j'ai essayé de modifier les $() en les remplaçants par $j(). Mais quenini !!


Alors voila je suis coincé .


voici mon code mais je ne sais pas quoi modifier pour que cela marche .
Merci pour votre aide qui me sera très précieuse car la je coince :
voir site web www.nsink.fr/projets.html

ou bien avec le code ci-dessous    merci merci merci pour votre aide

<title>Arch-FS Architecte Marseille</title>

<link href="css/bases_projets.css" rel="stylesheet" type="text/css" />

<link rel="stylesheet" type="text/css" href="css/cssMooFlow/MooFlow.css" />

<link rel="stylesheet" type="text/css" href="css/cssMooFlow/milkbox.css" />

<link rel="stylesheet" type="text/css" href="css/cssMooFlow/MooFlowViewer.css" />

<style type="text/css">

pre { display:none }

#right { cursor: pointer }

</style>

<script type="text/javascript" src="js/jsMooFlow/mootools-1.2-core.js"></script>

<script type="text/javascript" src="js/jsMooFlow/mootools-1.2-more.js"></script>

<script type="text/javascript" src="js/jsMooFlow/MooFlow.js"></script>

<script type="text/javascript" src="js/jsMooFlow/milkbox.js"></script>

<script type="text/javascript" src="js/jsMooFlow/MooFlowViewer.js"></script>

<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>

<script type="text/javascript">
var myMooFlowPage { start: function(){ /* MooFlow instance with the Milkbox Viewer */ var mf new MooFlow($('MooFlow'), { useSlider: true, useCaption: true, useMouseWheel: true, useKeyInput: true, useViewer: true, onClickView: function(obj){ Milkbox.showThisImage(obj.href, obj.title + ' - ' + obj.alt); } }); } }; window.addEvent('domready', myMooFlowPage.start);

</script>

<script type="text/javascript" src="js/jquery-1.3.js"></script>

<script type="text/javascript" src="js/jquery.cycle.all69d6.js?v2.56"></script>

<script type="text/javascript" src="js/jquery.easing.1.1.1.js"></script>

<script type="text/javascript">

$.fn.cycle.defaults.speed = 900;

$.fn.cycle.defaults.timeout = 6000;

$(function() {

// run the code in the markup!

$('#ink pre code').each(function() {

eval($(this).text());

});

});

;

</script>

</head>





2008 - 2009

Hinc ille come 2008




$('#right').cycle({

fx:      'scrollRight',

next:   '#right',

timeout:  0,

easing:  'backinout'

});





<li>[# AGENCE]</li>

<li>[# PROJETS]</li>

<li>[# DESIGN]</li>

<li>[# CONTACT]</li>




[index.html ] [index.html ] [index.html ] [index.html ] [index.html ] [index.html ] [index.html ] [index.html ] [index.html ] [index.html ][index.html ]



</html>

je vous serais très reconnaissant

1 réponse

cs_Girou Messages postés 1203 Date d'inscription lundi 10 mars 2003 Statut Membre Dernière intervention 23 juillet 2009 2
7 avril 2009 à 15:08
Bonjour,

sincèrement, je pense que tu ferais mieux de t'adresser au forum javascriptde codes-sources plutôt qu'au forum Flash qui lui traite... de Flash et actionscript.

@+
3
Rejoignez-nous