Posts

Showing posts from March, 2023

How to Stop and Start HTML Marquees

Image
   Stopping and Starting HTML Marquees       How to pause scrolling text that is created with HTML <marque> tag , when the user hovers over on it, It needs to continue when mouse out of the scrolling text.  i.e, Pausing a scrolling marquee text, ex: news article, when the user moves the mouse on it and should start scrolling again when the mouse is out of that text. Ex: <marquee behavior= "scroll" direction= "right" onmouseover= "this.stop();"   onmouseout= "this.start();" >   <h3> Go on… hover on this text (and hold the mouse over)! </h3>   </marquee>     More on HTML Marquee tag    Marquee tag allows you to create a scrolling text on a webpage. HTML provided different.  attributes for adding additional properties to scrolling text .      Attributes 1. behavior Indicate the behavior of how the text scrolls. It can be one of the following.  values: alternate , scroll , slide   2. direction  Direction

Java Question and Answers

Image
 JAVA PRACTICE QUESTIONS  Java Tutorial Home   Java Practice Question on Core to Advanced Java. Try to find the solutions for the questions given below. If you need answers, please comment below. Classes, Objects & Methods 1. What is Constructor Overloading and Method Overloading. Write a java program using them. 2. Write a java program that implements Inner class and show its Access protection. 3.  Accept two command line arguments and calculate sum of those using Java Program. Arrays & Strings 4. Java Program to Add Two Matrix Using Multi-Dimensional Integers Array.  5. A program for String handling, Accept a String value as a command line argument and convert it into uppercase 6. Write a Program in Java to concatenate two Strings values without using Library Functions. 7. Write a Java program to implement a parent class Shape and its subclasses Square, Rectangle, and Triangle. Calculate the area of each shape using abstract classes and methods. Java Collections Framework 8

Hide Show Password in Bootstrap

Image
 Hide Show Password   This tutorial teaches you how to create a password preview button in bootstrap login form . When the user clicks the preview button, the jQuery snippet captures the click event and changes the password type to text. In case if it is in text mode, it changes its type to password. Copy the code, save the file with index.html and preview it in Browser. Then you will see the output as shown in below image. Now click the preview button and check how it is working. If any question pleases comment below.   index.html <!DOCTYPE html> <html lang= "en" > <head> <title>Toggle password Example </title>   <meta charset= "utf-8" > <meta name= "viewport" content= "width=device-width, initial-scale=1" >   <link rel= "stylesheet" href= "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" > <link rel= 'stylesheet' h

PHP Functions Part2

Image
 PHP Functions Tutorial       PART1 Types of User Defined Functions In previous tutorial, you learn what is a function. A function is nothing but a named block, that will perform a specific task.  A function can be written in four ways based on the requirement. 1. Function with no arguments no return 2. function with arguments 3. function with return 4. function with arguments with return. Arguments : are inputs to the function return : function returns the result (output). Note:   arguments and return are optional    1. Function with no arguments no return. TOC Example: <?php function hello () { print ( "Hello world! <br>" ); } hello(); ?> A function, can be called any number of times. <?php function hello () { print ( "Hello world! <br>" ); } hello(); ?>   A function can be called in a loop.     <?php   function hello () { print ( "Hello world! <br>" ); }     for ( $i = 0 ; $i <