hi, i got a litle application that made the the font go bigger when you click on the button. When a size is selected, the button change color. I want this color to stay on the button even when we refresh the page. help plz.
Code:var currentLink = null; function changeLinkColor(link){ if(currentLink!=null){ currentLink.style.color = link.style.color; //You may put any color you want } link.style.color = '#003399'; currentLink = link; }thank you !Code:<a id="police_reg" href="javascript:void(0);" onclick="changemysize(15); changeLinkColor(this)" title="police régulière">A</a></font> <a id="police_grosse" href="javascript:void(0);" onclick="changemysize(18);changeLinkColor(this)" title="grossir police">A</a>



Reply With Quote
Bookmarks