il funzionamento è abbastanza semplice... associa ai link una classe
mese_1, mese_2... ecc...
Può andare?codice:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="it" xml:lang="it"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>xhtml 1.0</title> <script type="text/javascript"> // <![CDATA[ function showOnlyCurrentMonthLink() { mCur = ((new Date).getMonth())+1; l = document.getElementsByTagName('a'); for (i=0; i<l.length; i++) { mLink = l[i].className.match(/\d+$/); l[i].style.display = (mLink == mCur)? 'block' : 'none'; } } window.onload = showOnlyCurrentMonthLink; // ]]> </script> </head> <body> Set Ott Nov </body> </html>

Rispondi quotando