Plus - minus
2 posters
Page 1 of 1
Plus - minus
How to have this:
in the gangstar forum!
in the gangstar forum!
Yakko!- Forumember
- Posts : 661
Reputation : -5
Language : Italian, english, Français
Re: Plus - minus
yes! i have punBB
Yakko!- Forumember
- Posts : 661
Reputation : -5
Language : Italian, english, Français
Re: Plus - minus
Okay Go to
ACP - Display - Templates - Overall_header:
Paste this part under <head> tag:
And paste this part anywhere under the <body> tag:
Save + Publish
Its unfair i given my codes away lol ;D
ACP - Display - Templates - Overall_header:
Paste this part under <head> tag:
- Code:
<script type="text/javascript">
var min=11;
var max=18;
function increaseFontSize() {
var p = document.getElementsByTagName('span');
for(i=0;i<p.length;i++) {
if(p[i].style.fontSize) {
var s = parseInt(p[i].style.fontSize.replace("px",""));
} else {
var s = 12;
}
if(s!=max) {
s += 1;
}
p[i].style.fontSize = s+"px"
}
}
function decreaseFontSize() {
var p = document.getElementsByTagName('span');
for(i=0;i<p.length;i++) {
if(p[i].style.fontSize) {
var s = parseInt(p[i].style.fontSize.replace("px",""));
} else {
var s = 12;
}
if(s!=min) {
s -= 1;
}
p[i].style.fontSize = s+"px"
}
}
</script>
And paste this part anywhere under the <body> tag:
- Code:
<br><a href="javascript:decreaseFontSize();"><img src="http://cdn.iconfinder.net/data/icons/diagona/icon/16/104.png" border="0" Alt="Decrease font size"></a>
<a href="javascript:increaseFontSize();"><img src="http://cdn.iconfinder.net/data/icons/woothemesiconset/16/add.png" border="0" Alt="Increase font size"></a>
<br>
Save + Publish
Its unfair i given my codes away lol ;D
Guest- Guest
Re: Plus - minus
Gangstar, you have to learn. Lol. Cool people like sharing codes.
Anyways, i suppose that script will work on my HTML pages?
Anyways, i suppose that script will work on my HTML pages?
Saxaca- Forumember
- Posts : 539
Reputation : 26
Language : Markup.
Re: Plus - minus
Haha i will yah but you must have <span> </span> tags around the text you want to resizer (:
Guest- Guest
Re: Plus - minus
Thanks!
solved
solved
Yakko!- Forumember
- Posts : 661
Reputation : -5
Language : Italian, english, Français
Similar topics
» Minus and Plus?
» Minus Points
» I need a vote minus icon.
» I need a vote minus icon.
» Bad (minus) reputation points question
» Minus Points
» I need a vote minus icon.
» I need a vote minus icon.
» Bad (minus) reputation points question
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum