kurskland,
function createLettersHtml() {
var html = ['<a class="all" href="#">ALL</a><a class="_" href="#">0-9</a>'];
for (i = 1; i < letters.length; i++) {
html.push('<a class="' + letters[i] + '" href="#">' + ((letters[i] == '-') ? '...' : letters[i].toUpperCase()) + '</a>'+(letters[i] == "z" ? "<br>" : ""));
}
return '<div class="ln-letters">' + html.join('') + '</div>' + ((opts.showCounts) ? '<div class="ln-letter-count" style="display:none; position:absolute; left:0; width:20px;">0</div>' : ''); // the styling for ln-letter-count is to give us a starting point for the element, which will be repositioned when made visible (ie, should not need to be styled by the user)
}
Сообщение от iMaxmaxmaximus
|
Администрация javascript.ru. Спасибо.
|
xD))