Title for PM in Dropdown Navbar
3 posters
Page 1 of 1
Title for PM in Dropdown Navbar
Hello..
If you get new private message and then you hover the PM menu in navbar, the title will appear and show you how many message that you get..
Like this SS :
Now, I change the regular navbar to dropdown navbar like in this topic -> https://help.forumotion.com/t116289-code-for-sexy-drop-down-nav-bar
And when I get new PM, the title doesn't appear anymore..
I guess I have to add title attribute in HTML script, but I don't know what title can be used so the title will show me how many message that I get, something like :
If you don't understand, feel free to ask question..
If you get new private message and then you hover the PM menu in navbar, the title will appear and show you how many message that you get..
Like this SS :
Now, I change the regular navbar to dropdown navbar like in this topic -> https://help.forumotion.com/t116289-code-for-sexy-drop-down-nav-bar
And when I get new PM, the title doesn't appear anymore..
I guess I have to add title attribute in HTML script, but I don't know what title can be used so the title will show me how many message that I get, something like :
- Code:
<li><a href="/privmsg?folder=inbox"title="What Title Can be Used?">Message</a></li>
If you don't understand, feel free to ask question..
Last edited by Aconitin on December 23rd 2012, 1:35 pm; edited 1 time in total
Aconitin- Forumember
- Posts : 246
Reputation : 7
Language : Indonesian
Location : Indonesia
Aconitin- Forumember
- Posts : 246
Reputation : 7
Language : Indonesian
Location : Indonesia
Aconitin- Forumember
- Posts : 246
Reputation : 7
Language : Indonesian
Location : Indonesia
Re: Title for PM in Dropdown Navbar
Bump..
Please help, guys..
Please help, guys..
Aconitin- Forumember
- Posts : 246
Reputation : 7
Language : Indonesian
Location : Indonesia
Re: Title for PM in Dropdown Navbar
Sorry for really late reply..
@Rideem : But, my HTML script is like this
@Rideem : But, my HTML script is like this
- Code:
<li><a id="inbox_text" href="/privmsg?folder=inbox">Message</a></li></a>
- Code:
$(function() {
if (document.getElementById('i_icon_mini_new_message')) document.getElementById('inbox_text').innerHTML = "New Messages";
});
Aconitin- Forumember
- Posts : 246
Reputation : 7
Language : Indonesian
Location : Indonesia
Re: Title for PM in Dropdown Navbar
No, I just hide it like your suggestion..
- Code:
<span style="display: none">{GENERATED_NAV_BAR}</span>
Aconitin- Forumember
- Posts : 246
Reputation : 7
Language : Indonesian
Location : Indonesia
Re: Title for PM in Dropdown Navbar
Maybe something like this?
- Code:
(function($){
$(document).ready(function(){
$('#i_icon_mini_message').each( function() {
var s = $(this).attr('title');
$(this).children(".inbox_test").html(m);
});
});
})(jQuery);
Re: Title for PM in Dropdown Navbar
Well I know this works for me, so. I don't have all his markup here to check and everything so. Like I said this code works perfectly fine for me.
Maybe .children() could be changed to .find() or .closest()
Maybe .children() could be changed to .find() or .closest()
Re: Title for PM in Dropdown Navbar
Actually, I don't try this yet..
I want to get confirmation firstly..
So, the HTML script would be like this :
Am I right?
I want to get confirmation firstly..
So, the HTML script would be like this :
- Code:
<li><a id="inbox_link" href="/privmsg?folder=inbox"id="inbox_text">Message</a></li></a>
- Code:
$(function() {
if (document.getElementById('i_icon_mini_new_message')) document.getElementById('inbox_text').innerHTML = "New Messages";
});
$(function() {
if (document.getElementById('i_icon_mini_new_message')) document.getElementById('inbox_link').innerHTML = document.getElementById('i_icon_mini_new_message').title;
});
Am I right?
Aconitin- Forumember
- Posts : 246
Reputation : 7
Language : Indonesian
Location : Indonesia
Aconitin- Forumember
- Posts : 246
Reputation : 7
Language : Indonesian
Location : Indonesia
Re: Title for PM in Dropdown Navbar
Thanks..
All of you are the best..
-SOLVED-
All of you are the best..
-SOLVED-
Aconitin- Forumember
- Posts : 246
Reputation : 7
Language : Indonesian
Location : Indonesia
Re: Title for PM in Dropdown Navbar
Topic Solved & Locked |
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum