Forum moderator: bigblog |
uCoz Community For Webmasters Custom Solutions Floating Footer Menu (Tutorial) |
Floating Footer Menu |
Installation:
Place the following code within your header tags (this code places the menu on the left hand side): Code <?if($USER_AGENT$='ie')?><?else?><!-- Floating Menu --> <div style="position:absolute;position:fixed;bottom:1;left:1;"> <div id="menu" style="display: none;"><table border="0" cellpadding="0" cellspacing="0" width="150" style="border: 1px solid gray; background: #f6f6f6;"> <tr><td height="32"><span style="font-size: 10pt;"> <b><font color="#ff0000">»</font> Site Menu</b> <small>[<a href="javascript://" onclick="$('#menu').slideToggle(2000)">X</a>]</small></span></td></tr><tr><td style="background: #f6f6f6; text-align: left; border-top: 1px solid gray;"> <br>$SMENU_1$ <table border="0" cellpadding="1" cellspacing="1" width="100%"> <tr><td width="500"> </td></tr></table> </td></tr></table></div> <div style="height: 22px; width: 150px; border: 1px solid gray; background: #f6f6f6; margin-top: 1px;"> <div style="float:left; height: 18px; width: 150px; border-left: 1px solid gray;text-align: center; padding-top: 4px;"><a href="javascript://" onclick="$('#menu').slideToggle(2000)">Site Menu</a></div> </div></div> <!-- End Floating Menu --><?endif?> Optional features: Code <?if($USER_AGENT$='ie')?><?else?><!-- Floating Menu --> <div style="position:absolute;position:fixed;bottom:1;right:1;"> <div id="menu" style="display: none;"><table border="0" cellpadding="0" cellspacing="0" width="150" style="border: 1px solid gray; background: #f6f6f6;"> <tr><td height="32"><span style="font-size: 10pt;"> <b><font color="#ff0000">»</font> Site Menu</b> <small>[<a href="javascript://" onclick="$('#menu').slideToggle(2000)">X</a>]</small></span></td></tr><tr><td style="background: #f6f6f6; text-align: left; border-top: 1px solid gray;"> <br>$SMENU_1$ <table border="0" cellpadding="1" cellspacing="1" width="100%"> <tr><td width="500"> </td></tr></table> </td></tr></table></div> <div style="height: 22px; width: 150px; border: 1px solid gray; background: #f6f6f6; margin-top: 1px;"> <div style="float:right; height: 18px; width: 150px; border-left: 1px solid gray;text-align: center; padding-top: 4px;"><a href="javascript://" onclick="$('#menu').slideToggle(2000)">Site Menu</a></div> </div></div> <!-- End Floating Menu --><?endif?> Unfortunately the code wont work properly on Internet Explorer (IE) so I have included some conditional operators to the script so that it wont show on IE. Check out: Live Demo Kind regards,
Elliott. "The best uCoz" critic since 2007. Qualified website, branding, print & user interface designer. I'm on Behance and Twitter. Post edited by Mistory - Sunday, 2010-03-21, 7:51 PM
|
Thanks a bunch for this code It's working perfectly and its flawless!
Gigabyte Zone - [ ... One Family, One Goal; Making Your Life A "Byte" Easier! ... ]
Movies, Games, Applications, Music, Books and plenty more! |
Where should I use it?
|
CreativeCollusions, What's <?if($USER_AGENT$='ie')
I didn't understand USER_AGENT. What It Does? |
CreativeCollusions, I've added a sub-menu to it. but when click on the arrow to show the sub-menu. it doesn't show.
|
| |||