Rollover Menü Kodu
Rollover Nedir.?.
Rollover; Mauseye göre değişimdir! Mauseden önce ve Mauseden sonra sürekli değişir! Mause ile üzerine gelindiğinde faklı üzerinden çekildikten sonrada farklı bir anlamda kullanılabilir!
Örneğin; Normal bir resimi Mauseyle üzerine gelerek değiştirmek mümkündür!
Bende bu özellikten yola çıkarak menü yaptım! Menü misafirlere ayrı,üyelere ayrıdır!=)
Görüntü 1.Normal Hali, 2.Mauseyle üzerine gelinmiş hali;
Rollover; Mauseye göre değişimdir! Mauseden önce ve Mauseden sonra sürekli değişir! Mause ile üzerine gelindiğinde faklı üzerinden çekildikten sonrada farklı bir anlamda kullanılabilir!
Örneğin; Normal bir resimi Mauseyle üzerine gelerek değiştirmek mümkündür!
Bende bu özellikten yola çıkarak menü yaptım! Menü misafirlere ayrı,üyelere ayrıdır!=)
Görüntü 1.Normal Hali, 2.Mauseyle üzerine gelinmiş hali;
<table class="forumline" width="100%" border="0" cellpadding="0" cellspacing="1"><tbody><tr><th class="catLeft" height="20">
<div align="center"><span class="genmed module-title"><font color="#FF0000"><b>~ MENÜ ~</b></font>
</span></div></th></tr><tr><td class="row1" align="center"><div style="background-color:#000000">
<!-- BEGIN switch_user_logged_in -->
<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<body onLoad="MM_preloadImages('http://img216.imageshack.us/img216/5980/anasayfa2.gif','http://img216.imageshack.us/img216/1801/ara2.gif','http://img160.imageshack.us/img160/3976/uyeler2.gif','http://img142.imageshack.us/img142/4156/mesajlar2.gif','http://img6.imageshack.us/img6/872/profil2.gif','http://img25.imageshack.us/img25/9372/cikis2.gif','http://img160.imageshack.us/img160/8331/yardim2.gif')"><a href="/forum.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1','','http://img216.imageshack.us/img216/5980/anasayfa2.gif',1)"><img src="http://img27.imageshack.us/img27/6682/anasayfa.gif" name="Image1" width="50" height="80" border="0"></a><a href="/search.forum" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image2','','http://img216.imageshack.us/img216/1801/ara2.gif',1)"><img src="http://img25.imageshack.us/img25/7757/ara.gif" name="Image2" width="50" height="80" border="0"></a><a href="/faq.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image7','','http://img160.imageshack.us/img160/8331/yardim2.gif',1)"><img src="http://img160.imageshack.us/img160/545/yardim.gif" name="Image7" width="50" height="80" border="0"></a><a href="/memberlist.forum" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image3','','http://img160.imageshack.us/img160/3976/uyeler2.gif',1)"><img src="http://img160.imageshack.us/img160/6168/uyeler.gif" name="Image3" width="50" height="80" border="0"></a><a href="/msg.forum?folder=inbox" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image4','','http://img142.imageshack.us/img142/4156/mesajlar2.gif',1)"><img src="http://img142.imageshack.us/img142/1010/mesajlar.gif" name="Image4" width="50" height="80" border="0"></a><a href="/profile.forum?mode=editprofile" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','http://img6.imageshack.us/img6/872/profil2.gif',1)"><img src="http://img23.imageshack.us/img23/1865/profilysy.gif" name="Image5" width="50" height="80" border="0"></a><a href="/login.forum?logout=true" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image6','','http://img25.imageshack.us/img25/9372/cikis2.gif',1)"><img src="http://img23.imageshack.us/img23/7190/cikis.gif" name="Image6" width="50" height="80" border="0"></a>
<!-- END switch_user_logged_in -->
<!-- BEGIN switch_user_logged_out -->
<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<body onLoad="MM_preloadImages('http://img216.imageshack.us/img216/5980/anasayfa2.gif','http://img216.imageshack.us/img216/1801/ara2.gif','http://img160.imageshack.us/img160/8331/yardim2.gif','http://img19.imageshack.us/img19/8036/kayit2.gif','http://img22.imageshack.us/img22/2237/giris2.gif')"><a href="/forum.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1','','http://img216.imageshack.us/img216/5980/anasayfa2.gif',1)"><img src="http://img27.imageshack.us/img27/6682/anasayfa.gif" name="Image1" width="50" height="80" border="0"></a><a href="/search.forum" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image2','','http://img216.imageshack.us/img216/1801/ara2.gif',1)"><img src="http://img25.imageshack.us/img25/7757/ara.gif" name="Image2" width="50" height="80" border="0"></a><a href="/faq.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image3','','http://img160.imageshack.us/img160/8331/yardim2.gif',1)"><img src="http://img160.imageshack.us/img160/545/yardim.gif" name="Image3" width="50" height="80" border="0"></a><a href="/profile.forum?mode=register" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image4','','http://img19.imageshack.us/img19/8036/kayit2.gif',1)"><img src="http://img238.imageshack.us/img238/3792/kayitn.gif" name="Image4" width="50" height="80" border="0"></a><a href="/login.forum?connexion" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','http://img22.imageshack.us/img22/2237/giris2.gif',1)"><img src="http://img232.imageshack.us/img232/2598/giris.gif" name="Image5" width="50" height="80" border="0"></a>
<!-- END switch_user_logged_out --><div align="right"><font color="#FFFFFF" size="1">By TuaL</font></div></div></td></tr></tbody></table>