vForums Support > Programming & Coding :: Database of Codes/Hacks/Mods :: > Scroll To Quick Reply
Scroll To Quick Reply - Posted By Michael (wrighty) on 3rd Apr 08 at 8:04pm
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