MyBB Community Forums

Full Version: Help me. :)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I have code for something like this : http://techtutor.co.tv/test/fbtest.html
I want to add that on my forum. How I will do that? Please?
You'll have to go to Templates & Style in the Admin CP, then add this code (not within a div)
<a href="FBstranica" id="pokazi" alt="fb"><img src="http://sfpuppyprep.com/images/iconFB.jpg" width="50px" height="50px" /></a>
Then add this code after <title>{$mybb->settings['bbname']}</title>

<style type="text/css">

#pokazi {position:absolute; left:-25px; top:50%; margin-top:-25px;}

</style>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>

<script type="text/javascript">

$(document).ready(function(){

$("#pokazi").mouseover(function(){

$("#pokazi").animate({left:"2px"}, 500);

});

});

$(document).ready(function(){

$("#pokazi").mouseout(function(){

$("#pokazi").animate({left:"-25px"}, 500);

});

});

</script>

If this doesn't work for you, or you don't understand, PM me.
^jQuery? I think you can archieve the same result using CSS3.