URL params would do this job:
Link example:
<a id="link1" href="yourpage?id=link1">Link</a>
On the page that loads, running this script will alert the id of the slide:
$(document).ready(function(){
urlParam = document.URL.substr(document.URL.lastIndexOf('=') + 1);
alert(urlParam);
});
You'd need to adjust this code if you had other URL parameters going on as well, but the concept is there and it works in this basic form.
Once you have that data on the page, you can do whatever you need with it, such as show the correct slide.