Is this possible
2 posters
Page 1 of 1
Is this possible
can i know how to set the visibility of an object?
example i have a message for guests only of message for members only.
is it possible?
example i have a message for guests only of message for members only.
is it possible?
Re: Is this possible
Hi,
You can use this in AP > Modules > JS managment and mark all pages
Change the #i_logo in the script to the selector where you want to post the message or leave #i_logo for it to be placed under logo. Change the text to fit your wishes.
You can use this in AP > Modules > JS managment and mark all pages
- Code:
$(function() {
x=document.getElementById('i_icon_mini_login');
y=document.getElementById('i_icon_mini_logout');
if(x) {
$('#i_logo').after('<br/><span style="background:#f0e8e0;border:1px solid #c00000;font-family:Tahoma,Arial;font-size:11px;padding: 5px;text-align: center;margin-top: -3px;"><strong>text for guests to see</strong></span><br/> ');
}
else if(y) {
$('#i_logo').after('<br/><span style="background:#f0e8e0;border:1px solid #c00000;font-family:Tahoma,Arial;font-size:11px;padding: 5px;text-align:center;"><strong>text for members to see</strong></span><br/> ');
}
});
Change the #i_logo in the script to the selector where you want to post the message or leave #i_logo for it to be placed under logo. Change the text to fit your wishes.
Nera.- Energetic
- Posts : 7078
Reputation : 2017
Language : English
Location : -
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum