Some questions
Page 1 of 1 • Share •
Some questions
javascript
1. how to ad title tag for some links which contains specifics word
2.
this script is visible only for logged users, why
FORUM LINK
username: testing
password: testtest
tnx
1. how to ad title tag for some links which contains specifics word
2.
- Code:
<script>
jQuery(document).ready(function() {
msg = 'SOME HTML';
jQuery('#picture_legend').html(jQuery('#picture_legend').html() + msg);
});
</script>
this script is visible only for logged users, why
FORUM LINK
username: testing
password: testtest
tnx
Re: Some questions
A title attribute can be added on most HTML elements.
If your reffering to adding a title attribute on something which you can not edit, then it can be added with javascript: 'elem.title="title text";'
I'll elaborate when I know more what you mean.
The script could be only for members depending on where you put it.
Put it in a Javascript like this:
Yes, i changed it, it still does the same thing but in a better/more normal way.
[/code]
If your reffering to adding a title attribute on something which you can not edit, then it can be added with javascript: 'elem.title="title text";'
I'll elaborate when I know more what you mean.
The script could be only for members depending on where you put it.
Put it in a Javascript like this:
- Code:
jQuery(function() {
document.getElementById('picture_legend').innerHTML+="YOUR TEXT HERE";
});
Yes, i changed it, it still does the same thing but in a better/more normal way.
[/code]
Re: Some questions
1.
i would like to ad title attribut or similar tooltip for signed link (it's aditional profile field)

2.
after inserting this code (site map) into forum descriptions, the problem remains the same - visible only for logged members
i would like to ad title attribut or similar tooltip for signed link (it's aditional profile field)

2.
- Code:
jQuery(function() {
document.getElementById('picture_legend').innerHTML+="YOUR TEXT HERE";
});
after inserting this code (site map) into forum descriptions, the problem remains the same - visible only for logged members
Re: Some questions
Are you sure your not putting the script in a forum description which is only for members?
Re: Some questions
Wait what do you mean forum description?
Do you mean the description of one of your forums, as in the bit underneath one of the forum sections name?
Do you mean the description of one of your forums, as in the bit underneath one of the forum sections name?
Re: Some questions
LGforum wrote:Wait what do you mean forum description?
Do you mean the description of one of your forums, as in the bit underneath one of the forum sections name?

Re: Some questions
That's not your forum description, that's your homepage message and no you can not set permissions for that.
I think some script for guests on your forum is not functioning properly as I could not exacute any script as a guest on your forum.
I think some script for guests on your forum is not functioning properly as I could not exacute any script as a guest on your forum.
Re: Some questions
Its not working for your guests because another one of your scripts is hitting an error.
The other script which is failing is this:
Because the PM link does not show up for guests the script is failing to execute, causing the script in this thread to fail too.
The other script which is failing is this:
- Code:
$(function(){document.getElementById('i_icon_mini_message').nextSibling.nodeValue='Inbox'});
Because the PM link does not show up for guests the script is failing to execute, causing the script in this thread to fail too.
Re: Some questions
Nera. wrote:That's not your forum description, that's your homepage message and no you can not set permissions for that.
I think some script for guests on your forum is not functioning properly as I could not exacute any script as a guest on your forum.
yes, it's homepage message...sorry my mistake
LGforum wrote:Its not working for your guests because another one of your scripts is hitting an error.
The other script which is failing is this:
- Code:
$(function(){document.getElementById('i_icon_mini_message').nextSibling.nodeValue='Inbox'});
Because the PM link does not show up for guests the script is failing to execute, causing the script in this thread to fail too.
problem solved thanks to you new code
tnx
Re: Some questions
| Topic Solved & Moved Note: You can also help the staff member's work by EDITING your topic and marking it as solved. |
- Are you good on helping Forumotion users?Know more about the helper rank

Helpful Links:
General Rules l-l Lost your Founder Password? l-l Report a Forum
Forum Security l-l Habits to be avoided(Forum Security) l-l Forum Hacked? What to do?

Jophy- Manager

-

Posts: 10659
Age: 16
Language: English, Tagalog
Location: Manila, Philippines
Points: 27702
Join date: 2009-08-02
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum

Home


by paor on February 22nd 2012, 1:52 am





