View Full Version : save my function in cookie ?

03-20-2013, 02:06 PM
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.

var currentLink = null;

function changeLinkColor(link){
currentLink.style.color = link.style.color; //You may put any color you want
link.style.color = '#003399';
currentLink = link;

<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>

thank you !