Tworzę stronę na wordpressie i chcę, zrobić tak, żeby po kliknięciu w jedną grafikę wysuwało się tak jakby niewielkie pole z informacjami.
Mają być cztery grafiki, które jak się naciśnie, to wysunie się pole z informacjami. Informacji będzie tam nie wiele, bo będzie tam tylko kilka rozmiarów podanych.
To moja pierwsza styczność z javascript, dlatego bardzo proszę o pomoc.
pozdrawiam.
___
Wstawiam jeszcze kod strony, gdzie ma być zastosowany skrypt.
<?php // File Security Check } ?> <?php /** * Template Name: Timeline * * The timeline page template displays a user-friendly timeline of the * posts on your website. * * @package WooFramework * @subpackage Template */ get_header(); ?> <div id="content" class="page col-full"> <?php woo_main_before(); ?> <section id="main" class="col-left"> <div id="plexi" style="position:relative;left:140px;top:85px;width:242px;height:250px;"> <img src="http://serwer1398286.home.pl/autoinstalator/wordpress/wp-content/themes/mystile/images/plexi.png"></a> </div> <div id="pcv" style="position:relative;left:650px;top:85px;width:250px;height:250px;" a href="http://serwer1398286.home.pl/autoinstalator/wordpress/index.php/sklep/"> <img src="http://serwer1398286.home.pl/autoinstalator/wordpress/wp-content/themes/mystile/images/pcv.png"></a> </div> <div id="folie" style="position:relative;left:350px;top:-165px;width:250px;height:250px;" a href="http://serwer1398286.home.pl/autoinstalator/wordpress/index.php/sklep/"> <img src="http://serwer1398286.home.pl/autoinstalator/wordpress/wp-content/themes/mystile/images/folie.png"></a> </div> <div id="kompozyty" style="position:relative;left:40px;top:-170px;width:250px;height:250px;" a href="http://serwer1398286.home.pl/autoinstalator/wordpress/index.php/sklep/"> <img src="http://serwer1398286.home.pl/autoinstalator/wordpress/wp-content/themes/mystile/images/kompozyty.png"></a> </div> <?php wp_reset_query(); ?> <?php woo_main_after(); ?> <?php get_sidebar(); ?> </div><!-- /#content --> <?php get_footer(); ?>
Na razie są tam tylko te 4 grafiki i brakuje tego nieszczęsnego wysuwanego pola.
Wstawiam też plik index.php jeśli będzie do czegoś przydatny:
<?php // File Security Check } ?><?php /** * Index Template * * Here we setup all logic and XHTML that is required for the index template, used as both the homepage * and as a fallback template, if a more appropriate template file doesn't exist for a specific context. * * @package WooFramework * @subpackage Template */ get_header(); ?> <?php if ( $woo_options[ 'woo_homepage_banner' ] == "true" ) { ?> <div class="homepage-banner"> <?php if ( $woo_options[ 'woo_homepage_banner' ] == "true" ) { $banner = $woo_options['woo_homepage_banner_path']; } if ( $woo_options[ 'woo_homepage_banner' ] == "true" && is_ssl() ) { $banner = preg_replace("/^http:/", "https:", $woo_options['woo_homepage_banner_path']); } ?> <div class="description"><?php echo wpautop($woo_options['woo_homepage_banner_standfirst']); ?></div> </div> <?php } ?> <?php woo_main_before(); ?> <section id="main" class="col-left"> <?php mystile_homepage_content(); ?> <?php woo_loop_before(); ?> <?php if ( $woo_options[ 'woo_homepage_blog' ] == "true" ) { $postsperpage = $woo_options['woo_homepage_blog_perpage']; ?> <?php if ( have_posts() ) : $count = 0; ?> <?php /* Start the Loop */ ?> <?php while ( $the_query->have_posts() ) : $the_query->the_post(); $count++; ?> <?php /* Include the Post-Format-specific template for the content. * If you want to overload this in a child theme then include a file * called content-___.php (where ___ is the Post Format name) and that will be used instead. */ get_template_part( 'content', get_post_format() ); ?> <?php endwhile; // Reset Post Data wp_reset_postdata(); ?> <?php else : ?> <article <?php post_class(); ?>> <p><?php _e( 'Sorry, no posts matched your criteria.', 'woothemes' ); ?></p> </article><!-- /.post --> <?php endif; ?> <?php } // End query to see if the blog should be displayed ?> <?php woo_loop_after(); ?> </section><!-- /#main --> <?php woo_main_after(); ?> <?php if ( $woo_options[ 'woo_homepage_sidebar' ] == "true" ) get_sidebar(); ?> </div><!-- /#content --> <?php get_footer(); ?>