Go Back   Webmaster Forum > Development > Programming > JavaScript
REMOVE the ads below !
Reply
 
LinkBack Thread Tools
  # 1 (permalink)
Old
Junior Geek
Posts: 65
Join Date: Feb 2007
iTrader: (0)
[zetaboards] limit signature images - 12-17-2007

this code allows you to choose a maximum number of images in the signature,
i noticed VB has this feature so i thought ZB should have it

Preview: None

Quote:
<script>
/*Limit images in the signature
by Godkillah
phantom-designs.net*/

var limit=3 //how many images are allowed in the signature

if(location.href.match(/\/home\/\?c=32/i)){
document.forms['posting'].onsubmit=function(){
sig=document.forms['posting'].post.value.toLowerCase()
if(sig.split('\[img\]').length>limit){
alert("You have got to many images in your signature, you're only allowed to have "+limit+" images")
return false
}}}
</script>
should be pretty self explaining,
add to footer,
enjoy
Reply With Quote
Reply


Thread Tools



Advertise Here for just $6 per month

vBulletin®, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. | SEO by vBSEO | Skin developed by vBStyles.com