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(){
if($this->countModules(‘firstvisit’)) {
    if(isset($_POST[‘hid’])){ setcookie(“randam”, 0, time()+60*60*24*15);}else{ ?>
    <div id=”home_first_div”></div>
<style type=”text/css” >
    border: 1px solid #ccc;
    box-shadow: 0pt 0pt 5px rgba(0, 0, 0, 0.3);
#home_first_div {
    background-color: #EA83B5;
    height: 100%;
    opacity: 0.5;
    position: fixed;
    width: 100%;
    z-index: 10001;


<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″>
<jdoc:include type=”modules” name=”firstvisit” style=”raw” />

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