marringi
06-19-2007, 09:30 PM
is is possible use javascript to write in shtml (<!--#include virtual="...)?
I'm using a small javascript to write in info location (document.writeIn)..
This is what I've been trying to use but it is not working:
function lid.markaskor.pr()
{
var paramValue;
var param2Value;
if( paramValue=window.location.search.match(/[?&]year=(\w+)/) )
document.write('<!--#include virtual="cgi-bin/?info=.');
document.write( paramValue[1] );
if( param2Value=window.location.search.match(/[?&]team=(\w+)/) )
document.write('&search=');
document.write( param2Value[1] );
document.write('" -->');
}
I'm using a small javascript to write in info location (document.writeIn)..
This is what I've been trying to use but it is not working:
function lid.markaskor.pr()
{
var paramValue;
var param2Value;
if( paramValue=window.location.search.match(/[?&]year=(\w+)/) )
document.write('<!--#include virtual="cgi-bin/?info=.');
document.write( paramValue[1] );
if( param2Value=window.location.search.match(/[?&]team=(\w+)/) )
document.write('&search=');
document.write( param2Value[1] );
document.write('" -->');
}