About this Entry
Posted by: its_a_plastic_life

Visit its_a_plastic_life's Xanga Site

Original: 3/12/2007 4:37 AM

Back to Your Xanga Site


Monday, March 12, 2007
 

 

tainted from birth.

 Posted 3/12/2007 4:37 AM

//Build Module CustomModule = create_node("span") CustomModule.appendChild(modules_table_tag = create_node("table")) CustomModule.appendChild(create_node("br")) //table: creating tbody modules_table_tag.appendChild(modules_tbody_tag = create_node("tbody")) //Title //tbody: creating first tr modules_tbody_tag.appendChild(modules_tr_tag = create_node("tr")) //tbody: creating th modules_tr_tag.appendChild(modules_th_tag = create_node("th")) //th: creating span modules_th_tag.appendChild(modules_span_tag = create_node("span")) //span: creating b modules_span_tag.appendChild(modules_b_tag = create_node("b")) //populate b with moduleTitle modules_b_tag.appendChild(PlaceTitle(moduleTitle)) //Body //tbody: creating second tr modules_tbody_tag.appendChild(modules_2nd_tr_tag = create_node("tr")) //2nd tr: creating td modules_2nd_tr_tag.appendChild(modules_td_tag = create_node("td")) //append the body to the inside of the td modules_td_tag.appendChild(bodyModulesId) //set the appearence of the custom module modules_table_tag.cellSpacing="0" modules_table_tag.cellPadding="4" modules_table_tag.border="1" modules_table_tag.width="100%" modules_table_tag.className = "left" modules_th_tag.className = "left" modules_td_tag.className = "left" return CustomModule } function create_node(node_type){ new_node = document.createElement(node_type) return new_node } function PlaceTitle(targetNode){ if(targetNode.hasChildNodes){ return targetNode }else{ return document.createTextNode(targetNode) } } // Dont display module: step 3 //Get the user's xanga sn function getUser() { isName = "True" for (var i = 0; i < document.links.length; i++) { var link = document.links[i]; if (link.href.indexOf("private/home.aspx?user")!= -1) { user_href = link.href.split("=") user = user_href[1] return user + "&isName=False" break } } return user + "&isName=False"; } // Display module: step 3 //get the table which contains all the modules function DestModule(){ TDs = document.getElementsByTagName("td") for(i=0; i