<div id="staticmenu" class="wireframemenu" style="left: 10px; top: 20px"> <ul> <li><a href="http://www.rojinamohan.blogspot.com/">Home</a></li> <li><a href="http://www.rojinamohan.blogspot.com/search/label/Blogger">Blogger Tips</a></li> <li><a href="http://www.rojinamohan.blogspot.com/search/label/Ubuntu">Ubuntu Tips</a></li> <li><a href="http://www.rojinamohan.blogspot.com/search/label/Download">Download</a></li> <li><a href="http://www.rojinamohan.blogspot.com/2008/08/email-me.html">Email Me</a></li> <li><a href="http://www.rojinamohan.blogspot.com/2008/11/blog-post_08.html">Support Me</a></li> <li><a href="http://feedburner.google.com/fb/a/mailverify?uri=rmh&loc;=en_US">Subscribe</a></li> </ul> </div>
.wireframemenu{
margin-top:20px;
border: 1px solid #C0C0C0;
background-color: #ffffff; /*Background
color*/
width: 115px;
position: absolute;
}
* html .wireframemenu{ /*IE only rule. Original menu width minus all left/right
paddings */
width: 164px;
}
.wireframemenu ul{
padding: 4px 3px;
margin: 0;
list-style-type: none;
}
.wireframemenu a{
font: 14px Verdana;
padding: 4px 3px;
display: block;
width: 100%; /*Define width for IE6's sake*/
color: #ff0000; /*Link Color*/
text-decoration: none;
border-bottom: 1px solid #C0C0C0;
}
.wireframemenu a:visited{
color: #595959;
}
html>body .wireframemenu a{ /*Non IE rule*/
width: auto;
}
.wireframemenu a:hover{
color: #0000ff;
border-right:2px solid black;
}
]]></b:skin>
<script type='text/javascript'>
//<![CDATA[
/***********************************************
* Static Menu script- by JavaScript Kit (www.javascriptkit.com)
* This notice must stay intact for usage
* Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and
100s more
* Modified by: http://www.banglahacks.com
***********************************************/
//ids of menus to keep static on page (must be absolutely positioned, with
left/top attribute added inline inside tag)
//Separate multiple ids with a comma (ie: ["menu1",
"menu2"]
var staticmenuids=["staticmenu"]
var staticmenuoffsetY=[]
function getmenuoffsetY(){
for (var i=0; i<staticmenuids.length; i++){
var currentmenu=document.getElementById(staticmenuids[i])
staticmenuoffsetY.push(isNaN(parseInt(currentmenu.style.top))? 0 :
parseInt(currentmenu.style.top))
}
initstaticmenu()
}
function initstaticmenu(){
var iebody=(document.compatMode &&
document.compatMode!="BackCompat")? document.documentElement :
document.body
var topcorner=(window.pageYOffset)? window.pageYOffset : iebody.scrollTop
for (var i=0; i<staticmenuids.length; i++)
document.getElementById(staticmenuids[i]).style.top=topcorner+staticmenuoffsetY[i]+"px"
setTimeout("initstaticmenu()", 100)
}
if (window.addEventListener)
window.addEventListener("load", getmenuoffsetY, false)
else if (window.attachEvent)
window.attachEvent("onload", getmenuoffsetY)
//]]>
</script>
কোডটি ডাউনলোড করার জন্য ক্লিক করুন এখানে।
0 টি মন্তব্য:
একটি মন্তব্য পোস্ট করুন