Sunamena Posted November 29, 2015 Share Posted November 29, 2015 Current page = "yoursite.com/chptr2.php"IF "yoursite.com/chptr(+1 from current number).php" existsInclude this HTML: <a href="chptr3.php"><img src="yoursite.com/images/buttons/end.png" alt="Go to the newest chapter." title="Go to the last chapter."></a> ELSEInclude this HTML: <img src="yoursite.com/images/buttons/noend.png" alt="Go to the newest chapter." title="Go to the last chapter."> If this is possible can you teach me how to do so? Or send me a tutorial?Also: Should i use a table tag to align 4 buttons next to eachother? That is how i am currently doing it.Looking forward to your replies =D Link to comment Share on other sites More sharing options...
Ingolme Posted November 29, 2015 Share Posted November 29, 2015 You can use the file_exists() function, but just keep in mind it uses the server directory structure, so don't include the domain name, figure out the location of the file on the server relative to the current file. Don't use a table just to align things horizontally, use CSS. There are many CSS techniques for that. You can change display to "inline-block" or just use float to move elements to the left. Link to comment Share on other sites More sharing options...
dsonesuk Posted November 29, 2015 Share Posted November 29, 2015 Menus are usually created using unordered list elements, because of how they are structured they can be used to produce a dropdown menu when required. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now