vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Database of Codes/Hacks/Mods :: Scroll To Quick Reply - View Topic
Topic Rating: *****
Printable View
Michael
Moderator
*****

[Avatar]
Recoding the future

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

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Scroll To Quick Reply (3rd Apr 08 at 8:04pm UTC)
This code will add a link next to all of the other links in the post. (Back to top, link to post and IP). This link will, when clicked, scroll you to the quick reply.

<script>
/*Scroll To Quick Reply
Coded By Wrighty
Do Not: Rip, Repost or Claim*/

var d = get('a','tag');
for(i=0;i<d.length;i++){
    if(d[i].className == 'backtotop'){
        d[i].parentNode.appendChild(document.createTextNode(' - '));
        var a = document.createElement('a');
        a.href = '#bottom';
        a.appendChild(document.createTextNode('Quick Reply'));
        d[i].parentNode.appendChild(a);
    }
}
var z = document.createElement('a');
z.name = 'bottom';
document.body.appendChild(z);
</script>



Global Footer
 Printable View

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