On my site, I present a slideshow of content, for which I'm using jquery. So the user will click on an arrow and the next div (which is hidden by default) will display. Within each div, (whether showing or not) there are hidden span tags that contain the title of the content the user is looking at and a summary of the content...
<div id="content" style="display:block">
<h2>Relevance of Oceanography</h2>
<p>Some text</p>
<span class="hiddentitle" style="display:none">Relevance of Oceanography</span>
<span class="hiddencontent" style="display:none">Some content</span>
</div>
<div id="content" style="display:none">
<h2>Seafloor Spreading and Earthquake Activity</h2>
<p>Some text</p>
<span class="hiddentitle" style="display:none">Seafloor Spreading and Earthquake Activity</span>
<span class="hiddencontent" style="display:none">Some content</span>
</div>
What I'm trying to do is to replace or update the tag based on the currently displayed div's hiddencontent. Since it's stored in a database, I thought I could just use php, but then, I realized that would probably mean that I'd have to reload the page each time, which kinda defeats the purpose of having a slideshow... But, then, if I use jquery, I'm concerned that search engines won't actually see the meta content, since it would change after the page loads...
Is there a way to do what I'm trying to do here, or am I just SOL?