webForumDet fria alternativet

Få bort alert medelande?

1 svar · 362 visningar · startad av nilleonline

nilleonlineMedlem sedan sep. 2006119 inlägg
#1

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

DenkanMedlem sedan juni 2002256 inlägg
#2
/*==================================================
  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);
  }
};
123 ms totalt · 3 externa anrop · v20260731065814-full.cf67ef55
0 ms — hämta forumlista (cache)
0 ms — hämta statistik (cache)
120 ms — hämta tråd, inlägg och bilagor (db)