% function PathInfoToRelativePath(S) { var R = ''; var L = S.length I = 0 while (I < L) { if (S.charAt(I) == '/') R = R + '../' I++ } return R } function QualifyImage(S) { if (Application.Designing) return Application.QualifyFileName("..\\images\\" + S); // relative directory else return PathInfoToRelativePath(Request.PathInfo) + '../images/' + S; // virtual directory } %>
<% e = new Enumerator(Pages) s = '' c = 0 for (; !e.atEnd(); e.moveNext()) { if (e.item().Published) { if (c>0) s += ' | ' if (Page.Name != e.item().Name) s += '' + e.item().Title + '' else s += e.item().Title c++ } } if (c>1) Response.Write(s) %> |