Advertisement
jithinsmmb

Untitled

Apr 6th, 2013
2,454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.    
  2.  
  3. <?php get_header(); ?>
  4.  
  5.  
  6.  
  7. <div id="content">
  8.  
  9.  
  10.  <div onclick="myFunction()" id = "xx1" style="position: absolute; width: 209px; height: 607px; z-index:400" ><img src = "http://i.imgur.com/YqqQj2x.png"></img></div>
  11.  
  12.  
  13. <script>
  14. function myFunction()
  15. {
  16.     element = document.getElementById("xx1"); //the div element
  17.     img = element.firstChild; //the img element
  18.     element.removeChild(img); // you can use too: img.parentNode.removeChild(img); because the div is the parent of the img :o
  19.  
  20.  
  21. }
  22. </script>
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.     <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  30.        
  31.         <div class="post-header">
  32.        
  33.             <h2 class="post-title"><?php the_title(); ?></h2>
  34.                        
  35.             <p class="post-date">
  36.                 <em><?php _e('Posted by', 'themejunkie'); ?> <?php the_author_posts_link(); ?> <?php _e('on', 'themejunkie'); ?> <?php the_time('F j, Y'); ?>, <?php _e('filed in', 'themejunkie'); ?>: <?php the_category(', ')?></em>
  37.             </p> <!--end .post-date-->
  38.        
  39.         </div> <!--end .post-header-->
  40.        
  41.         <div class="comment-cloud">
  42.             <?php comments_popup_link('0', '1', '%', 'comments-link', ''); ?>
  43.         </div> <!--end .comment-cloud-->
  44.        
  45.  
  46.         <div class="clear"></div>
  47.  
  48.  
  49.  
  50.  
  51.  
  52.            
  53.         <div class="entry">
  54.            
  55.             <?php the_content(); ?>
  56.                
  57.  
  58.             <div class="clear"></div>
  59.            
  60.             <div class="tags">
  61.                 <?php the_tags(); ?>
  62.                 <?php edit_post_link('('.__('Edit', 'themejunkie').')', '', ''); ?>
  63.             </div> <!--end .tags-->
  64.            
  65.         </div> <!--end .entry-->
  66.        
  67.         <div class="postnavi">
  68.        
  69.             <div class="left">
  70.             <?php previous_post_link('%link', '<p>&laquo; Previous</p>%title', TRUE);  ?>
  71.             </div>
  72.        
  73.             <div class="right">
  74.                 <?php next_post_link('%link', '<p>Next &raquo;</p>%title', TRUE); ?>
  75.             </div>
  76.        
  77.             <div class="clear"></div>
  78.            
  79.         </div> <!--end .postnavi-->
  80.        
  81.         <?php comments_template(); ?>
  82.        
  83.     <?php endwhile; else: ?>
  84.    
  85.         <h2 class="pagetitle"><?php _e('Not Found', 'themejunkie') ?></h2>
  86.        
  87.         <div class="entry">
  88.             <p><?php _e('Sorry, no posts matched your criteria.', 'themejunkie') ?></p>
  89.         </div> <!--end .entry -->
  90.    
  91.     <?php endif; ?>
  92.    
  93. </div> <!--end #content-->
  94.    
  95. <?php get_sidebar(); ?>
  96.  
  97. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement