vForums Support > Programming & Coding :: Code Requests & Support :: > Image before menu

Image before menu - Posted By Further (further) on 19th Aug 08 at 6:00pm
I need a simple code to place an image before the menu to push it farther to the right.

http://styles.vforums.co.uk

Thanks in advance.

Re: Image before menu - Posted By Alex Bailey (system) on 19th Aug 08 at 6:33pm
http://support.virtualforums.co.uk/board/database/action/view_topic/topic/1414

Use that code {Smile} It will center the menu {Cheesy}

Re: Image before menu - Posted By Jason (frufru) on 19th Aug 08 at 6:35pm
 
I need a simple code to place an image before the menu to push it farther to the right.

http://styles.vforums.co.uk

Thanks in advance.


A pretty quick modification to Wrighty's code

<script>
/*Add Menu Buttons
Created By Wrighty
Modified to add to the left
support.virtualforums.co.uk*/

var menu = get('menu_buttons','id').getElementsByTagName('font')[0];

function do_menu_left(img_src,link, guest){
if(guest){
menu.innerHTML= "<a href="+link+"><img src='" +img_src+"' border=0></a> :: " + menu.innerHTML;
}else{
if(vf_username != 'guest'){
menu.innerHTML= "<a href="+link+"><img src='"+img_src+"' border=0></a> ::" + menu.innerHTML;
}
}
}

do_menu_left('IMAGE LINK','URL TO LINK TO', false);
</script>


That should work {Smile}
(modify/add more of the red part)

Re: Image before menu - Posted By Further (further) on 19th Aug 08 at 6:54pm
I was gonna center the menu, but I didn't want to.

Thanks frufru.

Re: Image before menu - Posted By Jason (frufru) on 19th Aug 08 at 6:57pm
 
I was gonna center the menu, but I didn't want to.

Thanks frufru.


you're welcome {Smile}