Ok I got this far: see website link above
The problem is the tab does not hover over everything else so when i open it, it currently disappears behind the content. I added a:hover in my CSS code but it seemed to mess with the formatting of the box which comes out. Anyone have a simple fix?
Thanks
Code Placed in Header.php
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript"></script>
<script src="https://tab-slide-out.googlecode.com/files/jquery.tabSlideOut.v1.3.js"></script>
<script type="text/javascript">
$(function(){
$('.slide-out-div').tabSlideOut({
tabHandle: '.handle', //class of the element that will become your tab
pathToTabImage: '/Poll-Button-50.gif', //path to the image for the tab //Optionally can be set using css
imageHeight: '50px', //height of tab image //Optionally can be set using css
imageWidth: '50px', //width of tab image //Optionally can be set using css
tabLocation: 'left', //side of screen where tab lives, top, right, bottom, or left
speed: 300, //speed of animation
action: 'click', //options: 'click' or 'hover', action to trigger animation
topPos: '200px', //position from the top/ use if tabLocation is left or right
leftPos: '20px', //position from left/ use if tabLocation is bottom or top
fixedPosition: true //options: true makes it stick(fixed position) on scroll
});
});
</script>
<style type="text/css">
.slide-out-div {
padding: 20px;
width: 300px;
display: block;
float: left;
background: #ccc;
border: 1px solid #29216d;
}
</style>
Code placed in main index.php
<div class="slide-out-div">
<a class="handle" href="https://link-for-non-js-users.html">Content</a>
<h3>Stock Poll</h3>
<p>Coming Soon
</p>
<p></p>
</div>