DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 1 of 1

Thread: DIV help Pls

  1. #1
    Join Date
    Jun 2009
    Posts
    1

    Question DIV help Pls

    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 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" >
    </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; ">

    <&#37; 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...
    Last edited by Hack; 06-16-2009 at 12:27 PM. Reason: Added Code Tags

Similar Threads

  1. Replies: 3
    Last Post: 01-11-2008, 12:41 AM
  2. Changing page container div with ajax
    By wtvamp in forum AJAX
    Replies: 2
    Last Post: 12-14-2007, 03:10 PM
  3. Replies: 1
    Last Post: 03-31-2007, 04:40 PM
  4. HELP: DataGrid inside DIV Layer
    By dhruba.bandopad in forum ASP.NET
    Replies: 0
    Last Post: 04-13-2006, 12:18 PM
  5. One DIV on top of another
    By Tim Cowan in forum Web
    Replies: 2
    Last Post: 09-21-2000, 04:28 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links