Right now I have this code:
$("#1").click(function() { load(0); return false; }); $("#2").click(function() { load(1); return false; });
I need something like this:
$("#peremennaya").click(function() { peremennaya1 = peremennaya - 1; load(peremennaya1); return false; }); $("#peremennaya").click(function() { peremennaya1 = peremennaya - 1; load(peremennaya1); return false; });
That is, to catch clicks of links from the ID # number to do the calculation - 1, and load them by calling the load function (the number that has been calculated);
If someone does not understand, I need variables like this:
RewriteRule ^page/([0-9])$ index.php?mode=pages&id=$1