• 17-11-2016, 22:15:23
    #1
    Merhaba Arkadaşlar,

    haber sitemde manşet bölümü var. Mouse ile 15 haber arasında geçersen slider çalışıyor ama mouse u üzerine götürmezsen dönmüyor. Bunu bi türlü çözemedim. Manşet in olduğu php dosyasını aynen iletiyorum. Hata var ise düzeltip yardımcı olursanız çok sevinirim.
    		<!-- START MANSET -->
    			<div class="manset">
    <?php 
    		wp_reset_query();
    		$m=0;
    		query_posts('showposts=15&cat='.get_cat_id(fs_get_option('fs_mansetkategori')).'');
    		while ( have_posts() ) : the_post();
    		$m++;
    ?>
            <div class="on" id="manset<?php echo $m; ?>"<?php if($m!==1){ echo ' style="display:none;"'; } ?>>
    			<div class="buyuk"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php if ( has_post_thumbnail()) : the_post_thumbnail( 'r4', array('class' => '', 'style' => '', 'alt' => '', 'title' => '' )); elseif (get_post_meta($post->ID, 'resim', true) != '') : ?><img src="<?php echo get_post_meta($post->ID, 'resim', true); ?>" alt="<?php the_title(); ?>"  width="640" height="301" /><?php else : ?><img src="<?php bloginfo('template_url'); ?>/images/resimyok.jpg" width="640" height="301" alt="<?php the_title(); ?>" /><?php endif; ?></a></div>
    			
    				<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php k_baslik(); ?></a></h2>
    		</div>
    <?php 
    		endwhile; 
    ?>                    
    				<ul class="sayfala">
            <?php 
    		$t=0;
    		query_posts('showposts=15&cat='.get_cat_id(fs_get_option('fs_mansetkategori')).'');
    		while ( have_posts() ) : the_post(); $t++; ?>
    		
    			<li<?php if($t==15){ echo ' class="son"'; } ?>><a href="<?php the_permalink(); ?>" onmouseover="goster(<?php echo $t; ?>)"><?php echo $t; ?></a></li>
    <?php 
    		endwhile;
    ?>
    				</ul>
    			</div>
    <!-- END MANSET -->
  • 17-11-2016, 23:01:00
    #2
    Adresi pm alabilir miyim? Ekeltinin ayarlarına baktınız mı?
  • 17-11-2016, 23:04:15
    #3
    pm gönderildi
  • 18-11-2016, 18:30:10
    #4
    dönme olayı veya süre olayı php kodlarından değil js kodlarından bakılması lazım sliderin js kodlarını koyarsanız daha kısa sürede yardımcı olabiliriz.
  • 19-11-2016, 14:21:42
    #5
    S.SAĞLAM adlı üyeden alıntı: mesajı görüntüle
    dönme olayı veya süre olayı php kodlarından değil js kodlarından bakılması lazım sliderin js kodlarını koyarsanız daha kısa sürede yardımcı olabiliriz.
    Hocam mesajı geç gördüm. 1 arkadaş yardım ediyordu ancak işin içinden çıkamadık. Hangi kodu yazdıysak çalışmadı yardım edersen çok sevinirim.

    	
    /* ////////////////////////// INDEX MANSET ////////////////////////// */	
    	function goster(id)
    	{
    		$('div[id^="manset"]').attr('style','display:none;');
    		$('#manset' + id).attr('style','display:block;');
    	}
    js kodu