vForums Support > Programming & Coding :: Code Requests & Support :: > [F] Signature Iframe

[F] Signature Iframe - Posted By dog199200 (dog199200) on 3rd Apr 08 at 4:08am
because suggestion ain't open i guess with wil have to do, um can i please get a code that will turn the data thats in a signature into an iframe (like the code tag does) when the information in it is big enough to stretch the forum?

Re: Signature Iframe - Posted By Marc (cr0w) on 3rd Apr 08 at 4:22am
Code:
 
  1. <script type="text/javascript">
  2. <!--
  3. /* Auto-Scroll Sig by Cr0w */
  4.  
  5. var td = get('td','tag');
  6. for(t=0;t<td.length;t++){
  7.     if(td[t].className == "post signature"){
  8.         td[t].style.width = (vf_width*0.8);
  9.         td[t].style.overflowX = "auto";
  10.     }
  11. }
  12. //-->
  13. </script>
 


Untested; global footers. {Smile}

Re: Signature Iframe - Posted By dog199200 (dog199200) on 3rd Apr 08 at 4:56am
not working

Re: Signature Iframe - Posted By Michael (wrighty) on 3rd Apr 08 at 11:26am
try:

<script type="text/javascript">
<!--
/* Auto-Scroll Sig by Cr0w & Wrighty! =P */

var td = get('td','tag');
var w = (vf_width * 0.8) + 'px';

for(t=0;t<td.length;t++){
    if(td[t].className == "post signature"){
        var d = document.createElement('div');
        d.style.cssText = "width: "+w+"; overflow-x: auto;";
        d.appendChild(td[t].firstChild.nextSibling);
        td[t].appendChild(d);
    }
}
//-->
</script>


Global Footer

@Marc => Had to append a Div with the image in it! ^.^ Strangely that's the way I would have done it from the start. Not sure if your way would have worked or not! {Unsure}

Re: Signature Iframe - Posted By dog199200 (dog199200) on 3rd Apr 08 at 10:18pm
{Smile} ty