DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   HTML and CSS (http://www.daniweb.com/forums/forum143.html)
-   -   Next/Previous Navigation (http://www.daniweb.com/forums/thread63380.html)

Deech86 Nov 30th, 2006 5:52 pm
Next/Previous Navigation
 
How would I go about making Next and Previous links that automatically take you to the proper pages without having to set the hyperlinking on each individual page?

arh Nov 30th, 2006 6:54 pm
Re: Next/Previous Navigation
 
Not quite clear what you are asking. From within a java applet, or just on a normal site? If just on a normal website here is my answer:
Have each file named number 1.html, 2.html etc. In javascript make a variable called i and set it to the current page number (ex: 2). If the user clicks next increment i (ex:3) or decrement it (ex:1). Then go the the page i.html.

jonathan.jbkt Feb 1st, 2007 12:38 am
Re: Next/Previous Navigation
 
I am interested in creating a next navigation that will open the next link in a page. Example:

http://linux1.jbknowledge.com/AJW/AJ...idal/beth.html

When you click on one of the images I would like it to go to the next link on the page.

Phaelax Feb 1st, 2007 4:31 am
Re: Next/Previous Navigation
 
Does you question have anything to do with Java? 'Cause javascript and html have nothing to do with Java.

jonathan.jbkt Feb 1st, 2007 9:29 am
Re: Next/Previous Navigation
 
Quote:

Originally Posted by Phaelax (Post 309323)
Does you question have anything to do with Java? 'Cause javascript and html have nothing to do with Java.

I found this thread last night during a search for a solution. I did not realize that this was in the Java forum. I am very sorry.

Sorry

Deech86 Feb 1st, 2007 1:57 pm
Re: Next/Previous Navigation
 
Thanks, yeah this is what I'm looking for... I wanted to have this work within a normal site. Unfortunately I don't even know how to create variables in javascript or really much of any coding outside of html.

aamufeeth Oct 4th, 2008 4:55 am
Re: Next/Previous Navigation
 
How would I go about making Next and Previous links that automatically take you to the proper pages without having to set the hyperlinking on each individual page?

MidiMagic Oct 5th, 2008 9:21 pm
Re: Next/Previous Navigation
 
There is no such thing. How would it know what the name of the "next " page is, without you telling it?

Set the hyperlinks on each page. That's all you can do without a lot of tricky JS code.


All times are GMT -4. The time now is 12:22 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC