0

私はプログラミング初心者です。 サイトの組み込みスライダー Jquery が、外部で追加した別のスライダー Jquery と干渉しています。単体ではうまく動作しますが、組み合わせると内蔵の fp-slider は機能しませんが、外部スライダーは問題なく動作し続けます。検索した結果、外部スライダーの一部の機能を編集することで修正できるように感じます。

*これが私の外部プラグインの関数です*

<script src="http://,,,/jquery-latest.js"></script>  
<script src="http://,,,,/js/plusone.js"  type="text/javascript"></script>  
<script type="text/javascript">  

jQuery(document).ready(function ()  {
jQuery("#facebook_right").hover(function ()
{jQuery(this).stop(true,false).animate({right: 0}, 500); }, 
function (){
jQuery("#facebook_right").stop(true,false).animate({right: -239},500);});    


jQuery("#twitter_right").hover(function (){
jQuery(this).stop(true,false).animate({right: 0},500);},function (){
jQuery("#twitter_right").stop(true,false).animate({right: -254},500);});

jQuery("#google_plus_right").hover(function(){
jQuery(this).stop(true,false).animate({right: 0},500);},function()
{jQuery("#google_plus_right").stop(true,false).animate({right: -294},500);});   


jQuery("#feedburner_right").hover(function(){
jQuery(this).stop(true,false).animate({right: 0}, 500);},function() 
{jQuery("#feedburner_right").stop(true,false).animate({right: -304 }, 500);});    



jQuery("#youtube_right").hover(function(){
jQuery(this).stop(true,false).animate({right: 0},500);},function(){
jQuery("#youtube_right").stop(true,false).animate({right:-304},500);});});  
</script>
4

1 に答える 1