/* The positions array contains each slide's commulutative offset from the left part of the container */
if(!$(this).width())
{
alert("Please, fill in width & height for all your images!");
return false;
}
});
$('#slides').width(totWidth);
Если на js:
сначала узнаёте саму путь ссылки elem.getAttribute("href");
после чего изменяете данное значение с помощью регулярных выражений и
elem.setAttribute(name, value) – устанавливает атрибут