|
Post by MonsterControl on Jan 27, 2012 18:00:12 GMT -4
<script type="text/Javascript"> // Limit Image Sizes in Posts v1 by Chris // Do not redistribute without permission of the creator
var _mHeight = 500; // Maximum height var _mWidth = 500; // Maximum width
// No need to edit var aIM = document.getElementsByTagName("IMG"); function imageMove(_s){ for(_keyit=_s;_keyit<aIM.length;_keyit++){ if(!aIM[_keyit].alt.match(/image/i)) continue; if(aIM[_keyit].complete == true){ var h = aIM[_keyit].clientHeight; var w = aIM[_keyit].clientWidth; if(h > _mHeight || w > _mWidth){ aIM[_keyit].height = _mHeight; aIM[_keyit].width = _mWidth; aIM[_keyit].onclick = function(){ this.removeAttribute("height"); this.removeAttribute("width"); this.alt = this.title = "[image]"; } aIM[_keyit].alt = aIM[_keyit].title = "Click to enlarge this image!"; } } else { setTimeout("imageMove("+_keyit+");",1000); break; } } } imageMove(0); </script>
|
|
|
Post by MonsterControl on Jan 27, 2012 18:02:29 GMT -4
<script type="text/javascript"> <!-- /* Image Size Limits by SubDevo */ /* Global Footer - Please leave this header intact. Do not repost. */ /* http://interoceandesigns.proboards.com or http://lsdp.proboards.com */
var pWidth=600; // Max Image Width (px). var pHeight=1000; // Max Image Height (px). var pTitle="Click Image To View Full Size."; // Image Link/Title Text. var showLink=1; // Show link Text? 1=Yes, 0=No
function iSize(){ var n=document.images; var ph=""; var pw=""; var nT=(showLink)?"<font size='2'>"+pTitle+"</font><br>":""; for(var _x=0;_x<n.length;_x++){with(n[_x]){ ph=height/pHeight; pw=width/pWidth; if(alt=="[image] "&&(pw>1||ph>1)){ var p=document.createElement("a"); p.href=src; p.target="_blank"; p.title=pTitle; p.innerHTML=nT+"<img src='"+src+"' width='"+((ph>pw)?width/ph:pWidth)+"' border='0'>"; n[_x].parentNode.replaceChild(p,n[_x]); }}}} (window.attachEvent)?window.attachEvent("onload",iSize):window.addEventListener("load", iSize,false); // --> </script>
|
|
|
Post by MonsterControl on Jan 27, 2012 19:07:08 GMT -4
<script type="text/javascript"> /* Resize Sig, User, And Account Notes Textareas On Modify Profile Page - Open Source - Main Footer */
if(document.modifyForm && document.modifyForm.signature){ document.modifyForm.signature.style.height="300px"; document.modifyForm.signature.style.width="300px"; } if(document.modifyForm && document.modifyForm.usernotes){ document.modifyForm.usernotes.style.height="300px"; document.modifyForm.usernotes.style.width="300px"; } if(document.modifyForm && document.modifyForm.notes){ document.modifyForm.notes.style.height="300px"; document.modifyForm.notes.style.width="300px"; } </script>
|
|
|
Post by MonsterControl on Jan 27, 2012 19:07:29 GMT -4
<script type="text/javascript"> <!-- /* Resize Sig And User Notes Textareas On Modify Profile Page - Open Source - Main Footer */ var n=document.modifyForm; if(n){ if(n.signature){with(n.signature){rows="20"; cols="40";}} if(n.usernotes){with(n.usernotes){rows="20"; cols="40";}} } //--> </script>
Now that I think about it... Aren't the sig and usernote areas always on that form when viewed? If so we could get rid of the other "if" statements... Wrighty?
<script type="text/javascript"> <!-- /* Resize Sig And User Notes Textareas On Modify Profile Page - Open Source - Main Footer */ var n=document.modifyForm; if(n){ with(n.signature){rows="20"; cols="40";} with(n.usernotes){rows="20"; cols="40";} } //--> </script>
|
|