I have a very simple question. I am starter at website building. So I have to build an website with several menus and pages. I have a dropdown menu with 5 main menu items and each main menu has about six sub-menu items. Content of each sub menu items is in html files in diferrent directories.
I look for a content loader engine. I have already try some ajax loader script with repairing bookmarking and back button, but none of them works perfectly. So I need a perfect html and php page loader method which can load content from html or php files when I click on one of menu items.
Thanks!
Regards,
Norbi
Give a a href link tag for each menu item
Menu Item 1
Menu Item 2
Will work
Related
I am working on a website using a CMS. On desktop the navigation works properly with the dropdown menu working on hover. So the dropdown header is clickable and when you hover over it the dropdown menu shows. My issue is on mobile I need the page for the dropdown header to still be accessible. I have seen solutions on this site where you can make the dropdown header be clickable with the user taps twice on the header, however my client wants a different user experience. They want the dropdown header to show as 'Overview' inside the dropdown menu. So if the dropdown header title is Services and goes to the services.html page, on mobile they want to add a link inside the dropdown menu that says Overview and goes to the services.html page. Example images below.
Example on desktop
Example on mobile
Keep in mind the solution has to work for the possibility of multiple dropdown's. Hopefully someone already has a solution for this. I would like to get solutions using vanilla Javascript only.
I'm new to web development. I'm making a site for a non-profit organization and I need some help. I am building a menu bar but instead of having to load each page separately, I am thinking of incorporating all the content on the same page. Only difference is that the new content will slide from the right whenever a new link is clicked.
Please check out www.pakgeosoc.org to see what i'm saying. I want to build a menu bar of this sort that will slide content from left or right whenever new link from menu bar is clicked.
I know this can easily be done using javascript. A simple explanation of how would be great! :)
P.S. The website I am building is a sister site of this website and my client (who owns this website) wants me to follow this template.
You may want to check these questions asked before:
JS or Css page slide transition between 2 full pages
slide between pages using jQuery
Hi im using Wordpress for my website and have created a plugin, in this plugin im using Jquery to load data from a website to my other one. I have managed this ok with the following code. My issue is that im trying to load a wp-nav menu which has role restriction set on certain menu items. When i load the menu on another site it shows all the navigation links except the ones which you need to be logged in to see. So all ok so far.
I created a new wordpress install an wish to load the menu into this site, i am logged in with the same role as the other site and i cannot still see the menu items which my role allows me to see on the first website. How can i load external data which will allow me to see the same menu items?
in basic terms ive created a wordpress menu and i am trying to use Jquery .Load to load it onto a seperate install of wordpress so the menus are identical. This means i only have to update one menu. I can load the menu data but it doesnt have role access etc (understandable) but want to know how to do this.
<script>
(function($) {
//Load div from address
$(function(){
var contentURI= 'http://192.168.1.99/intranet #menu-department-menu';
$('#tabs-1 #scroller').load('/php/loadexternalurl.php?url='+ contentURI);
});
})(jQuery);
</script>
<?php echo file_get_contents($_GET['url']); ?> //used to load external data
I'm editing a website and I can't get it to work properly. I'm using a responsive menu to go between pages (stays in the same page but changes out the page elements). The code for it is here.
Now I'm trying to include a link in the text of the page (as opposed to just in the menu)
Here is the code for that plus the menu.
The link won't work at all. What am I doing wrong?
I need 3 level menu bar like this:
User will select 3 different options from the menu.
in this example the target url will be like this:
www.mysite.com/show.php?type=cat&size=middle&color=yellow
The url will be opened as soon as user changes one option in the menubar.
I don't have experience to make this menu from scratch,
is there any ready scripts making similar behaviour,
or which terms do you recommend me search for in javascrpt forums?
Thank you