<style type="text/css">
/* remove the margin and bullets, set the padding for this demo only*/
.neon {margin:0 0 50px 0; padding:25px 0 100px 15px; list-style:none; background:#000; width:720px;}
/* display the list items inline with a right margin to space the buttons. Use this to pre-load the hover image */
.neon li {display:inline; float:left; background:url(http://www.cssplay.co.uk/menus/neon_on.gif);}
/* style the links and place the background image to start from left edge */
.neon li a {display:block; height:32px; float:left; background:url(http://www.cssplay.co.uk/menus/neon_off.gif); text-decoration:none; font-size:10px; font-family:arial, sans-serif; letter-spacing:1px; line-height:36px;}
/* style the b element to posiition it to the right by 20 pixels and even out the text with 20 pixel right padding */
.neon li a b {margin:0 0 0 40px; display:inline; float:left; height:32px; background:url(neon_off.gif) right top; padding:0 40px 0 0; color:#fff;}
/* style the link hover and the link hover b to replace the background image - border:0 needed for IE6 to work */
.neon li a:hover, .neon li a:hover b {border:0; background-image:url(neon_on.gif); cursor:pointer; color:#000;}
.neon li a.current, .neon li a.current b, .neon li a.current:hover , .neon li a.current:hover b {background-image:url(neon_on.gif); color:#000; cursor:default;}
</style>
2-- ثم قم بنسخ هذا الكود مع تغيير المسميات والروابط بما يناسب موقعك
<style type="text/css">
.menu {
position:relative;
z-index:1000;
font-size:90%;
height:235px;
margin:25px 0 0 15px; /* this page only */
}
/* remove all the bullets, borders and padding from the default list styling */
.menu ul {
padding:0;
margin:0;
list-style-type:none;
width:150px;
position:relative;
border:1px solid #888;
border-width:1px 1px 0 1px;
background:#9bb;
}
.menu li {
background:transparent;
height:26px;
}
* html .menu li {margin-left:-16px; margin-lef\t:0;}
/* get rid of the table */
.menu table {position:absolute; border-collapse:collapse; top:0; left:0; z-index:100; font-size:1em; width:0; height:0;}
/* style the links */
.menu a, .menu a:visited {
display:block;
text-decoration:none;
height:25px;
line-height:25px;
width:150px;
color:#000;
text-indent:5px;
border-bottom:1px solid #888;
background:transparent;
}
/* style the link hover */
* html .menu a:hover {color:#fff; background:#999;}
.menu :hover > a {
color:#fff;
background:#999;
}
/* hide the sub levels and give them a positon absolute so that they take up no room */
.menu ul ul {
visibility:hidden;
position:absolute;
top:-1px;
left:100px;
}
/* make the second level visible when hover on first level list OR link */
.menu ul li:hover ul,
.menu ul a:hover ul {
visibility:visible;
background:#dde;
}
/* keep the third level hidden when you hover on first level list OR link */
.menu ul :hover ul ul{
visibility:hidden;
}
/* keep the fourth level hidden when you hover on second level list OR link */
.menu ul :hover ul :hover ul ul{
visibility:hidden;
}
/* make the third level visible when you hover over second level list OR link */
.menu ul :hover ul :hover ul{
visibility:visible;
background:#ded;
}
/* make the fourth level visible when you hover over third level list OR link */
.menu ul :hover ul :hover ul :hover ul {
visibility:visible;
background:#edd;
}
.menu ul.top2 {top:25px;}
.menu ul.top3 {top:51px;}
.menu ul.top4 {top:77px;}
.menu ul.top5 {top:103px;}
.menu ul.top6 {top:129px;}
.menu ul.top7 {top:155px;}
</style>
<!--[if IE 7]>
<style type="text/css">
.menu li {float:left;}
</style>
<![endif]-->
2-- انسخ الكود التالى بالمكان الذى تريد القائمة به
<div class="menu">
<ul>
<li><a href="#nogo">الرابط الأول</a></li>
<li><a href="#nogo">الرابط الثانى</a></li>
<li><a href="#nogo">الرابط الثالث »<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul class="top3">
<li><a href="#nogo">فرع أول 1</a></li>
<li><a href="#nogo">فرع أول 2 »<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul class="top2">
<li><a href="#nogo">فرع ثانى 1</a></li>
<li><a href="#nogo">فرع ثانى 2 »<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul class="top2">
<li><a href="#nogo">فرع ثالث 1</a></li>
<li><a href="#nogo">فرع ثالث 2</a></li>
<li><a href="#nogo">فرع ثالث 3</a></li>
<li><a href="#nogo">فرع ثالث4</a></li>
<li><a href="#nogo"> فرع ثالث 5</a></li>
<li><a href="#nogo"> فرع ثالث 6</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li><a href="#nogo">فرع ثانى 3 »<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul class="top3">
<li><a href="#nogo">فرع ثالث 1</a></li>
<li><a href="#nogo">فرع ثالث 2</a></li>
<li><a href="#nogo">فرع ثالث 4</a></li>
<li><a href="#nogo"> فرع ثالث 5</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li><a href="#nogo">فرع اول 3</a></li>
<li><a href="#nogo">فرع اول 4</a></li>
<li><a href="#nogo"> فرع اول 5</a></li>
<li><a href="#nogo"> فرع اول 6</a></li>
<li><a href="#nogo">فرع اول متفرع »<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul class="top7">
<li><a href="#nogo">فرع ثاتى 2 أ »<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul class="top1">
<li><a href="#nogo"> فرع ثالث أ</a></li>
<li><a href="#nogo">فرع ثالث ب</a></li>
<li><a href="#nogo"> فرع ثالث ج</a></li>
<li><a href="#nogo">فرع ثالث د</a></li>
<li><a href="#nogo"> فرع ثالث هـ</a></li>
<li><a href="#nogo">فرع ثالث و</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li><a href="#nogo">فرع ثانى </a></li>
<li><a href="#nogo">فرع ثانى متفرع »<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul class="top3">
<li><a href="#nogo">فرع ثالث 2أ</a></li>
<li><a href="#nogo">فرع ثالث 2 ب</a></li>
<li><a href="#nogo"> فرع ثالث 2 ج</a></li>
<li><a href="#nogo"> فرع ثالث 2 د</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li><a href="#nogo">فرع ثانى ج</a></li>
<li><a href="#nogo">فرع ثانى د</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li><a href="#nogo">فرع اول 7</a></li>
<li><a href="#nogo">فرع اول 8</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li><a href="#nogo">رابط 4</a></li>
<li><a href="#nogo">رابط 5</a></li>
<li><a href="#nogo">رابط 6</a></li>
</ul>
</div>
بواسطة : محمّد نور
06-01-2008
الزيارات 301
206 بايت
نبذة : هذا الكود يمكنّك من انشاء فريم بموقعك .. قد يكون داخل بلوك أو بالمكان الذى تريد
هذا الفريم يحتوى على مجموعة إعلانات أو رسائل أو نبذة أخبار أو نبذة مقالات
منسّقة بالفرونت بيج
وبالتالى يمكن أن تحتوى على رابط وبعض الكلمات مع صورة
أو كما تريد من المحتوى
يتمّ التبديل بين أكثر من رسالة " بهذا الكود 4 رسائل " بحسب الزمن الذى ترغب فيه وتقوم بتحديده بالكود