Abhinanda Shri has Published 74 Articles

Rotate div with skew y-axis using CSS

Abhinanda Shri

Abhinanda Shri

Updated on 29-Jun-2020 10:10:17

182 Views

You can try to run the following code to rotate div with skew y-axis using CSS −ExampleLive Demo                    div {              width: 300px;              height: 100px;         ... Read More

Rotate Out Up Left Animation Effect with CSS

Abhinanda Shri

Abhinanda Shri

Updated on 29-Jun-2020 09:19:28

71 Views

To create rotate out up left animation effect with CSS, you can try to run the following code −ExampleLive Demo                    .animated {             background-image: url(/css/images/logo.png);             background-repeat: no-repeat;     ... Read More

Set Media Queries for different CSS style rules for different size devices

Abhinanda Shri

Abhinanda Shri

Updated on 29-Jun-2020 08:30:19

160 Views

To set media queries for different CSS style rules, you can try to run the following code −ExampleLive Demo                    body {             background-color: lightpink;          }          @media screen ... Read More

What is the use of "placement new" in C++?

Abhinanda Shri

Abhinanda Shri

Updated on 24-Jun-2020 05:46:44

225 Views

In a nutshell, placement new allows you to "construct" an object on memory that's already allocated to a given variable. This is useful for optimizations as it is faster to not reallocate and reuse the same memory that is already assigned to it. It can be used as follows −new ... Read More

How to use JavaScript Object.defineProperty?

Abhinanda Shri

Abhinanda Shri

Updated on 23-Jun-2020 13:01:23

123 Views

If you want to define a new or modify a property on an object, then use the Object.defineProperty in JavaScript. Use the property like the following −Object.defineProperty(obj, prop, descriptor)The following are the parameters −obj – Property is defined on this object. prop – Name of the property descriptor  − The descriptor for the propertyExampleYou ... Read More

Is their JavaScript scroll event for iPhone/iPad?

Abhinanda Shri

Abhinanda Shri

Updated on 23-Jun-2020 12:57:22

204 Views

Yes, iOS capture onscroll events for a scroll. This is called one-finger events. What the user is tapping or touching decides whether an event is generated or not.Here is panning gesture,Image credit − AppleIt can also be touch and hold gesture,Image credit − Apple

Why is isNaN(null) == false in JS?

Abhinanda Shri

Abhinanda Shri

Updated on 23-Jun-2020 12:06:48

467 Views

The isNan() method is used in JavaScript to check whether there’s the existence of an undefined value or can say checks for a NaN object. ExampleTo check whether a JavaScript date is valid or not, you can try to run the following code −           ... Read More

How can I write a script to use either W3C DOM or IE 4 DOM depending on their availability?

Abhinanda Shri

Abhinanda Shri

Updated on 23-Jun-2020 07:25:37

64 Views

If you want to write a script with the flexibility to use either W3C DOM or IE 4 DOM depending on their availability, then you can use a capability-testing approach that first checks for the existence of a method or property to determine whether the browser has the capability you ... Read More

How to Debug JavaScript on iPad?

Abhinanda Shri

Abhinanda Shri

Updated on 23-Jun-2020 06:57:14

393 Views

To debug JavaScript on the iPad, you need to open the Safari browser.Now enable Web Inspector in iOS. In the Settings app, select Safari. Tap the Advanced option and start Web Inspector −Now select Web Inspector −Use a USB cable to connect the iPad to Mac. Safari opens and your iPad ... Read More

How to write PHP script by using ORDER BY clause inside it to sort the data of MySQL table?

Abhinanda Shri

Abhinanda Shri

Updated on 22-Jun-2020 14:18:23

171 Views

We can use the similar syntax of the ORDER BY clause into the PHP function – mysql_query(). This function is used to execute the SQL command and later another PHP function – mysql_fetch_array() can be used to fetch all the selected data.To illustrate it we are having the following example ... Read More

1 2 3 4 5 ... 8 Next
Advertisements