Click to See Complete Forum and Search --> : Change CSS Class and Load PHP


kimoo
May 20th, 2008, 01:46 PM
Hello everybody!!

i have a php page with


<div id=loaderdiv class=onec></div>


and it has a CSS class onec which is



.onec {
z-index: 5000;
left: 0px;
top: 0px;
width: 0%;
height: 0%;
background: #24BAFF;
position: absolute;
color: #000000;
visibility: hidden;

}



i want to load a php page in the loaderdiv and change the .onec CSS Class to .twoc CSS Class which is


.twoc {
z-index: 5000;
left: 0px;
top: 0px;
width: 100%;
height: 100%;
opacity: 0.8;
background: #24BAFF;
position: absolute;
color: #000000;
visibility: visible;

}



if any one has the way show me it had been working on this for like 5 hours now..

kimoo

kimoo
May 20th, 2008, 02:33 PM
ahhhhhhhhh... finally i found out how.. just for record
here goes the code

in the dv

<div id=loaderdiv class=onec><?php include(php_file_name.php); ?></div>


you then create a js function


document.getElementById('loaderdiv').className='twoc';


this way you can show the hidden div with the page loaded in it...

hope it saves some one time one day