It does everything like it should for my pages and makes this script.....
but it is not putting in the __doPostBack() method used by the framework.........Code:<script language="javascript"> <!--// function pbCommand(cmd) { __doPostBack('PostBackCommand', cmd); } //--> </script> <script language="JavaScript"> // Global variables var intited = false; var isCSS; var isW3C; var isIE4; var isNN4; var isNN6; var isIE6CSS; // Initialize upon load to let all browsers establish content objects function pk_InitializeDHTMLLib() { if(intited == true){return;} if (document.images) { isCSS = (document.body && document.body.style) ? true : false; isW3C = (isCSS && document.getElementById) ? true : false; isIE4 = (isCSS && document.all) ? true : false; isNN4 = (document.layers) ? true : false; isIE6CSS = (document.compatMode && document.compatMode.indexOf("CSS1") >= 0) ? true : false; intited = true; } } //Seek Nested Netscape 4 Layer function pk_SeekLayer(doc, name) { if(intited == false){pk_InitializeDHTMLLib()} var obj; for(var i = 0; i < doc.layers.length; i++) { if(doc.layers[i].name == name) { obj = doc.layers[i] break; } if(doc.layers[i].document.layers.length > 0) { //recrusive obj = pk_SeekLayer(document.layers[i].document, name); } } return obj; } //Convert object name string or object refreance //into a valid element object refreance function pk_GetObject(obj) { if(intited == false){pk_InitializeDHTMLLib()} if(typeof obj == "string") { if(isW3C) { return document.getElementById(obj); } else if(isIE4) { return document.all(obj); } else if(isNN4) { return pk_SeekLayer(document, obj); } } else { return obj; } } //Position an object at a specific pixel coordinate function pk_MoveTo(obj, x, y) { obj = pk_GetObject(obj); if(obj) { if(isCSS) { var units = (typeof(obj.left == "string") ? "px" : 0); obj.left = x + units; obj.top = y + units; } else if(isNN4) { obj.moveTo(x, y); } } } //Move an object by an x y offset function pk_MoveBy(obj, x, y) { obj = pk_GetObject(obj); if(obj) { if(isCSS) { var units = (typeof(obj.left == "string") ? "px" : 0); obj.left = pk_GetObejectLeft(obj) + x + units; obj.top = pk_GetObjectTop(obj) + y + units; } else if(isNN4) { obj.moveBy(x, y); } } } //set an object's z-index function pk_SetZ(obj, z) { obj = pk_GetObject(obj); if(obj) { obj.zIndex = z; } } //change an object's bgcolor function pk_SetBgColor(obj, html_color) { obj = pk_GetObject(obj); if(obj) { if(isNN4) { obj.bgColor = html_color; } else if(isCSS) { obj.backgroundColor = html_color; } } } //make an object visible function pk_Show(obj) { obj = pk_GetObject(obj); if(obj) { obj.visibility = "visible"; } } //make an object invisible function pk_Hide(obj) { obj = pk_GetObject(obj); if(obj) { obj.visibility = "hidden"; } } function pk_Collapse(obj) { obj = pk_GetObject(obj); if(obj) { obj.display = "none"; } } function pk_Expand(obj) { obj = pk_GetObject(obj); if(obj) { obj.display = "block"; } } function pk_GetObjectLeft(obj) { obj = pk_GetObject(obj); var ret = 0; if(document.defaultView) { var style = document.defaultView; var cssDec = style.getComputedStyle(obj, ""); ret = cssDec.getPropertyValue("left"); } else if(obj.currentStyle.left) { ret = obj.currentStyle.left; } else if(obj.style) { ret = obj.style.left; } else if(isNN4) { ret = obj.left; } return parseInt(ret); } function pk_GetObjectTop(obj) { obj = pk_GetObject(obj); var ret = 0; if(document.defaultView) { var style = document.defaultView; var cssDec = style.getComputedStyle(obj, ""); ret = cssDec.getPropertyValue("top"); } else if(obj.currentStyle.top) { ret = obj.currentStyle.top; } else if(obj.style) { ret = obj.style.top; } else if(isNN4) { ret = obj.top; } return parseInt(ret); } function pk_GetObjectWidth(obj) { obj = pk_GetObject(obj); var ret = 0; if(obj.offsetWidth) { ret = obj.offsetWidth; } else if(obj.clip && obj.clip.width) { ret = obj.clip.width; } else if(obj.style && obj.style.pixelWidth) { ret = obj.style.pixelWidth; } return parseInt(ret); } function pk_GetObjectHeight(obj) { obj = pk_GetObject(obj); var ret = 0; if(obj.offsetWidth) { ret = obj.offsetHeight; } else if(obj.clip && obj.clip.height) { ret = obj.clip.height; } else if(obj.style && obj.style.pixelHeight) { ret = obj.style.pixelHeight; } return parseInt(ret); } </script> <script language="JavaScript"> function pk_popup(name, url) { //var sw = ((screen.width - 640) / 2); //var sh = ((screen.height - 480 / 2); //var features = "width=640,height=480";//,left=" + sw + ",top=" + sh; window.open(url, name, "width=640,height=480,scrollbars=1"); } function pk_popupSizable(name, url) { //var sw = ((screen.width - 640) / 2); //var sh = ((screen.height - 480 / 2); //var features = "width=640,height=480";//,left=" + sw + ",top=" + sh; window.open(url, name, "width=800,height=650,resizable=1,scrollbars=1"); } </script> <script language="JavaScript"> var ___tickMessage = "PK Promotions ~ Custom Importing and Exporting."; window.defaultStatus = ___tickMessage; //setInterval("if(window.status != ___tickMessage){window.status = ___tickMessage;}", 5);//window.status = __tickCache; </script>




Reply With Quote