vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: [F] Signature Iframe - View Topic
Topic Rating: *****
Printable View
This topic was locked 3rd Apr 08 at 10:21pm by Michael
dog199200
Guest
[F] Signature Iframe (3rd Apr 08 at 4:08am UTC)
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?
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Signature Iframe (3rd Apr 08 at 4:22am UTC)
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}

rroll.to— Shorten a link, rickroll your friends.
dog199200
Guest
Re: Signature Iframe (3rd Apr 08 at 4:56am UTC)
not working
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Signature Iframe (3rd Apr 08 at 11:26am UTC)
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}
dog199200
Guest
Re: Signature Iframe (3rd Apr 08 at 10:18pm UTC)
{Smile} ty
 Printable View

All times are GMT+0 :: The current time is 12:32am
Page generated in 0.1023 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums