P
Peter Goldfield
when I try and copy a script that you wonderful people have suggested I use
from here to the html section in Frontpage it gets sort of garbled - it's
obvious I know nothing of tags etc - anyone help?
To show willing I guess it's something to do with the line breaks <BR> -
this:
function qsobj (){
var qvbl;
var qstring = "" + document.location.search.substring(1);
if (qstring != ""){
var qpairs = qstring.split("&");
for (i=0; i < qpairs.length; i++) {
qvbl = qpairs.split("=");
this["" + qvbl[0]] = unescape(qvbl[1].replace
("+"," "));
}
}
}
function getqsvar(qsvar){
if (qstr[qsvar] == null){
return "";
}else{
return qstr[qsvar];
}
}
var qstr = new qsobj();
becomes this:
function qsobj (){<BR> var qvbl;<BR> var qstring = "" +
document.location.search.substring(1);<BR> if (qstring != ""){<BR> var
qpairs
= qstring.split("&");<BR> for (i=0; i < qpairs.length; i++) {<BR>
qvbl = qpairs.split("=");<BR> this["" + qvbl[0]] =
unescape(qvbl[1].replace<BR>("+"," "));<BR> }<BR> }<BR>}<BR>function
getqsvar(qsvar){<BR> if (qstr[qsvar] == null){<BR> return "";<BR>
}else{<BR> return qstr[qsvar];<BR> }<BR>}<BR>var qstr = new qsobj();<BR>
from here to the html section in Frontpage it gets sort of garbled - it's
obvious I know nothing of tags etc - anyone help?
To show willing I guess it's something to do with the line breaks <BR> -
this:
function qsobj (){
var qvbl;
var qstring = "" + document.location.search.substring(1);
if (qstring != ""){
var qpairs = qstring.split("&");
for (i=0; i < qpairs.length; i++) {
qvbl = qpairs.split("=");
this["" + qvbl[0]] = unescape(qvbl[1].replace
("+"," "));
}
}
}
function getqsvar(qsvar){
if (qstr[qsvar] == null){
return "";
}else{
return qstr[qsvar];
}
}
var qstr = new qsobj();
becomes this:
function qsobj (){<BR> var qvbl;<BR> var qstring = "" +
document.location.search.substring(1);<BR> if (qstring != ""){<BR> var
qpairs
= qstring.split("&");<BR> for (i=0; i < qpairs.length; i++) {<BR>
qvbl = qpairs.split("=");<BR> this["" + qvbl[0]] =
unescape(qvbl[1].replace<BR>("+"," "));<BR> }<BR> }<BR>}<BR>function
getqsvar(qsvar){<BR> if (qstr[qsvar] == null){<BR> return "";<BR>
}else{<BR> return qstr[qsvar];<BR> }<BR>}<BR>var qstr = new qsobj();<BR>