<div id="divid1" style="text-align: center;width :1010px ;height:1000px; position: absolute;right:1140;top:0px; border: 0px solid #4d7dcf;background:#d4d4d1; vertical-align: middle;background-position: center; visibility: hidden;display: inline" >Code:function winsize() { var body = document.getElementById('body'); var bgopacity = document.getElementById('divid1'); var bgwidth=0; var indivW=0; var ie=window.ActiveXObject; var ns6=window.XMLHttpRequest; //FireFox Browser if(window.XMLHttpRequest){ body.style.opacity = .8; bgopacity.style.opacity = .8; if(window.innerWidth>1010){ bgwidth=(window.outerWidth-998)/2; indivW=(window.outerWidth-700)/2; }else{ bgwidth=(1010-998)/2; indivW=(1010-700)/2; } document.getElementById('divid1').style.left=bgwidth; document.getElementById('divid1').style.height=window.innerHeight; document.getElementById('callsty').style.left=indivW; } //Internet Explorer if(window.ActiveXObject){ body.style.filter ="alpha(opacity:"+80+")"; bgopacity.style.filter = "alpha(opacity:"+80+")"; if(document.body.clientWidth>1010){ bgwidth=(document.body.clientWidth-998)/2; indivW=(document.body.clientWidth-700)/2; }else{ bgwidth=(1010-998)/2; indivW=(1010-700)/2; } document.getElementById('divid1').style.left=bgwidth; document.getElementById('divid1').style.height=document.body.clientHeight; document.getElementById('callsty').style.left=indivW; } document.getElementById('divid1').style.visibility='visible'; document.getElementById('callsty').style.visibility='visible'; }
</div>
<div id="callsty" style="text-align: center; position: absolute;top:100px;width:700px; border: 1px solid #4d7dcf;background: white;-moz-border-radius: 15px;visibility: hidden; ">
<% if(request.getAttribute("CALL_ACTION_DIV").toString().equals("CourseStudyType")){ %>
<jsp:include page="../academics/CourseStudyType.jsp" />
<%}%>
</div>
This is my Code for div,
div opacity(first div "divid1") come visbility screen only i want full screen..
help me pls...


Reply With Quote


Bookmarks