Javascript Articles

Page 205 of 534

Picking the largest elements from multidimensional array in JavaScript

Nikhilesh Aleti
Nikhilesh Aleti
Updated on 19-Dec-2022 3K+ Views

Given a multidimensional array and the task is to pick the largest elements from it in JavaScript. The multidimensional arrays are an arrays inside an array. whenever there are arrays inside the array it will work as multidimensional array. Following is the one-dimensional array - const arr = ["Welcome", "to", "tutorials", "point"]; const arr = [1, 5, 12, 67, 99]; This is how the multidimensional array look like - const array=[["Mike tyson", "Vijay"], ["ananya", "charmee"], ["Lion", "Tiger"]]; This is how we can access the elements from multidimensional array - const array = [["Mike tyson", "Vijay"], ["ananya", ...

Read More

How to implement quick sort in JavaScript?

Nikhilesh Aleti
Nikhilesh Aleti
Updated on 19-Dec-2022 3K+ Views

In this article, we are going to discuss how to implement quick sort in JavaScript with suitable examples. Quick sort The Quick sort is a divide and conquers algorithm similar to the merge sort. In this, we pick a pivot element and divide the array around the pivot element. There are many ways to pick the pivot element. Always pick the first element as a pivot element. Always pick the last element as a pivot element. (Implemented in the below program) Pick a random element as pivot element Pick the middle element as pivot element. The main process ...

Read More

How to create responsive Modal Images with CSS and JavaScript?

Aman Kumar
Aman Kumar
Updated on 19-Dec-2022 3K+ Views

A modal is a dialog box/popup window that is displayed on top of the current page. To create responsive modal images, we use JavaScript to trigger the modal and display the current image inside the when it is clicked on. Also, we are using alt for the image caption text inside the model. Responsive modal images are images that are enlarged to fit into the window based on their size, device resolution, orientation and page layout. These images are usually enlarged with a mouse click. They can also be downloaded on a click from the web browsers. In this example, ...

Read More

How to create a responsive slideshow with CSS and JavaScript?

Aman Kumar
Aman Kumar
Updated on 19-Dec-2022 3K+ Views

In this article, we are going to create a responsive slideshow with the help of JavaScript and CSS. A responsive slideshow or we can say a responsive image slider, or a responsive images slider with text is a visually attractive and interactive design element that take part your viewers on the website it will have from one or more images with a text overlay on it. That is, it will display a series of images with a text on them. This also provide two arrow buttons suing which you can browse through the images (in both diresctions). This is used ...

Read More

How to create a collapsible sidebar menu with CSS and JavaScript?

Aman Kumar
Aman Kumar
Updated on 19-Dec-2022 7K+ Views

A collapsible panel is a basic container coach view that creates a section area that can contain other controls. This section can be lengthy or collapsed to show hide data. To create a collapsible sidebar menu, we need HTML, CSS, and javascript. A collapsible sidebar will collapse along with the main page. In simple words, it means the menu bar is displayed on the page with its respective width; and main content of the page takes a minimum margin to display on the page. Following are the steps to be followed to create a collapsible sidebar menu. In this example, ...

Read More

How to create a curtain navigation menu with CSS and JavaScript?

Aman Kumar
Aman Kumar
Updated on 19-Dec-2022 1K+ Views

In this article, we will learn how to create a curtain navigation menu using HTML, CSS and JavaScript. The curtain navigation menu will overlay on the entire screen by pushing back the current page. These menus display the sub−links of a link to make the navigation more specific. To create curtain navigation, we have to do the same as we had done earlier. In curtain navigation, we have two buttons one is an open button (menu) and the other one is a close button (cross). When you click on the open button the navigation will be visible on the screen ...

Read More

How to create a top navigation menu for smartphones / tablets with CSS and JavaScript?

Aman Kumar
Aman Kumar
Updated on 19-Dec-2022 738 Views

In this article, we are going to discuss how to create a top navigation menu for smartphones / tablets using CSS and JavaScript. A navigation bar is usually the first pit−stop for the users visiting the website who seek guidance to walk through the website. It contains the list of elements present in your website; including the links to navigate through the website. To create a top navigation menu for smartphones and tablet it is easy, first we have to create a navigation menu page add media query inside the CSS. If width of the devices is less than 600px ...

Read More

How to resize a navigation bar on scroll with CSS and JavaScript?

Aman Kumar
Aman Kumar
Updated on 19-Dec-2022 3K+ Views

In this article going to discuss how to resize a navigation bar on scroll with the help of CSS and JavaScript. A navigation bar contains the list of elements present in your website; including the links to navigate through the website. It usually the first pit-stop for the users visiting the website who seek guidance to walk through the website. Resizing is the same as hiding and showing the navigation. Here, we just need to increase the padding, and size of the navigation bar with the help of JavaScript. In this example we are creating a webpage displaying “navigation bar”. ...

Read More

How to create a responsive bottom navigation menu with CSS and JavaScript?

Aman Kumar
Aman Kumar
Updated on 19-Dec-2022 1K+ Views

In this article we are going to discuss how to create a responsive bottom navigation menu with CSS and JavaScript. Usually once you create a web page, when you alter the size of the page, some of the contents of the page will be hidden. A responsive page is the one which adjusts the contents of the page as we change the dimensions of the page. To create a responsive navigation menu, we have to use CSS and JavaScript. The responsive menu resizes the browser menu to see how the navigation menu works on small and mobile−size displays. In short ...

Read More

How to create an off-canvas menu with CSS and JavaScript?

Aman Kumar
Aman Kumar
Updated on 19-Dec-2022 1K+ Views

In this, article we are going to create off canvas menu using CSS and JavaScript. Off−canvas menu lets you display your content as a sidebar when a button is activated. This helps you to display a certain aspect of your site in the side navigation panel thus giving a user−friendly familiarity to your guests. An off−canvas menu can also be accessed by sliding left−to−right or right−to−left (if you are using a touchscreen device) depending on the design of your website. This is usually used in cases where a website has a lot of links that don’t fit in the top ...

Read More
Showing 2041–2050 of 5,338 articles
« Prev 1 203 204 205 206 207 534 Next »
Advertisements