2012-07-13 2 views
0

은 내가이 상황을 기준으로 볼 수있는 유일한 방법은 jQuery를 내가 워드 프레스가 위의 방법을 가지고 믿고, 1.6에서 사실이었다, 검색 및 검색 .... 나는 워드 프레스 사이트에 jShowOff 내용 로테이터를 구축하고, 내가 각 링크에 내가 그것을 기본적으로 보여줄 것 문질러서로, 숫자 슬라이드 링크를하고 싶었 대신 '정의되지 않은'를 보여줍니다 .... 내가 카운터를하여 해결 방법을 tryed 및 그 카운터에 타이틀을 붙이는 것은 매력처럼 작동하지만, 컨텐츠 회전 장치 위로 마우스를 가져 가면 xD라는 타이틀이 못 생겨 보입니다. 어떤 아이디어입니까? jShowOff - 숫자 링크가 (워드 프레스에) '정의되지 않은'보여

<div id="recentes"> 
       <?php $my_query = new WP_Query('category_name=oficiais&posts_per_page=7'); 
        while ($my_query->have_posts()) : $my_query->the_post(); 
        $do_not_duplicate[] = $post->ID; ?> 
        <div><p> 
        <?php the_post_thumbnail('recent-thumbnail',array('title' => "")); ?> 
        <span class="recentes_tit"><?php the_title(); ?></span><br /><p><?php $myExcerpt = get_the_excerpt(); 
        $tags = array("<p>", "</p>"); 
        $myExcerpt = str_replace($tags, "", $myExcerpt); 
        $myExcerpt = str_replace("<br />", " ", $myExcerpt); 
        echo $myExcerpt; 
        ?></p class="content_readmore"><a href="<?php the_permalink(); ?>">Ver artigo</a></p></div> 
       <?php endwhile; ?> 
       </div> 
       <script type="text/javascript"> 
        jQuery(document).ready(function(){ jQuery("#recentes").jshowoff({ 
         autoPlay:true, 
         changeSpeed:1500, 
         controls:true, 
         effect:"slideLeft", 
         hoverPause:true, 
         speed:4500, 
        }); }); 
       </script> 

단지 정보,) 내가 jShowOff의 CSS와 스크립트 X라고 가정 미리 감사합니다 =)

답변

2

오늘 아주 같은 문제가 일어난 : 여기에 코드입니다. 인터넷 검색이 링크를 가지고 : https://github.com/ekallevig/jShowOff/issues/38

말 :

var linktext = $(this).attr('title') != '' ? $(this).attr('title') : i+1; 

에 :에서 jquery.jshowoff.js의

변화 라인 (231) 내 경우에는

var linktext = $(this).prop('title') != '' ? $(this).prop('title') : i+1; 

이 일을 .

관련 문제