Category image in navigation problem
2 posters
Page 1 of 1
Category image in navigation problem
Hello,
On my forum http://horrific.forumpl.net I'm using images as category name. Here is example:
As you see, navigation bar is broken, becouse it shows cat as image. I found a solution, but have problem to implement it.
In viewforum_body I added a script, just after {BOARD_INDEX}:
On my forum http://horrific.forumpl.net I'm using images as category name. Here is example:
- Code:
<img src="http://s19.postimg.org/wshf2kour/catfab.png" alt="Fabuła" class="subtitle-img"/>
As you see, navigation bar is broken, becouse it shows cat as image. I found a solution, but have problem to implement it.
In viewforum_body I added a script, just after {BOARD_INDEX}:
- Code:
<script type="text/javascript">imgs = new Array();imgs["organizacja"] = "http://s19.postimg.org/ohvluqtar/catorg.png";imgs["akcja"] = "http://s19.postimg.org/m4do3qevn/catakc.png";imgs["fabuła"] = "http://s19.postimg.org/wshf2kour/catfab.png";$.each($(".secondarytitle h2"), function(v, k) {if(imgs[k.innerHTML.toLowerCase()] !== undefined) {k.innerHTML = '<img src="' + imgs[k.innerHTML.toLowerCase()] + '" alt="' + k.innerHTML + '" class="subtitle-img" />';}});</script>
- Code:
<td class="nav" valign="middle" width="100%"><div class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a>{NAV_CAT_DESC}</div></td>
Last edited by nigh7mare on August 21st 2013, 1:44 am; edited 1 time in total (Reason for editing : misspells)
nigh7mare- New Member
- Posts : 1
Reputation : 1
Language : Polish and English
Re: Category image in navigation problem
Hi,
None will work, CSS nor JavaScript will do it, since it's the same image. Sorry, mate. Your only option is to resize the image itself.
None will work, CSS nor JavaScript will do it, since it's the same image. Sorry, mate. Your only option is to resize the image itself.
Similar topics
» Problem on Category Bar Image?
» Category/Forum Image Display Problem
» Problem about : forum image topic icon is very near to the category text/description
» [Help] Putting Category in Navigation: Is it possible?
» the space between the navigation bar/menu and the first category
» Category/Forum Image Display Problem
» Problem about : forum image topic icon is very near to the category text/description
» [Help] Putting Category in Navigation: Is it possible?
» the space between the navigation bar/menu and the first category
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum