How do I add next and back buttons?

Discussion in 'HTML & Website Design' started by yousellstuff1, Nov 16, 2010.

  1. #1
    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
     
    yousellstuff1, Nov 16, 2010 IP
  2. workingsmart

    workingsmart Well-Known Member

    Messages:
    411
    Likes Received:
    12
    Best Answers:
    9
    Trophy Points:
    120
    #2
    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!~
     
    workingsmart, Nov 16, 2010 IP
  3. ronc0011

    ronc0011 Peon

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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.
     
    ronc0011, Nov 16, 2010 IP
  4. workingsmart

    workingsmart Well-Known Member

    Messages:
    411
    Likes Received:
    12
    Best Answers:
    9
    Trophy Points:
    120
    #4
    I believe they are looking for dynamic fed next buttons with content... Am I wrong?
     
    workingsmart, Nov 16, 2010 IP
  5. ronc0011

    ronc0011 Peon

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I dono, He said a "static" page. I'm thinking straight html.
     
    ronc0011, Nov 16, 2010 IP
  6. yousellstuff1

    yousellstuff1 Active Member

    Messages:
    1,195
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    75
    #6
    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, Nov 16, 2010 IP
  7. workingsmart

    workingsmart Well-Known Member

    Messages:
    411
    Likes Received:
    12
    Best Answers:
    9
    Trophy Points:
    120
    #7
    @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!~
     
    workingsmart, Nov 17, 2010 IP
  8. yousellstuff1

    yousellstuff1 Active Member

    Messages:
    1,195
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    75
    #8
    Can you possibly point me somewhere on how to go about using php? I tried searching google, but had no luck
     
    yousellstuff1, Nov 17, 2010 IP
  9. workingsmart

    workingsmart Well-Known Member

    Messages:
    411
    Likes Received:
    12
    Best Answers:
    9
    Trophy Points:
    120
    #9
    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 :)
     
    workingsmart, Nov 17, 2010 IP
  10. hypokill

    hypokill Well-Known Member

    Messages:
    271
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #10
    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.
     
    hypokill, Nov 17, 2010 IP
  11. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #11
    WordPress can be used as CMS back-end, there you have tons of plugins... and optional pagination plugins
     
    CSM, Nov 17, 2010 IP
  12. yousellstuff1

    yousellstuff1 Active Member

    Messages:
    1,195
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    75
    #12
    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
     
    yousellstuff1, Nov 18, 2010 IP
  13. hypokill

    hypokill Well-Known Member

    Messages:
    271
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #13
    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
     
    hypokill, Nov 18, 2010 IP
  14. jasedona

    jasedona Peon

    Messages:
    88
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #14
    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.
     
    jasedona, Nov 18, 2010 IP
  15. yousellstuff1

    yousellstuff1 Active Member

    Messages:
    1,195
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    75
    #15
    i will check it out, thanks
     
    yousellstuff1, Nov 21, 2010 IP
  16. calvin4u

    calvin4u Peon

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    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.
     
    calvin4u, Jan 27, 2011 IP