var sourceCode = "
content valign=top> Row1ContentLayoutTable width=100% height=1 cellpadding=0 cellspacing=0 border=0> top> 100% border=0 cellpadding=0 cellspacing=0 height=100%> | top> ";
var baseHref = "http://www.optimum.net/";
var baseHref2 = "http://www.optimum.net/";
// document.writeln('');
var dblquo = /()/g;
var sourceCode = sourceCode.replace(dblquo,'"');
var emptySrc = /(src="\/)/ig;
var sourceCode = sourceCode.replace(emptySrc,'src="' + baseHref2);
var emptyHref1 = /(href\s*=\s*"\/)/ig;
var sourceCode = sourceCode.replace(emptyHref1,'href="' + baseHref);
var emptyHref2 = /(href\s*=\s*'\/)/ig;
var sourceCode = sourceCode.replace(emptyHref2,"href='" + baseHref);
var emptyBg = /(background="\/)/ig;
var sourceCode = sourceCode.replace(emptyBg,'background="' + baseHref2);
var newwinJS = /(window.open\('\/)/ig;
var sourceCode = sourceCode.replace(newwinJS,"window.open('" + baseHref);
var jsimgstr1 = /"\/images/ig;
var sourceCode = sourceCode.replace(jsimgstr1,'"' + baseHref2 + "images");
var jsimgstr2 = /'\/images/ig;
var sourceCode = sourceCode.replace(jsimgstr2,"'" + baseHref2 + "images");
var BannerFix = /(\/BannerClick)/g;
var sourceCode = sourceCode.replace(BannerFix,baseHref + "BannerClick");
// var SendUrlFix = /(\/SendToUrl)/g;
// var sourceCode = sourceCode.replace(SendUrlFix,baseHref + "SendToUrl");
var BgroundFix = /(url\(\/)/g;
var sourceCode = sourceCode.replace(BgroundFix,"url(" + baseHref2 + "/");
var lineArray = sourceCode.split("");
for (v=0; v < lineArray.length; v++) { document.writeln(lineArray[v]); }
| | |