HTML Canvas shadowColor Property

Arjun Thakur
Updated on 12-Jun-2020 08:00:20

154 Views

The shadowColor property of the HTML canvas is used to set the color for shadow. The default value is #000000.Following is the syntax −ctx.shadowColor=color;Above, set the color for shadow.Let us now see an example to implement the shadowColor property of canvas −Example Live Demo    var c = document.getElementById("newCanvas");    var ctx = c.getContext("2d");    ctx.shadowBlur = 20;    ctx.shadowColor = "gray";    ctx.fillStyle = "blue";    ctx.fillRect(40, 40, 200, 250); Output

CSS rest After Speech Media Property

Nishtha Thakur
Updated on 12-Jun-2020 07:40:13

151 Views

The CSS rest-after property is useful for speech media to set pause after an element.The following is the syntax −rest-after: | none | x-weak | weak | medium | strong | x-strongHere, x-weak | weak | medium | strong | x-strong is the rest by the strength of pauseLet us see an example of rest-after speech media property −h1 {    rest-after: 15ms; }The time sets the pause in milliseconds.

Change Background Color of a Web Page Using onMouseOver Property

Arjun Thakur
Updated on 12-Jun-2020 07:20:30

7K+ Views

The onmouseover property allows you set a script when the mouse pointer is moved onto an element. To change the background color, use the HTML DOM backgroundColor property.Let us see an example to implement the onmouseover property and change the background color −Example Live Demo Heading Two    Hover over me to change the background color. OutputNow hover over the text to change the background color of the web page −

Call a Function Inside a jQuery Plugin from Outside

Amit D
Updated on 12-Jun-2020 07:19:19

920 Views

To call a function inside a jQuery plugin from outside, try to run the following code. The code updates the name with jQuery as an example using properties:Live Demo                          $.fn.person = function(prop) {             var defaults = $.extend({                name: 'Amit'             }, prop);                 // methods to be used outside of the plugin             var person = ... Read More

Call a jQuery Library Function

David Meador
Updated on 12-Jun-2020 07:16:50

3K+ Views

Calling a JavaScript library function is quite easy. You need to use the script tag. As almost everything we do when using jQuery reads or manipulates the document object model (DOM), we need to make sure that we start adding events etc. as soon as the DOM is ready.If you want an event to work on your page, you should call it inside the $(document).ready() function. Everything inside it will load as soon as the DOM is loaded and before the page contents are loaded.To do this, we register a ready event for the document as follows:$(document).ready(function() {    // ... Read More

Include CDN-Based Version of jQuery in HTML File

Amit Diwan
Updated on 12-Jun-2020 07:15:34

568 Views

Easily include jQuery library into your HTML code directly from Content Delivery Network (CDN). Google and Microsoft provide content delivery for the latest version.You can try to run the following code to learn how to use Google CDN for jQuery:ExampleLive Demo           jQuery CDN                              $(document).ready(function(){             document.write("Tutorialspoint!");          });                         Hello        

Link jQuery from My Local Machine

Alex Onsman
Updated on 12-Jun-2020 07:13:39

4K+ Views

You can add jQuery using CDN or through downloading it on local machine. For Local Installation, download jQuery library on your local machine and include it in your HTML code. The following are the steps:Go to the jQuery website to download the latest version available.Now put downloaded jquery-3.2.1.min.js file in a directory of your website, e.g. /jquery.You can try to run the following code to learn how to link jQuery from local machine:Live Demo           jQuery Example                    $(document).ready(function(){             document.write("Hello, World!");          });                                 Hello        

Handling Exception using JCo 3.0 on JCoContext End

SAP Expert
Updated on 12-Jun-2020 07:11:24

185 Views

As per my understanding, JCoContext.end() method will raise an exception if passed parameter is NULL or you have a bug in JCo. You need to ensure that destination is not null.This method should only be called, if destination is not null i.e.SAP Thread

Place UI5 Code in SAP NetWeaver Server

SAP Expert
Updated on 12-Jun-2020 07:10:41

208 Views

It is possible to deploy code from Eclipse /Web IDE to SAP backend server using ABAP developer tools. This will result a BSP page and you can check that in T-code: SE80.SAP Development Tools

Joining COBK and COEP Table Using Inner Join

SAP Expert
Updated on 12-Jun-2020 07:09:39

517 Views

You can make use of T-Code: SE11 to check what indexes are available for table COEPFor one COEP record that you have the (now) 5 criteria for, navigate to T-Code: SE16 pass the selections and run to check how long it takes.To improve performance, you can also create an additional index in table COEP. You can also run a SQL trace in ST05 to see what indexes are used and if indexes are not improving performance.

Advertisements