S
Stillpoint Media
First of all I confess, I do not know much about javascript. The
problem is the following.
I found a script to invoke a popup newsletter subscribe box using
jquery. However the script only works when accessed by the direct URL,
not via the SEO-friendly URL. So...
This works:
http://www.example.com/test/php?id=1
This doesn't:
http://www.example.com/test/1/seo-friendly
This is the javascript call. Thanks in advance!
<script type="text/javascript">
jQuery(document).ready(function(){
if (document.cookie.indexOf('visited=true') == -1) {
var fifteenDays = 0;
var expires = new Date((new Date()).valueOf() + fifteenDays);
document.cookie = "visited=true;expires=" + expires.toUTCString();
$.colorbox({width:"580px", inline:true, href:"#subscribe"});
}
});
</script>
problem is the following.
I found a script to invoke a popup newsletter subscribe box using
jquery. However the script only works when accessed by the direct URL,
not via the SEO-friendly URL. So...
This works:
http://www.example.com/test/php?id=1
This doesn't:
http://www.example.com/test/1/seo-friendly
This is the javascript call. Thanks in advance!
<script type="text/javascript">
jQuery(document).ready(function(){
if (document.cookie.indexOf('visited=true') == -1) {
var fifteenDays = 0;
var expires = new Date((new Date()).valueOf() + fifteenDays);
document.cookie = "visited=true;expires=" + expires.toUTCString();
$.colorbox({width:"580px", inline:true, href:"#subscribe"});
}
});
</script>