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: - <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>
i tried to do it myself but it doesn't seem that this works:
 Code: - <script type="text/javascript">
- <!--
- /* Auto-Scroll Sig by Cr0w & Wrighty! =P */
-
- var td = get('td','tag');
- var w = (vf_width * 0.8) + 'px';
- var h = (vf_height * 0.4) + '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.style.cssText = "height: "+h+"; overflow-x: auto;";
- d.appendChild(td[t].firstChild.nextSibling);
- td[t].appendChild(d);
- }
- }
- //-->
- </script>
| |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Auto-Scroll Sig Mod (10th Apr 08 at 5:36pm UTC) | | try:
 Code: - <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; height: 400px; overflow-y: auto;";
- d.appendChild(td[t].firstChild.nextSibling);
- td[t].appendChild(d);
- }
- }
- //-->
- </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]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | 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!
I feel that this is a code that I'll have to play with!
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]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Auto-Scroll Sig Mod (10th Apr 08 at 5:50pm UTC) | | So it's ok? | |
|
dog199200 Guest | Re: Auto-Scroll Sig Mod (10th Apr 08 at 6:31pm UTC) | | ya it works ty | |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Auto-Scroll Sig Mod (10th Apr 08 at 6:32pm UTC) | | Welcome! | |
|