vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: [F] Auto-Scroll Sig Mod - View Topic
Topic Rating: *****
Printable View
This topic was locked 13th Apr 08 at 6:22pm by Michael
dog199200
Guest
[F] Auto-Scroll Sig Mod (10th Apr 08 at 5:30pm UTC)
Resolved
can i possibly get the code modded that anyone with a sig taht is higher then 400 pixels will be put into a scroll as well.

Code:
 
  1. <script type="text/javascript">
  2. <!--
  3. /* Auto-Scroll Sig by Cr0w & Wrighty! =P */
  4.  
  5. var td = get('td','tag');
  6. var w = (vf_width * 0.8) + 'px';
  7.  
  8. for(t=0;t<td.length;t++){
  9.     if(td[t].className == "post signature"){
  10.         var d = document.createElement('div');
  11.         d.style.cssText = "width: "+w+"; overflow-x: auto;";
  12.         d.appendChild(td[t].firstChild.nextSibling);
  13.         td[t].appendChild(d);
  14.     }
  15. }
  16. //-->
  17. </script>
 


i tried to do it myself but it doesn't seem that this works:

Code:
 
  1. <script type="text/javascript">
  2. <!--
  3. /* Auto-Scroll Sig by Cr0w & Wrighty! =P */
  4.  
  5. var td = get('td','tag');
  6. var w = (vf_width * 0.8) + 'px';
  7. var h = (vf_height * 0.4) + 'px';
  8.  
  9. for(t=0;t<td.length;t++){
  10.     if(td[t].className == "post signature"){
  11.         var d = document.createElement('div');
  12.         d.style.cssText = "width: "+w+"; overflow-x: auto;";
  13.         d.style.cssText = "height: "+h+"; overflow-x: auto;";
  14.         d.appendChild(td[t].firstChild.nextSibling);
  15.         td[t].appendChild(d);
  16.     }
  17. }
  18. //-->
  19. </script>
 
Michael
Moderator
*****

[Avatar]
Recoding the future

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

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Auto-Scroll Sig Mod (10th Apr 08 at 5:36pm UTC)
try:
Code:
 
  1. <script type="text/javascript">
  2. <!--
  3. /* Auto-Scroll Sig by Cr0w & Wrighty! =P */
  4.  
  5. var td = get('td','tag');
  6. var w = (vf_width * 0.8) + 'px';
  7.  
  8. for(t=0;t<td.length;t++){
  9.     if(td[t].className == "post signature"){
  10.         var d = document.createElement('div');
  11.         d.style.cssText = "width: "+w+"; overflow-x: auto; height: 400px; overflow-y: auto;";
  12.         d.appendChild(td[t].firstChild.nextSibling);
  13.         td[t].appendChild(d);
  14.     }
  15. }
  16. //-->
  17. </script>
 
dog199200
Guest
Re: Auto-Scroll Sig Mod (10th Apr 08 at 5:38pm UTC)
...ty, but darn i was no where near close...


Edit: ok that doesn't work, it just extents the sig to 400 pixels
Michael
Moderator
*****

[Avatar]
Recoding the future

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

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Auto-Scroll Sig Mod (10th Apr 08 at 5:43pm UTC)
And if the sig was over 400 px it would expand to that! {Unsure}

I feel that this is a code that I'll have to play with! {Unsure}

I have family here at the moment, they'll be gone within 2 hours (I hope) so I'll jump on you it then! ^_^
dog199200
Guest
Re: Auto-Scroll Sig Mod (10th Apr 08 at 5:45pm UTC)
lol, i got it you where right i had to play with it, to get it to work for 400px like i wnated i had to set it to 300px
Michael
Moderator
*****

[Avatar]
Recoding the future

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

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Auto-Scroll Sig Mod (10th Apr 08 at 5:50pm UTC)
So it's ok? {Unsure}
dog199200
Guest
Re: Auto-Scroll Sig Mod (10th Apr 08 at 6:31pm UTC)
ya it works ty
Michael
Moderator
*****

[Avatar]
Recoding the future

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

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Auto-Scroll Sig Mod (10th Apr 08 at 6:32pm UTC)
Welcome! {Grin}
 Printable View

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