Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- //<![CDATA[
- function loadwindow(url){
- var winwidth=(screen.width||document.client.width);
- var wdth=(winwidth==1024||winwidth<1280)? "1024" : "1280";
- document.getElementById("dwindow").style.display='';
- document.getElementById("dwindow").style.left=(document.documentElement.clientWidth-wdth)/2 + "px";
- document.getElementById("dwindow").style.width=wdth + "px";
- document.getElementById("dwindow").style.height=(document.documentElement.clientHeight)-20 + "px";
- document.getElementById("cframe").src=url;
- document.getElementById("cframe").style.height=(document.documentElement.clientHeight)-20 +"px";
- document.getElementById("cframe").style.width=(wdth-2) +"px";
- document.getElementById("cframe").style.left=(document.documentElement.clientWidth-wdth)/2 + "px";
- }
- function closeit(){
- document.getElementById("dwindow").style.display="none"
- document.getElementById("cframe").src=""
- }
- document.write('<div id="dwindow" style="position:relative;background-color:#333333;cursor:pointer;display:none;"><div align="right" style="background-color:#333333;font-size:70%;color:#00ffff;"><b>Close Window-----><\/b> <img src="./images/close.gif" onclick="closeit()" title=" Close displayview " alt="" /><\/div>');
- document.write('<iframe id="cframe" src="" frameborder= "0" style="background:#000000;position:fixed;border:1px solid #525252;z-index:1;"><\/iframe><\/div>');
- //]]>
- </script>
Add Comment
Please, Sign In to add comment