MyBB Community Forums

Full Version: need help with jquery noconflict
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi guys
i need to use jquery noconflict for my codes but idon know how to do it
please help
here is my code

<script type="text/javascript" src="jscripts/jquery-1.4.3.min.js"></script>
<script src="toolbar/js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
<script type='text/javascript'> 

  $(function() {
  $('#floatingbar').css({height: 0}).animate({ height: '38' }, 'slow');
  $('.toolbarLink').tipsy({gravity: 's'});
  });
</script>
<div id='content'> 
</div>
<div id='floatingbar'> 
                 <ul class="gallery clearfix">
Some li(s) here
			
		</ul>
</div> 
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$(".gallery a[rel^='prettyPhoto']").prettyPhoto({theme:'facebook'});
});
</script>
You are in luck, I was just adding some jq to my own them :p
<script type="text/javascript" src="jscripts/jquery-1.4.3.min.js"></script>
<script src="toolbar/js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
<script type='text/javascript'> 
jQuery.noConflict();
jQuery(document).ready(function($) {
  $('#floatingbar').css({height: 0}).animate({ height: '38' }, 'slow');
  $('.toolbarLink').tipsy({gravity: 's'});
  });
</script>
<div id='content'> 
</div>
<div id='floatingbar'> 
                 <ul class="gallery clearfix">
Some li(s) here
			
		</ul>
</div> 
<script type="text/javascript" charset="utf-8">
jQuery.noConflict();
jQuery(document).ready(function($) {
$(".gallery a[rel^='prettyPhoto']").prettyPhoto({theme:'facebook'});
});
</script>

Hope I did it right.
OMG
Thank You SO Much
Worked Great
i really appreciate this
thanks