jQuery Navigation/ Promotional Banner- Cookie

Following is the code for a  Promotional banner which is supposed to be seen on all the pages of the website. The banner would have the following functionalities: It should be displayed above the header. It has a close button. If anyone closes the banner it should not be displayed again on any page for […]

Read More

jQuery Navigation/ Promotional Banner- Session

Following is the code for a  Promotional banner which is supposed to be seen on all the pages of the website. The banner would have the following functionalities: It should be displayed above the header. It has a close button. If anyone closes the banner it should not be displayed again on any page for […]

Read More

Image Map On background Image-Responsive

Following is the code to use mapping in the responsive background image.  Code written here is for the rectangular image. First half[50%] of the image is linked to one URL, and another 50%[half] image is linked to another URL. /* HTML code for imap */ <div id=”demo”>  <a id=”link1″ title=”link1″ href=”#”></a>  <a id=”link2″ title=”link2″ href=”#”></a> </div> […]

Read More

Dropdown arrow change on click

Code for changing the dropdown arrow on click. You can change the arrow from + to – You can change the symbols you want.[up-down,plus-minus etc]. Javascript code: function changeText(idElement) { var element = document.getElementById(‘element’ + idElement); if (idElement === 1 || idElement === 2 ) { if (element.innerHTML === ‘+’) element.innerHTML = ‘ -‘; else […]

Read More

Form Validation Using JavaScript

How to Validate HTML Form Using Javascript? I had a form where I needed to put a condition “Either email or phone number should be inserted”. A name was compulsory to add, so  I have added ‘required’ keyword in name field. But for Email and phone number validation I used javascript code. Following is the […]

Read More

Dynamic Charts Using PHP

Some people say that in PHP we cannot create charts. Others say that for creating chart we need to use plugins. But, I have found an easy solution of creating dynamic charts , without using any plugins in PHP. I have written this code to display the number of inquiries received by a college and […]

Read More

Open/Load/View HTML file in TEXTAREA and update using PHP

What we are doing here is ‘edit an HTML on the user side’. For example, I have a file called manual.html. I have uploaded that file on CPANEL and only I have the accessing the CPANEL. Now, If someone wants to make changes in the manual, what would he/she do?They would need to ask me […]

Read More