Can you explain how to fit this into an HTML file?
Is this JavaScript?
Would it look like this:
<script type="text/javascript"><!-
function getNumber()
{
var hostname=location.hostname
var uri = location.href;
uri = uri.replace(/^\s*https?[:]
uri = uri.replace(hostname,"");
uri=uri.split("/");
return uri[1];
}
if (uri == null || uri == '' || uri == undefined)
location.href = 'http://www.url1.com';
else
location.href = 'http://www.url2.com/' + uri;
//--></script>
Main Topics
Browse All Topics





by: dsackerPosted on 2008-03-05 at 12:41:09ID: 21054255
You could use something like this:
Select allOpen in new window