Author
Message
if ($usr['id'] < 1)
{
    $moremetas .= <script type=\"text/javascript\">
           addLoadEvent(sedjs.sedtabs({c:"sedtabs2", e:"click", s:"selected", d:0, f:false })); //первый таб
      </script>";
}
else {
    $moremetas .= <script type=\"text/javascript\">
           addLoadEvent(sedjs.sedtabs({c:"sedtabs2", e:"click", s:"selected", d:1, f:false })); //второй таб
      </script>";
}

 

Forever unshaven, red-eyed, detached from reality, with his cockroaches in my head. And let it always will be!


This post was edited by Amro (12-11-14 21:14 GMT, 3619 days ago)

в итоге получилось как-то так

if ($usr['id'] < 1)
{
$morejavascript .= "
	var test = function(){sedjs.sedtabs({c:'indextabs', e:'click', s:'selected', d:0, f:false })}; addLoadEvent(test);"; //первый таб
}
else {
$morejavascript .= "
	var test = function(){sedjs.sedtabs({c:'indextabs', e:'click', s:'selected', d:1, f:false })}; addLoadEvent(test);"; //второй таб
}

 

Welcome to mother Russia: Putin, medvedi, matrioshka, balalayka, okhuenno!