AutoClose of DivisionTag Window .......
-
HI , the following code if am using.. i want autoclose to "dwindow" division tag after displaying for specific seconds.. <script> var dragapproved = false var minrestore = 0 var initialwidth, initialheight var ie5 = document.all && document.getElementById var ns6 = document.getElementById && !document.all function iecompattest() { return (!window.opera && document.compatMode && document.compatMode != "BackCompat") ? document.documentElement : document.body } function loadwindow(width, height) { if (!ie5 && !ns6) window.open("width=width,height=height,scrollbars=1") else { document.getElementById("dwindow").style.display = '' document.getElementById("dwindow").style.width = initialwidth = width + "px" document.getElementById("dwindow").style.height = initialheight = height + "px" document.getElementById("dwindow").style.left = "30px" document.getElementById("dwindow").style.top = ns6 ? window.pageYOffset * 1 + 30 + "px" : iecompattest().scrollTop * 1 + 30 + "px" document.getElementById("cframe").src = url } } function closeit() { document.getElementById("dwindow").style.display = "none" } </script> <script> var howLong = 10000; t = null; function closeMe() { t = setTimeout("dwindow.close()", howLong); } </script> <script> function closeHelpDiv() { document.getElementById("dwindow").style.display = "none"; } </script> </head> <body> <form id="form1" runat="server"> <div id="dwindow" style="position: absolute; cursor: hand; left: 0px; top: 0px; display: none" onselectstart="return false" > <div align="right" style="background-color: #FFFF99;"> <a onclick="closeit()" style="color: Red; font-weight: bold; cursor: pointer;">Close</a> </div> <div id="dwindowcontent"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="600" height="400"> <param name="m
-
HI , the following code if am using.. i want autoclose to "dwindow" division tag after displaying for specific seconds.. <script> var dragapproved = false var minrestore = 0 var initialwidth, initialheight var ie5 = document.all && document.getElementById var ns6 = document.getElementById && !document.all function iecompattest() { return (!window.opera && document.compatMode && document.compatMode != "BackCompat") ? document.documentElement : document.body } function loadwindow(width, height) { if (!ie5 && !ns6) window.open("width=width,height=height,scrollbars=1") else { document.getElementById("dwindow").style.display = '' document.getElementById("dwindow").style.width = initialwidth = width + "px" document.getElementById("dwindow").style.height = initialheight = height + "px" document.getElementById("dwindow").style.left = "30px" document.getElementById("dwindow").style.top = ns6 ? window.pageYOffset * 1 + 30 + "px" : iecompattest().scrollTop * 1 + 30 + "px" document.getElementById("cframe").src = url } } function closeit() { document.getElementById("dwindow").style.display = "none" } </script> <script> var howLong = 10000; t = null; function closeMe() { t = setTimeout("dwindow.close()", howLong); } </script> <script> function closeHelpDiv() { document.getElementById("dwindow").style.display = "none"; } </script> </head> <body> <form id="form1" runat="server"> <div id="dwindow" style="position: absolute; cursor: hand; left: 0px; top: 0px; display: none" onselectstart="return false" > <div align="right" style="background-color: #FFFF99;"> <a onclick="closeit()" style="color: Red; font-weight: bold; cursor: pointer;">Close</a> </div> <div id="dwindowcontent"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="600" height="400"> <param name="m
Whats the problem? Just call closeMe() at the end of your loadwindow method. If you need anything else or an issue, do tell
-
HI , the following code if am using.. i want autoclose to "dwindow" division tag after displaying for specific seconds.. <script> var dragapproved = false var minrestore = 0 var initialwidth, initialheight var ie5 = document.all && document.getElementById var ns6 = document.getElementById && !document.all function iecompattest() { return (!window.opera && document.compatMode && document.compatMode != "BackCompat") ? document.documentElement : document.body } function loadwindow(width, height) { if (!ie5 && !ns6) window.open("width=width,height=height,scrollbars=1") else { document.getElementById("dwindow").style.display = '' document.getElementById("dwindow").style.width = initialwidth = width + "px" document.getElementById("dwindow").style.height = initialheight = height + "px" document.getElementById("dwindow").style.left = "30px" document.getElementById("dwindow").style.top = ns6 ? window.pageYOffset * 1 + 30 + "px" : iecompattest().scrollTop * 1 + 30 + "px" document.getElementById("cframe").src = url } } function closeit() { document.getElementById("dwindow").style.display = "none" } </script> <script> var howLong = 10000; t = null; function closeMe() { t = setTimeout("dwindow.close()", howLong); } </script> <script> function closeHelpDiv() { document.getElementById("dwindow").style.display = "none"; } </script> </head> <body> <form id="form1" runat="server"> <div id="dwindow" style="position: absolute; cursor: hand; left: 0px; top: 0px; display: none" onselectstart="return false" > <div align="right" style="background-color: #FFFF99;"> <a onclick="closeit()" style="color: Red; font-weight: bold; cursor: pointer;">Close</a> </div> <div id="dwindowcontent"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="600" height="400"> <param name="m
This code looks like a copy paste code and do you expect people to get it working for you?. Did you notice where the problem is ? Check in the following line ....
document.getElementById("cframe").src = url
The function have neither "url" nor "cframe" control. How this should work ?? Before posting such query why dont you put little effort to get priliminary work done?:mad:
Thanks, Arindam D Tewary