نبذة : هذا الكود يمكنك من انشاء قائمة افقية جميلة بموقعط فقط باستخدام الـ css دوون الحاجة للـ html
تتغيّر خصائص الخانات والوانها بالوقوف عليها
يمكنك تغيير اتجاه القائمة " يمن أو يسار او بالمنتصف " ...... كما موضح داخل الكود
1-- أضف هذا الكود لمنطقة الـ head لموقعك مع استبدال السطرين المشار اليهما بمعلومات موقعك
كود:
<script language="JavaScript1.2">
//استبدل السطرين التاليين بمعلومات موقعك
var bookmarkurl="http://www.arabwebtalk.com"
var bookmarktitle="الويب العربى"
function addbookmark(){
if (dcidocument.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
</script>
2--وأضف هذا الكود فى المكان الذى تريد أن تعرض به رابط " أضف الموقع للمفضّلة"
كود:
<a href="javascript:addbookmark()">أضف الموقع للمفضلة</a>
<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-- ثم قم بنسخ هذا الكود مع تغيير المسميات والروابط بما يناسب موقعك