Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 10-11-2011, 07:45 PM Make images rotate.
Experienced Talker

Posts: 33
Trades: 0
Hello,

I need to know what code and where do I need to add a code that will make the four images on my home page auto rotate. My website is www.massseotraffic.com. The index.php code is:

<?php get_header(); ?>

<div id="main" class="grid_8">

<?php $more1 = get_option('woo_more1_ID'); ?>

<?php query_posts('page_id=' . $more1); ?>

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<div class="entry">

<h2><?php the_title(); ?></h2>

<?php the_content(); ?>

</div>

<?php endwhile; endif; ?>

<?php

if( get_option('woo_show_carousel') == 'true' ){ include(TEMPLATEPATH . '/includes/category_carousel.php'); }

?>

</div><!-- / #main -->

<ul id="showcase">
<li>
<a class="active" href="<?php if ( get_option('woo_featured_1') <> "" ) { echo get_option('woo_featured_1').''; } else { bloginfo('template_directory'); ?>/images/img-featured-01.png<?php } ?>" rel="<?php echo get_option('woo_featured_1_linkout'); ?>" title="<?php bloginfo('name'); ?>"><img src="<?php if ( get_option('woo_thumbnail_1') <> "" ) { echo get_option('woo_thumbnail_1').''; } else { bloginfo('template_directory'); ?>/images/img-product-01.jpg<?php } ?>" alt="<?php bloginfo('name'); ?>" /></a>
</li>
<li>
<a href="<?php if ( get_option('woo_featured_2') <> "" ) { echo get_option('woo_featured_2').''; } else { bloginfo('template_directory'); ?>/images/img-featured-02.png<?php } ?>" rel="<?php echo get_option('woo_featured_2_linkout'); ?>" title="<?php bloginfo('name'); ?>"><img src="<?php if ( get_option('woo_thumbnail_2') <> "" ) { echo get_option('woo_thumbnail_2').''; } else { bloginfo('template_directory'); ?>/images/img-product-02.jpg<?php } ?>" alt="<?php bloginfo('name'); ?>" /></a>
</li>
<li>
<a href="<?php if ( get_option('woo_featured_3') <> "" ) { echo get_option('woo_featured_3').''; } else { bloginfo('template_directory'); ?>/images/img-featured-03.png<?php } ?>" rel="<?php echo get_option('woo_featured_3_linkout'); ?>" title="<?php bloginfo('name'); ?>"><img src="<?php if ( get_option('woo_thumbnail_3') <> "" ) { echo get_option('woo_thumbnail_3').''; } else { bloginfo('template_directory'); ?>/images/img-product-03.jpg<?php } ?>" alt="<?php bloginfo('name'); ?>" /></a>
</li>
<li>
<a href="<?php if ( get_option('woo_featured_4') <> "" ) { echo get_option('woo_featured_4').''; } else { bloginfo('template_directory'); ?>/images/img-featured-04.png<?php } ?>" rel="<?php echo get_option('woo_featured_4_linkout'); ?>" title="<?php bloginfo('name'); ?>"><img src="<?php if ( get_option('woo_thumbnail_4') <> "" ) { echo get_option('woo_thumbnail_4').''; } else { bloginfo('template_directory'); ?>/images/img-product-04.jpg<?php } ?>" alt="<?php bloginfo('name'); ?>" /></a>
</li>
</ul>

<?php get_sidebar("home"); ?>
<?php get_footer(); ?>

Thanks
outstandn is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-14-2011, 08:53 AM Re: Make images rotate.
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
If you are looking for an animation type of rotation, you will need to look into JavaScript
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Make images rotate.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11497 seconds with 12 queries