Click to See Complete Forum and Search --> : Chapter "jumps" for on-line book??


D.S.R.Clark
08-06-2003, 06:50 PM
I'm woking on my updated site. One of the things will be an on-line book from the 1800's.
I'm using an I-Frame-type set-up with the contents of the book on an underlying page. On the I-frame page I would like to put a "chapter jump" becaus there will be 42 chapters. I tried to use bookmarks with hyperlinks next to the I-Frame window, but when clicked, it does away with the I-Frame page and goes diresctly to the page the story text is on.
Here is the code I was trying to use:

<p align="center" style="margin-top: 0; margin-bottom: 0">
<font color="#FFFFFF"><a href="SS2.htm#Chapt.1">1</a></font></p>


* In short a page with an I-Frame with numbers next to it representing the diffeent chapters. I just want the numbes to slide to the desired chapter in the I-Frame window.

PLEASE HELP!!!!:(

Thank in advance, David

Exuro
08-06-2003, 08:52 PM
Try something like this:
<a href="#" onclick="parent.iframeName.location='SS2.htm#Chapt.1'">link</a>

pyro
08-06-2003, 09:14 PM
It would seem to me that this would work fine, and if it does, will even work when javascript is disabled:

<a href="SS2.htm#Chapt.1" target="iframename">1</a>

D.S.R.Clark
08-06-2003, 10:10 PM
Thanks PYRO!! As I have said before... YOU ROCK!:D

To EXURO, thank you, also, for your help!

David:D

pyro
08-06-2003, 10:25 PM
hehe... Happy to help, as always. :)

Exuro
08-06-2003, 11:07 PM
Ah, I hate it when that happens :-p. Been doing so much JavaScript I forget how to do things the simple way, lol! ;)

pyro
08-06-2003, 11:10 PM
Yeah, when writing a javascript, one should always ask if there is a way to do that task using accessable methods. If the answer is "no", they then need to think of a way to provide an alternate way of doing it for those without javascript.