We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Menu Icons; Add Images
Topic Started: May 5 2012, 10:52 AM (365 Views)
Sheyney Fox
Member Avatar
Member
[ *  * ]
Board Address: Celestial Conspiracy
Board Software: ZetaBoards
Description: Change the submenu to icons.
Posted Image
Offline Profile Goto Top
 
Quozzo
Member Avatar
By the blood of Sanguinius!
[ *  *  *  *  * ]
Code: Above the Board
 
<script>
$('#submenu a:contains("SEARCH")').html("<img src='URL HERE' alt='SEARCH' />");
</script>
That should work, try lower case letters if not and repeat it for the five, or so, links.[/code]
Edited by Quozzo, May 5 2012, 01:49 PM.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
This version might be a little more friendlier and easier to understand.

Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
function changeSL(text, imageURL) {
$('#submenu a:contains(' + text + ')').html('<img src="' + imageURL + '" alt="' + text + '" />');
}

changeSL('Search', 'IMAGE_URL');
changeSL('Members', 'IMAGE_URL');
changeSL('Calendar', 'IMAGE_URL');
changeSL('FAQ', 'IMAGE_URL');
changeSL('Portal', 'IMAGE_URL');
changeSL('Awards', 'IMAGE_URL');
</script>
Change each IMAGE_URL accordingly.
Offline Profile Goto Top
 
Sheyney Fox
Member Avatar
Member
[ *  * ]
:wub: Awesome! Thank you very much Quozzo and Cory! As you can see, it looks great! Posted Image

Posted Image
Edited by Sheyney Fox, May 6 2012, 05:21 AM.
Offline Profile Goto Top
 
Quozzo
Member Avatar
By the blood of Sanguinius!
[ *  *  *  *  * ]
Cory said put it below the board but I'm fairly sure it will work above the board as it will be directly below the submenu and so there won't be a delay.
Offline Profile Goto Top
 
Sheyney Fox
Member Avatar
Member
[ *  * ]
Yes you are right Quozzo, it is much quicker above the board, thank you! :wub:
I actually had the code under the submenu in the layout originally because I wanted to insert icons to match the themes.
Edited by Sheyney Fox, May 6 2012, 09:16 AM.
Offline Profile Goto Top
 
Eccentric Feline
Member Avatar
梦想
[ *  *  *  *  *  *  *  * ]
Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic