Before I was looking for a script which instantly redirects the visitor to another url. I was provided with one at another forum, here it is here:
Can anyone help me with this blogspot script?
7
Before I was looking for a script which instantly redirects the visitor to another url.
I was provided with one at another forum, here it is here:
<script type='text/javascript'>
var d='<data:blog.url/>';
d=d.replace(/.*\/\/[^\/]*/, '');
location.href = 'http://insertyoursiteurlhere.com/';
</script>
I put it under the head part of the blogspot html, and it does work, but for some reason it automatically end up like this after I save it:
<script type='text/javascript'>
var d='<data:blog.url/>';
d=d.replace(/.*\/\/[^\/]*/, '');
location.href = 'http://insertyoursiteurlhere.com/';
</script>
It adds a ' to the end of the destination url, which directs the visitor to a 404 error page, and this is no good.
Is there anything I can do about this?
I was provided with one at another forum, here it is here:
<script type='text/javascript'>
var d='<data:blog.url/>';
d=d.replace(/.*\/\/[^\/]*/, '');
location.href = 'http://insertyoursiteurlhere.com/';
</script>
I put it under the head part of the blogspot html, and it does work, but for some reason it automatically end up like this after I save it:
<script type='text/javascript'>
var d='<data:blog.url/>';
d=d.replace(/.*\/\/[^\/]*/, '');
location.href = 'http://insertyoursiteurlhere.com/';
</script>
It adds a ' to the end of the destination url, which directs the visitor to a 404 error page, and this is no good.
Is there anything I can do about this?
- karmadog
- noah.whitmore
- [ 1 ] Thanks
- [1] reply
- David Beroff
- [ 1 ] Thanks
- [1] reply
- noah.whitmore
- Lokki08
Next Topics on Trending Feed
-
7