Bones
Code Helper
Posts: 131
Bones said 0 great things
|
Post by Bones on Jan 23, 2011 22:12:36 GMT -8
Browser Tested: IE, FF, Opera, Chrome and Safari <script type="text/javascript"> <!-- //Float images in posts (Global or board footer) (function(){ var e,t,o,n,bones for(e=document.getElementsByTagName('p'),t=0;(o=e[t]);t++){ n=o.getAttribute('align');if(!n)continue; bones= o.innerText?o.innerText:o.textContent; bones=bones?bones.replace(/\n/g,''):'' if(n.match(/right|left/i) && bones=='' && o.getElementsByTagName('img').length ){ o.style.cssFloat=o.style.styleFloat=n; o.style.padding= (n.match(/left/i))?'0px 2px 0px 0px':'0px 0px 0px 2px'; o.style.margin='0pt'; } } })() // --> </script> Wrap the image in (left) or (right) UBBC to have it float left or right thus allowing text to wrap around it. The image and only the image should be in the left/right tag. Any text inside there with the image and the image will be left untouched.
|
|