modal module for joomla 1.5 website

create custom html and add contents ,what content you want display in modal its position is firstvisit

add this code to template index
<!–this code for open any new thenga kola–>
<script type=”text/javascript”>
function randamsubmit(){
    document.getElementById(‘hid’).value=1;
}
</script>
<?php
if($this->countModules(‘firstvisit’)) {
  if(!isset($_COOKIE[‘randam’])){
    if(isset($_POST[‘hid’])){ setcookie(“randam”, 0, time()+60*60*24*15);}else{ ?>
    <div id=”home_first_div”></div>
<style type=”text/css” >
#modal_main{
    width:400px;
    height:auto;
    border: 1px solid #ccc;
    padding:10px;
    box-shadow: 0pt 0pt 5px rgba(0, 0, 0, 0.3);
    background-color:#FFF;
    position:fixed;
    margin-top:-200px;
    margin-left:-200px;
    top:50%;
    left:50%;
    z-index:10002;
    }
#home_first_div {
    background-color: #EA83B5;
    height: 100%;
    opacity: 0.5;
    filter:alpha(opacity=80);
    position: fixed;
    width: 100%;
    z-index: 10001;
    /*display:none;*/
}

</style>

<div id=”modal_main”><form method=”post” onsubmit=”randamsubmit();”>
<input type=”image” style=”position: absolute; right: 0pt; top: 0px; width: 35px;” src=”images/stories/closeround.png” >
<input type=”hidden” id=”hid” name=”hid” value=”0″>
</form>
<jdoc:include type=”modules” name=”firstvisit” style=”raw” />
</div>

<?php }
}
}  ?>
<!–this code for open any new thenga kola–>