I am making a website but I just want to display a notice (only once when member open website) . This notice must display just above the html homepage (because homepage may change from member to member). I want to use 'opacity' to make a fade page above the homepage (so that members can also see the homepage beside the four sides of notice), I can not use "alert" because the notice contains pictures, code and some extra feature of codes like front color. So far I've found 'opacity' uses the above image but how can I use 'opacity' above a html homepage of my site ???
<html>
<head>
<style>
div.bacgro
{
width:500px;
height:250px;
background:url of a jpg file;
border:2px solid black;
}
div.trabox
{
width:400px;
height:180px;
margin:30px 50px;
background-color:#ffffff;
border:1px solid black;
opacity:0.6;
filter:alpha(opacity=60); /* For IE8 and earlier */
}
div.trabox p
{
margin:30px 40px;
font-weight:bold;
color:#000000;
}
</style>
</head>
<body>
<div class="bacgro">
<div class="trabox">
<p>This is some text that is placed in the transparent box. It may contain some code and small profile image also ...
</p>
</div>
</div>
</body>
</html>
but the most importantly I want to replace the background:url of a jpg file;
in to a background:"url of my site's homepage";
I'm not quite sure what you're asking but if you want an alert or little message you have a few options.
Alert Box
Or you could try this
Those are two common ways to do a pop-up message.