View Single Post
06-05-2008, 06:33 PM
#2
G-Sun is offline G-Sun
Status: Member
Join date: Feb 2008
Location: Norway
Expertise:
Software:
 
Posts: 101
iTrader: 0 / 0%
 

G-Sun is on a distinguished road

  Old

Ok, I made a different approach.
Since I'm naming my files 11.html, 12.html and so on, all I needed was:
Code:
var tr = window.location.pathname
//var tr = document.URL
len = tr.length
var filename = tr.substring(len-7,len-5);
I think that will do it for me..