This is classic iframe code. All I want is to show different things when you click different links.
I want to display different galleries in wordpress on a page with different links. I don’t wanna code different html’s for each of them
<iframe id="myIframe" src="about:blank" height="200" width="500"></iframe>
<br />
<a href="http://www.blogger.com" target="myIframe">Blogger</a><br />
<a href="http://www.cnn.com" target="myIframe">CNN</a><br />
<a href="http://www.google.com" target="myIframe">Google</a><br />
What you’re trying to do is show and hide specific parts of the page when clicking on a link. You don’t need to use iframes for that. I think you’d better use hidden div’s for this, or maybe even an ajax call to load the different galleries. I’ll show you the hidden divs approach :
Here’s a js fiddle: http://jsfiddle.net/nV5vy/