No, it isn't possible, since the code is executed server-side before the Javascript is even sent to the browser. Even if it could be done (which it probably can with some escaping of quotes server-side, but I don't think SSI is capable of this and it would be horribly inefficient anyway because you'd have to load all the pages into the client's memory) it shouldn't be. There's no reason the above code can't be done entirely server-side.
lid.markaskor.pr is also an invalid function name. You could do:
Code:
window['lid.markaskor.pr'] = function() {
/* ... code ... */
};
// and call it like:
window['lid.markaskor.pr']();
or:
Code:
var lid = {
markaskor : {
pr : function() {
/* ... code ... */
}
}
};
// and call it like:
lid.markaskor.pr();
but not:
Code:
function lid.markaskor.pr() {
/* ... code ... */
}
Bookmarks