This worked before October now it does not work. I think I know where the
trouble is but I don't know how to fix it.
function findVerse()
{
var d = new Date();
var str;
if( ( d.getMonth()+1 ) < 10 ) { str = '0'; }
str = str + ( d.getMonth()+1 ) + '/' + d.getDate() + '/';
if( d.getHours() >= 12 ) { str += 'PM'; }
else { str += 'AM'; }
location.href = document.URL + '#' + str;
return true;
}
this part here I believe is causing the trouble;
if( ( d.getMonth()+1 ) < 10 ) { str = '0'; }
str = str + ( d.getMonth()+1 ) + '/' + d.getDate() + '/';
I have looked here but I don't know if I am looking in the right place. I
did not write the script and the person who did is not available.
Can any one point me to a URL that will show me what I should be using to
fix this script?
Any help will be greatly appreciated,
Thanks,
Rhino
trouble is but I don't know how to fix it.
function findVerse()
{
var d = new Date();
var str;
if( ( d.getMonth()+1 ) < 10 ) { str = '0'; }
str = str + ( d.getMonth()+1 ) + '/' + d.getDate() + '/';
if( d.getHours() >= 12 ) { str += 'PM'; }
else { str += 'AM'; }
location.href = document.URL + '#' + str;
return true;
}
this part here I believe is causing the trouble;
if( ( d.getMonth()+1 ) < 10 ) { str = '0'; }
str = str + ( d.getMonth()+1 ) + '/' + d.getDate() + '/';
I have looked here but I don't know if I am looking in the right place. I
did not write the script and the person who did is not available.
Can any one point me to a URL that will show me what I should be using to
fix this script?
Any help will be greatly appreciated,
Thanks,
Rhino
Comment