Firstly, you'll need to give the iframe an ID attribute, such as:
Code:
<iframe src="test.htm" id="myiframe"></iframe>
With that done, try this:
1) For Top Navigational Bar 2 , replace the actual URLs inside your js file, such as:
with a JavaScript URL such as:
Code:
javascript:document.getElementById('myiframe').src='about.htm'
This should execute a JavaScript command to load about.htm in the iframe instead.
2) For DHTML Slide Show , modify the function:
Code:
function transport(){
window.location=photoslink[which]
}
to:
Code:
function transport(){
document.getElementById('myiframe').src= photoslink[which]
}
I haven't tested either of the above, but theorically they should work.
P.S: In the future, please follow the following format when posting a question, namely, always posting a link to the script(s) in question like I've done above: http://www.dynamicdrive.com/forums/showthread.php?t=6 Don't post the entire source code here.
Bookmarks