2013-04-30 8 views
0

문제가 있습니다. 페이지가 http://www.hmaloha.com/bionutrient.php인데 재생 버튼을 클릭하면 동영상이 fancybox iframe에서 재생되고 동영상이로드되면 로고가 맨 위에 표시됩니다. 이제 그 로고에 대한 링크를 추가해야합니다. fancybox 코드를 변경하려고했지만 행운이 없습니다. 어떤 도움이 필요합니까? 당신의 url 내 예를 들어 링크를 변경, 아래와 같은 $.fancybox() 호출 내에서Fancybox iframe 제목 링크

$(document).ready(function(){ 
      $('#malohaStory').click(function(){ 
       $.fancybox({ 
        overlayOpacity: 1, 
        overlayColor: '#bbb', 
        padding : 0, 
        autoScale : false, 
        transitionIn : 'none', 
        transitionOut : 'none', 
        titleShow : true, 
        titlePosition : 'float', // 'float', 'outside', 'inside' or 'over' 
        titleFormat : function(){ 
         return ' '; 
        }, 
        type: 'iframe', 
        href: 'http://hmaloha.com/js/flowplayer/video/index.html', 
        height: 545, 
        width: 920, 
        swf : { 
         wmode : 'transparent', 
         allowfullscreen : 'true' 
        } 
       }); 
       return false; 
      }); 


     }); 
+1

이미 정렬되어있는 것 같습니까? – JFK

답변

0

beforeLoad 방법을 포함한다 : 당신은 당신이 위의 모든 것을 유지하는 경우 (

beforeLoad: function() { 
    this.title = '<a href="http://www.example.com/link.html">' + this.title + '</a>'; 
} 

그래서 최종 코드, 나는 비록 귀하의 titleFormat 기능이 무엇을하는지 알지 못합니다.) 다음과 같이 보입니다.

$(document).ready(function(){ 
     $('#malohaStory').click(function(){ 
      $.fancybox({ 
       overlayOpacity: 1, 
       overlayColor: '#bbb', 
       padding : 0, 
       autoScale : false, 
       transitionIn : 'none', 
       transitionOut : 'none', 
       titleShow : true, 
       titlePosition : 'float', // 'float', 'outside', 'inside' or 'over' 
       titleFormat : function(){ 
        return '&nbsp;'; 
       }, 
       type: 'iframe', 
       href: 'http://hmaloha.com/js/flowplayer/video/index.html', 
       height: 545, 
       width: 920, 
       swf : { 
        wmode : 'transparent', 
        allowfullscreen : 'true' 
       } 
       beforeLoad: function() { 
        this.title = '<a href="http://www.example.com/link.html">' + this.title + '</a>'; 
       } 
      }); 
      return false; 
     }); 


    }); 
+0

'beforeLoad'는 fancybox ** v2.x ** 콜백이지만 OP는 ** v1.3.4 **를 사용하기 때문에 도움이된다고 생각하지 않습니다. v2.x의 API 옵션은 새롭고 이전 버전과 호환되지 않습니다. – JFK