September 25, 2022, 12:52:29 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Revolution X, where Coding meets Graphics.
 
  Home Help Search Arcade Affiliates Staff List Calendar Members Login Register  

Resize Post Area

Pages: [1]   Go Down
  Print  
Author Topic: Resize Post Area  (Read 303 times)
Agent Moose
Administrator
Adminitrator
Offline Offline

Gender: Male
Posts: 1,470



View Profile WWW
Badges: (View All)
« on: November 04, 2008, 10:00:06 am »

Footers:
Code:
<script>
if(location.href.match(/action=post/i) || location.href.match(/topic,/i)) document.forms.postmodify.message.parentNode.innerHTML = document.forms.postmodify.message.parentNode.innerHTML + "<div style='font-size: 200%; cursor: pointer;'><span onclick='postSize(1);'>+</span>  <span onclick='postSize(0);'>-</span></div>";
//Created by Agent Moose (revolutionx.smfforfree3.com)
//Part of this code was created by Zetaboards
function postSize(a){
if(location.href.match(/action=post/i)){var b = $(document.forms.postmodify.message).height() - 50 + (100 * a);b = (b<210) ? 210:b;$(document.forms.postmodify.message).height(b);};
if(location.href.match(/topic/i)){var b = $(document.forms.postmodify.message).height() - 50 + (100 * a);b = (b<128) ? 128:b;$(document.forms.postmodify.message).height(b);};
};
</script>

Just a little code I decided to make.  Part of this code is was created by the people of Zetaboards, so i'm giving them credit Smiley

Anyway, this adds a plus and minus sign under the textarea when making a fast reply, post, or topic.

Enjoy Smiley
Report Spam   Logged


Share on Facebook Share on Twitter

Vitality
Exclusive
Exclusive
Offline Offline

Gender: Male
Posts: 154



View Profile
Badges: (View All)
« Reply #1 on: November 04, 2008, 07:28:40 pm »

Nice original code, pretty cool. Nice conversion Moose Wink
Report Spam   Logged


CODE
Mojobojo82
MVP
MVP
Offline Offline

Gender: Male
Posts: 838


View Profile
Badges: (View All)
« Reply #2 on: June 22, 2009, 04:35:35 am »

Nice code.
It's simple but good
Report Spam   Logged






Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy