Partage
  • Partager sur Facebook
  • Partager sur Twitter

Script de défilement automatique

2 février 2009 à 22:43:53

Bonjours,

Enfaite je viens d'installer wordpress qui est un très bon CMS. Bref dans mon thème graphique j'ai une interface codée en java qui me permet d'avoir les dernières news du site mais le problème c'est que l'utilisateur est obligé de cliquer sur un lien pour faire varier la news. Donc je voulais savoir si vous pouviez m'aider à remédier à ça ne codant pas en java je m'occupe seulement du PHP et HTML.

Merci de votre aide

NFL-Tips


<div class="tabber">

	<div class="tabbertab">
	
		<!--This section is currently pulling category ID #1, and can be switched by changing the cat=1 to show whatever category ID you would like in this area.-->

		<h2>NFL</h2>
		<?php $recent = new WP_Query("cat=1&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
		<?php if( get_post_meta($post->ID, "homepage", true) ): ?>
			<img src="<?php echo get_post_meta($post->ID, "homepage", true); ?>" alt="<?php the_title(); ?>" />
		<?php else: ?>
			<img src="<?php bloginfo('template_url'); ?>/images/tabber.jpg" alt="<?php the_title(); ?>" />
		<?php endif; ?>				
		<h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
		<?php the_content_limit(200, ""); ?><a href="<?php the_permalink() ?>" rel="bookmark">[Read more...]</a>
		<?php endwhile; ?>
		
	</div>

	<div class="tabbertab">
	
		<!--This section is currently pulling category ID #1, and can be switched by changing the cat=1 to show whatever category ID you would like in this area.-->

		<h2>MADDEN</h2>
		<?php $recent = new WP_Query("cat=3&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
		<?php if( get_post_meta($post->ID, "homepage", true) ): ?>
			<img src="<?php echo get_post_meta($post->ID, "homepage", true); ?>" alt="<?php the_title(); ?>" />
		<?php else: ?>
			<img src="<?php bloginfo('template_url'); ?>/images/tabber.jpg" alt="<?php the_title(); ?>" />
		<?php endif; ?>				
		<h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
		<?php the_content_limit(200, ""); ?><a href="<?php the_permalink() ?>" rel="bookmark">[Read more...]</a>
		<?php endwhile; ?>
		
	</div>
	
	<div class="tabbertab">
	
		<!--This section is currently pulling category ID #1, and can be switched by changing the cat=1 to show whatever category ID you would like in this area.-->

		<h2>DOSSIERS</h2>
		<?php $recent = new WP_Query("cat=4&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
		<?php if( get_post_meta($post->ID, "homepage", true) ): ?>
			<img src="<?php echo get_post_meta($post->ID, "homepage", true); ?>" alt="<?php the_title(); ?>" />
		<?php else: ?>
			<img src="<?php bloginfo('template_url'); ?>/images/tabber.jpg" alt="<?php the_title(); ?>" />
		<?php endif; ?>				
		<h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
		<?php the_content_limit(200, ""); ?><a href="<?php the_permalink() ?>" rel="bookmark">[Read more...]</a>
		<?php endwhile; ?>
		
	</div>
	
	<div class="tabbertab">
	
		<!--This section is currently pulling category ID #1, and can be switched by changing the cat=1 to show whatever category ID you would like in this area.-->

		<h2>Featured #4</h2>
		<?php $recent = new WP_Query("cat=1&showposts=1&offset=3"); while($recent->have_posts()) : $recent->the_post();?>
		<?php if( get_post_meta($post->ID, "homepage", true) ): ?>
			<img src="<?php echo get_post_meta($post->ID, "homepage", true); ?>" alt="<?php the_title(); ?>" />
		<?php else: ?>
			<img src="<?php bloginfo('template_url'); ?>/images/tabber.jpg" alt="<?php the_title(); ?>" />
		<?php endif; ?>				
		<h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
		<?php the_content_limit(200, ""); ?><a href="<?php the_permalink() ?>" rel="bookmark">[Read more...]</a>
		<?php endwhile; ?>
		
	</div>
	
	<div class="tabbertab">
	
		<!--This section is currently pulling category ID #1, and can be switched by changing the cat=1 to show whatever category ID you would like in this area.-->

		<h2>Featured #5</h2>
		<?php $recent = new WP_Query("cat=1&showposts=1&offset=4"); while($recent->have_posts()) : $recent->the_post();?>
		<?php if( get_post_meta($post->ID, "homepage", true) ): ?>
			<img src="<?php echo get_post_meta($post->ID, "homepage", true); ?>" alt="<?php the_title(); ?>" />
		<?php else: ?>
			<img src="<?php bloginfo('template_url'); ?>/images/tabber.jpg" alt="<?php the_title(); ?>" />
		<?php endif; ?>				
		<h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
		<?php the_content_limit(200, ""); ?><a href="<?php the_permalink() ?>" rel="bookmark">[Read more...]</a>
		<?php endwhile; ?>
		
	</div>
	
	<div class="tabbertab">
	
		<!--This section is currently pulling category ID #1, and can be switched by changing the cat=1 to show whatever category ID you would like in this area.-->

		<h2>Featured #6</h2>
		<?php $recent = new WP_Query("cat=1&showposts=1&offset=5"); while($recent->have_posts()) : $recent->the_post();?>
		<?php if( get_post_meta($post->ID, "homepage", true) ): ?>
			<img src="<?php echo get_post_meta($post->ID, "homepage", true); ?>" alt="<?php the_title(); ?>" />
		<?php else: ?>
			<img src="<?php bloginfo('template_url'); ?>/images/tabber.jpg" alt="<?php the_title(); ?>" />
		<?php endif; ?>				
		<h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
		<?php the_content_limit(200, ""); ?><a href="<?php the_permalink() ?>" rel="bookmark">[Read more...]</a>
		<?php endwhile; ?>
		
	</div>

</div>

  • Partager sur Facebook
  • Partager sur Twitter
2 février 2009 à 22:46:41

=/
si c'est pour recruter des gens :o il y'a un forum spécialisé pour ça :o
sinon ben ^^ lit le tutoriel :o
  • Partager sur Facebook
  • Partager sur Twitter
2 février 2009 à 22:50:10

en effet c'est 10€ l'heure
  • Partager sur Facebook
  • Partager sur Twitter
J'ai tous les badges d'OpenClassrooms.
2 février 2009 à 22:50:59

Je pense qu'en étant développeur PHP et HTML tu dois avoir des connaissances en JavaScript.
Pourquoi ne pas faire un script qui va cliquer régulièrement sur le bouton ?
  • Partager sur Facebook
  • Partager sur Twitter
3 février 2009 à 6:15:05

Mauvais forum ! Combien de fois faudra-t-il encore rappeler que Java n'est pas Javascript ?
  • Partager sur Facebook
  • Partager sur Twitter
3 février 2009 à 11:13:21

Non, personne ne fera ton boulot.

Si tu souhaites trouver quelqu'un pour le faire, tente ta chance dans le forum recrutement.

Et comme dit ci-dessus, java != javascript.
  • Partager sur Facebook
  • Partager sur Twitter