To toggle 2010's ribbon neat and short:
Reference JQuery:
<script src="/sites/inet/_js/jquery-1.4.4.min.js" type="text/ecmascript"></script>
Put this either in a separate .js and reference the js file:
$(document).ready(function(){
$('#s4-ribbonrow').hide();
$('#toggleribbon').click(function() {
$('#s4-ribbonrow').toggle();
});
});
Put this some where. This is what you will click to toggle the ribbon:
<img id="toggleribbon" src="/../../images/imgToggle.jpg"/>
Wednesday, December 14, 2011
Subscribe to:
Posts (Atom)