I have a static website that I upload one new post a day, and I would like to add a next and back button but I am not sure how to go about that. I tried doing some research and some said I must use an RSS feed. Is this true? If so, how do I go about creating an rss feed from a static website (preferably free). the website is www.thatsamusing.com Thanks Brandon
you could use magpie rss to parse the feed..... Back button, just use javascript... <a href="javascript:history.go(-1);" title="Go Back">Go Back</a> Code (markup): Cheers!~
You don't need an RSS feed to add next & back buttons to a static site. All you need is a button graphic and the code that you will put on each page. Basically you are going to use anchor tags <a href="yourpage.html"><img src="yourbuttonImage.gif" /></a> Code (markup): The first part of this link / tag is the opening anchor tag in the tag is the reference to the page you want to go to i.e. "yourpage.html". That closes the opening anchor tag. Inside the anchor tag you would place an "img" or image tag. In the opening "img" tag is the src reference where you provide the path to your button graphic. This tag looks like this <img src="/images/buttonGif.gif"/> Code (markup): Notice the "/" this means it is one level up. "./" means it is two levels up and "../" means start from the root folder i.e. the folder that your site is contained in. So if your page is in the root folder and you images are stored in a folder called "images" the path would be "images/buttonGif.gif.html". You would have to write this code for every page on your site. Which is basically just copy and paste and then edit the code on each page.
I was just wondering if there was any other way, other than placing the exact link to the next page. Like a randomize button which would allow you to go to a different page each time u press it.
@yousellstuff1 Not in an HTML static environment..... Like I stated earlier, the back button can be done with javascript... but a "pagination" or "next" page without being able to determine a variable for the next page, there is no way other than hard coding a link to a page that you want to be "next".. Using php/asp, you could randomize a "folder" of files to be randomly chosen as "next" or create an order of files for pagination.. Hope that helps! Cheers!~
Can you possibly point me somewhere on how to go about using php? I tried searching google, but had no luck
To do what exactly, is what I really don't know... I mean if this is just posting content, why not convert your site to a Wordpress site or something?... This way all of this is already done for you?... At that point would be just be a matter of integrating your current website design into a wordpress theme.... If I'm missing something, please supply more details or feel free to PM me... Cheers!!~ P.S. - How is it in Cali today?... Nice but windy here in the big apple today
I also agree, i do believe a "pagination" is what your looking for. Though i don't believe you should attempt to create something like this without some good knowledge of PHP. I agree with workingsmart. Something like wordpress would be more suited to your situation.
WordPress can be used as CMS back-end, there you have tons of plugins... and optional pagination plugins
Thats what I wanted to do, I am just not skilled in wordpress designs and I want to keep the same very simple design I have right now. And Cali couldn't be better, a good 80 degrees but it starting to get a bit colder, still not bad at all. I will check into it, I have a little php knowledge but not much. Thanks again
A pagination script can seem a bit daunting at first but defiantly have a look into it if you already have some PHP knowledge Cheers
You'll have to post more information about specifically what type of problem you're facing, along with potentially some type of high-level architecture of how your page is set up.
The best thing that you can do is manually code for it, creating a template to make everything much easier. However, if you want a more dynamic setup, then you need to do a few more work.