Welcome Guest [Log In] [Register]
Viewing Single Post From: Add more links to Submenu
Reid.
C'est un piège!
[ *  *  * ]
Viral.
Jun 23 2009, 05:04 PM
I made this last year - and it's a lot shorter than that:
Code:
 
<script type="text/javascript">
//<![CDATA[
function submenu(l,t,p){var l = '<a href="'+l+'">'+t+'</a>';
if(p=="before"){$("#submenu").prepend(l);}else{$("#submenu").append(l);}}
submenu("http://google.com","Google","before");
submenu("http://yahoo.com","Yahoo","after");
//]]>
</script>
I guess. Mine didn't force you to have 'before' or 'after' though, and it also gave the option to have them all before or all after.
Online Profile Quote Post
Add more links to Submenu · Code & Modification Database