Jag ska använda detta script på min sida.. (tabber menu)
http://www.barelyfitz.com/projects/tabber/example-cookies.html
Men om ni går in och testar scriptet så får man ett alert medelande.. och jag skulle vilja få hjälp om hur man får bort det..
1 svar · 362 visningar · startad av nilleonline
Jag ska använda detta script på min sida.. (tabber menu)
http://www.barelyfitz.com/projects/tabber/example-cookies.html
Men om ni går in och testar scriptet så får man ett alert medelande.. och jag skulle vilja få hjälp om hur man får bort det..
/*==================================================
Set the tabber options (must do this before including tabber.js)
==================================================*/
var tabberOptions = {
'cookie':"tabber", /* Name to use for the cookie */
'onLoad': function(argsObj)
{
var t = argsObj.tabber;
var i;
/* Optional: Add the id of the tabber to the cookie name to allow
for multiple tabber interfaces on the site. If you have
multiple tabber interfaces (even on different pages) I suggest
setting a unique id on each one, to avoid having the cookie set
the wrong tab.
*/
if (t.id) {
t.cookie = t.id + t.cookie;
}
/* If a cookie was previously set, restore the active tab */
i = parseInt(getCookie(t.cookie));
if (isNaN(i)) { return; }
t.tabShow(i);
[red]//alert('getCookie(' + t.cookie + ') = ' + i);[/red]
},
'onClick':function(argsObj)
{
var c = argsObj.tabber.cookie;
var i = argsObj.index;
[red]//alert('setCookie(' + c + ',' + i + ')');[/red]
setCookie(c, i);
}
};