[Linux-programlama] Re: menude yer alan linke týklandýgýnda classýnýn deðiþmesi

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Ahmet Yýlmaz (alpim25@gmail.com)
Date: Sat 15 Sep 2007 - 21:19:37 EEST


Merhaba,
bence style tanýmý aþaðýdaki gibi olmalý:
<style>
.out {
        background-color:#FFCC33;
}
.current {
        background-color:#00CC00;
}
</style>
olmalý baþka bir sorun yok.
iyi günler.

2007/9/15, Anýl KARADAÐ <anil.karadag@gmail.com>:
> Merhabalar, hayýrlý ramazanlar
>
> php sayfamda yer alan a tagýnýn classýný js ile deðiþtirmek istiyorum.
> Sayfa açýldýgýnda x linkinin classý "current" dýr. ben y linkine
> týkladýðýmda x linkinin classý "out" y linkinin "current" olmalýdýr
>
> X
>
> ve js kodum
>
> var selected_id = null;
> function changebackground(menuID)
> {
>
> if(selected_id != null) {
> document.getElementById(''+selected_id+'').className = "out";
> }
> document.getElementById(''+menuID+'').className="current";
> selected_id=menuID;
>
> }
>
> Sizce sorun nerede??
>
> _______________________________________________
> Linux-programlama mailing list
> Linux-programlama@liste.linux.org.tr
> http://liste.linux.org.tr/mailman/listinfo/linux-programlama
>
_______________________________________________
Linux-programlama mailing list
Linux-programlama@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.