The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Plus - minus

2 posters

Go down

Solved Plus - minus

Post by Yakko! October 14th 2010, 5:49 pm

How to have this:
Plus - minus 3fpj1gcodcaarzf1pmms

in the gangstar forum!
Yakko!
Yakko!
Forumember

Male Posts : 661
Reputation : -5
Language : Italian, english, Français

Back to top Go down

Solved Re: Plus - minus

Post by Guest October 14th 2010, 5:52 pm

That's font resizer, can only done by phpbb2 or punbb.
avatar
Guest
Guest


Back to top Go down

Solved Re: Plus - minus

Post by Yakko! October 14th 2010, 5:53 pm

yes! i have punBB
Yakko!
Yakko!
Forumember

Male Posts : 661
Reputation : -5
Language : Italian, english, Français

Back to top Go down

Solved Re: Plus - minus

Post by Guest October 14th 2010, 5:55 pm

Okay Go to

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 Rolling Eyes
avatar
Guest
Guest


Back to top Go down

Solved Re: Plus - minus

Post by Saxaca October 14th 2010, 6:59 pm

Gangstar, you have to learn. Lol. Cool people like sharing codes. Plus - minus Redface
Anyways, i suppose that script will work on my HTML pages?
Saxaca
Saxaca
Forumember

Male Posts : 539
Reputation : 26
Language : Markup.

Back to top Go down

Solved Re: Plus - minus

Post by Guest October 14th 2010, 7:44 pm

Haha Very Happy i will Very Happy yah but you must have <span> </span> tags around the text you want to resizer (:
avatar
Guest
Guest


Back to top Go down

Solved Re: Plus - minus

Post by Yakko! October 17th 2010, 2:48 pm

Thanks!
solved
Yakko!
Yakko!
Forumember

Male Posts : 661
Reputation : -5
Language : Italian, english, Français

Back to top Go down

Solved Re: Plus - minus

Post by Guest October 17th 2010, 4:16 pm

Plus - minus Stock_lock-ok Solved Plus - minus 103 Locked
avatar
Guest
Guest


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum