vForums Support > Programming & Coding :: Database of Codes/Hacks/Mods :: > Get Head/Base Info

Get Head/Base Info - Posted By Michael (wrighty) on 27th Apr 08 at 2:39pm
This code will assign head & base information to 2 variables. Very useful for when you're making your own affiliate table and you want it to include the head/base of the person's skin.

<script>
/*Get Head/Base Info
Snippetted By Wrighty*/

var head_table = get('table','tag')[0].cloneNode(true);
var foot_table = get('table','tag')[3].cloneNode(true);
</script>


This is a snippet, and shouldn't be used as is. This code is provided to show the best way to go about getting the information.

Re: Get Head/Base Info - Posted By dog199200 (dog199200) on 27th Apr 08 at 6:36pm
um may i ask, how exactly can this be used, i dont understand what it does.

Re: Get Head/Base Info - Posted By Michael (wrighty) on 27th Apr 08 at 6:40pm
It's more for coders to use. If someone's making an affiliate table for example. They can build head & base images into it without having to prompt for head/base information.

Until I thought of this, that would have been the way to add head and base images.

Re: Get Head/Base Info - Posted By dog199200 (dog199200) on 27th Apr 08 at 6:50pm
ah i see, and i am a code {Tongue Out} at least here soon i will get into coding for vforums, thats why i asked. and ty

Re: Get Head/Base Info - Posted By Michael (wrighty) on 27th Apr 08 at 6:53pm
Welcome! {Smile}

Re: Get Head/Base Info - Posted By Marc (cr0w) on 27th Apr 08 at 6:58pm
 
It's more for coders to use. If someone's making an affiliate table for example. They can build head & base images into it without having to prompt for head/base information.

Until I thought of this, that would have been the way to add head and base images.


Could they not just surround their affiliate table in the same classes/id's that the CSS that inserts the head/base images originally uses? {Wink}

Re: Get Head/Base Info - Posted By Michael (wrighty) on 27th Apr 08 at 6:59pm
 
 
It's more for coders to use. If someone's making an affiliate table for example. They can build head & base images into it without having to prompt for head/base information.

Until I thought of this, that would have been the way to add head and base images.


Could they not just surround their affiliate table in the same classes/id's that the CSS that inserts the head/base images originally uses? {Wink}


I thought that, but I remember (when I last looked) that the left & right images are actually included in image tags, and not through CSS