increase/decrease font size in topics
Liquid Code :: Coding Factory :: Scripting :: Finished scripts :: Other
Page 1 of 1 • Share
increase/decrease font size in topics
_Twisted_Mods_- Posts : 101
Reputation : 3
Birthday : 1986-08-05
Join date : 2014-10-03
Age : 37
Location : USA
acp>modules>javascript management
make sure javascript is turned on .. if not turn it on and save then
create a new javascript and set
titlle: dont matter
placement: in topics
you can change the images to what ever u like
make sure javascript is turned on .. if not turn it on and save then
create a new javascript and set
titlle: dont matter
placement: in topics
you can change the images to what ever u like
- Code:
$(function(){
var minimg = 'http://icons.iconarchive.com/icons/icons8/windows-8/16/Very-Basic-Minus-icon.png';
var maximg = 'http://icons.iconarchive.com/icons/icons8/windows-8/16/Very-Basic-Plus-icon.png';
$('#main-content
.post_body').prepend('Font Size: <img id="plfonsize"
src="'+maximg+'"><img src="'+minimg+'"
id="minfonsize"><br><br> ');
$('#main-content .post_body').css('line-height','initial');
$('#plfonsize').click(function(){
str = parseInt($(this).parent().css('font-size'));
$(this).parent().css('font-size',str+2+"px");
});
$('#minfonsize').click(function(){
str = parseInt($(this).parent().css('font-size'));
$(this).parent().css('font-size',str-2+"px");
});
});
- Code:
$(function(){
var minimg = 'http://icons.iconarchive.com/icons/icons8/windows-8/16/Very-Basic-Minus-icon.png';
var maximg = 'http://icons.iconarchive.com/icons/icons8/windows-8/16/Very-Basic-Plus-icon.png';
$('#main-content .postbody .content').prepend('Font Size: <img id="plfonsize" src="'+maximg+'"><img src="'+minimg+'" id="minfonsize"><br><br> ');
$('#main-content .postbody .content').css('line-height','initial');
$('#plfonsize').click(function(){
str = parseInt($(this).parent().css('font-size'));
$(this).parent().css('font-size',str+2+"px");
});
$('#minfonsize').click(function(){
str = parseInt($(this).parent().css('font-size'));
$(this).parent().css('font-size',str-2+"px");
});
});
Similar topics
» Resize Avatars in Posts and Topics
» Prevent guests from viewing the topics and / or forums
» Reduce the number of YouTube videos shown in topics and posts
» Prevent guests from viewing the topics and / or forums
» Reduce the number of YouTube videos shown in topics and posts
Liquid Code :: Coding Factory :: Scripting :: Finished scripts :: Other
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|