This will add a button on the footer section of you WordPress page
Copy and past this code in the themes functions.php file
If you want to add it some whee else let me know
function wp_footer_callback() { ?>
<div class=”example1″>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce facilisis sagittis lectus. Curabitur quam arcu, adipiscing quis pretium in, pharetra eget dolor.</p>
</div>
<script type=”text/javascript”>
jQuery(document).ready(function() {
jQuery(‘.example1’).hide().before(‘L?s mere om Diana ↓‘);
jQuery(‘.example1’).append(‘Luk ↑‘);
jQuery(‘a#open-example1’).click(function() {
jQuery(‘.example1’).slideDown(1000);
jQuery(‘#open-example1’).fadeOut(500);
return false;
});
jQuery(‘a#close-example1’).click(function() {
jQuery(‘.example1’).slideUp(1000);
jQuery(‘#open-example1’).fadeIn(500)
return false;
});
});
</script>
<style type=”text/css”>
.button {
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
background: #eee;
border: 0;
color: #333;
cursor: pointer;
font-family: “Lucida Grande”, Helvetica, Arial, Sans-Serif;
margin: 0;
padding: 6px 4px;
text-decoration: none;
position: relative
}
.example1 p,
.example2 p {
border: 1px solid #eee;
background: #eee;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
width: 400px;
padding: 10px;
margin: 10px 0
}
</style>
<?php
}
add_action( ‘wp_footer’, ‘wp_footer_callback’ );