Well basically yes but, doesn't the 1 in initialtab also have to change? If so, and it looks like it does, and looks like we are in luck because it is the same number. Now our receiving code could look like this:
Code:
var value=unescape(window.location.href)
if (value.indexOf('=')!==-1)
value=Math.abs(value.substr(value.indexOf('=')+3,1))
else
value=1
var initialtab=[value, "sc"+value]
We no longer need a separate script, the above code can replace:
Code:
var initialtab=[1, "sc1"]
in the original script. The sending link would be the same as before and this still would only work for sc1 through sc9.
Bookmarks