Mytsaw Posted February 1, 2014 Author Share Posted February 1, 2014 ![](https://dl.dropboxusercontent.com/u/201949762/44444444444444.JPG)i want to add this menu to be the same to every page without need to change it on every page if i want to add or remove something> <> div> class> => "top-menu"> >> > <> a> href> => "index.html"> class> => "top-menu-link"> >> Homea> >> > <> a> href> => "naruto.html"> class> => "top-menu-link"> >> Narutoa> >> > <> a> href> => "Yugioh.html"> class> => "top-menu-link"> >> Yugioha> >> > <> a> href> => "#"> class> => "top-menu-link"> >> 4Story IWa> >> > <> a> href> => "#"> class> => "top-menu-link"> >> a> >> > <> a> href> => "#"> class> => "top-menu-link"> >> Forum a> >> > div> >this is the code that it use (i wan't to do it wouth php if it's possible , without need to change my files from ".html") Link to comment Share on other sites More sharing options...
Domino_ Posted February 1, 2014 Share Posted February 1, 2014 use include function. for php.Ohh, but yea, you dont need to change ut *.html, just add this code in menu place and load menu from other file.Make Menu.php and write in there this:``` [Home](index.html) [Naruto](naruto.html) [Yugioh](Yugioh.html) [4Story IW](#) [](#) [Forum](#) ```and add that include menu where u want ur menu. Link to comment Share on other sites More sharing options...
Mytsaw Posted February 1, 2014 Author Share Posted February 1, 2014 thanks, i will try it Link to comment Share on other sites More sharing options...
Domino_ Posted February 1, 2014 Share Posted February 1, 2014 If you have problems try this.``` [Home](\"index.html\") [Naruto](\"naruto.html\") [Yugioh](\"Yugioh.html\") [4Story IW](\"#\") [](\"#\") [Forum](\"#\") ```This is in case your html code is in php print out,but i dont remember try both. :D Link to comment Share on other sites More sharing options...
Mytsaw Posted February 1, 2014 Author Share Posted February 1, 2014 it make the menu empty ![](https://dl.dropboxusercontent.com/u/201949762/2.JPG) Link to comment Share on other sites More sharing options...
Domino_ Posted February 1, 2014 Share Posted February 1, 2014 ``````This works for html, I havent touched anything about php,html(for a looong time) so couldnt give u right answer immediately, but this works 100%!p.s. added scrolling, in case it looks wierd and scrolls. Link to comment Share on other sites More sharing options...
Mytsaw Posted February 1, 2014 Author Share Posted February 1, 2014 it work but it have a problem Link to comment Share on other sites More sharing options...
aaaron Posted February 1, 2014 Share Posted February 1, 2014 If you're not wanting to use PHP, you're gonna have to change them every time you change something. Link to comment Share on other sites More sharing options...
Domino_ Posted February 1, 2014 Share Posted February 1, 2014 What kind of problem? Link to comment Share on other sites More sharing options...
Mytsaw Posted February 1, 2014 Author Share Posted February 1, 2014 i find a solution :) , thanks for your help. 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