XLT blogas

2008-06-03

Nuorodos aprašymas su CSS ir uždarymo mygtuku

Įrašyta kategorijoje: php — dainos @ 17:35
Tags: ,

<html>
<head>
<title>Nuorodos</title>
<style>
#messageBox{
border-right: 1px solid #000000;
position: absolute;
width: 217px;
height: auto;
z-index: 1;
background-color: #FFFFCF;
border-style: solid;
border-width: 1px;
display:none;
}
#closeButt{
width: 100%;
height: 20px;
z-index: 1;
cursor: pointer;
left: 0px;
top: 0px;
background-color: #808080;
}
#contents{
width: 100%;
height: auto;
z-index: 2;
}
</style>
<script language=”javascript”>
function show(obj,msg){
messageBox.style.top=obj.offsetTop
messageBox.style.left=obj.offsetLeft+obj.offsetWidth+5
contents.innerHTML=msg
messageBox.style.display=”block”
}
</script>
</head>

<body>

<p><a onmouseover=”show(this,’this is my message#1 <br><h1>hhghgh</h1><br><br>hhgfgffh<br><br>hhgfgffh <a href=zip.php>zip.php</a> hjhjhj <br><br>hjghjghj hghjghjghjhjghj hjghj jh  ‘)” href=”http://www.google.com”>link1: go to google</a></p>
<p><a onmouseover=”show(this,’this is my message#2′)” href=”http://www.msn.com”>link2: go to msn</a></p>
<p><a onmouseover=”show(this,’this is my message#3′)” href=”http://www.yahoo.com/”>link3: go to DIC</a></p>

<div id=”messageBox”>
<div onclick=”messageBox.style.display=’none’” id=”closeButt”>x Click to close</div>
<div id=”contents”></div>
</div>
</body>
</html>

No Comments Yet »

Komentarų dar nėra.

RSS feed for comments on this post. TrackBack URI

Pakomentuokite

Blog at WordPress.com.