Home
Search results “Html getelementbyid style background”
Change background image using Javascript with Html Button
 
05:31
change the image of body using html button by applying javascript function.. onclick method is used on button.
Views: 3605 owais ali
Where should the script tag be placed in html
 
09:40
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2014/11/where-should-script-tag-be-placed-in.html In this video we will discuss, where should the script tag be placed in the html. Should it be placed in the body or head section of the page. In general the script tag can be placed either in the head or body section. Let's look at a few examples : Example 1 : Script tag in the head section [html] [head] [script type="text/javascript"] alert("Welcome to JavaScript Tutorial"); [/script] [/head] [body] [form id="form1" runat="server"] [/form] [/body] [/html] Example 2 : Script tag in the body section [html] [head] [/head] [body] [form id="form1" runat="server"] [/form] [script type="text/javascript"] alert("Welcome to JavaScript Tutorial"); [/script] [/body] [/html] In Example 1 we placed the script tag in the head section and in Example 2, we placed it in body section. In both the cases JavaScript works as expected. Example 3 : Sets the background color of the TextBox to red. [html] [head] [/head] [body] [form id="form1" runat="server"] [asp:TextBox ID="TextBox1" runat="server"][/asp:TextBox] [/form] [script type="text/javascript"] document.getElementById("TextBox1").style.backgroundColor = "red"; [/script] [/body] [/html] Example 4 : This is same as Example 3, except we moved the script tag to the head section. In this case the script will not work as expected. Depending on the browser you are using you get one of the following JavaScript error. Firefox - TypeError: document.getElementById(...) is null Chrome - Uncaught TypeError: Cannot read property 'style' of null IE - Unable to get property 'style' of undefined or null reference To see these JavaScript errors press F12 which launches developer tools. F12 works for all the 3 browsers. [html] [head] [script type="text/javascript"] document.getElementById("TextBox1").style.backgroundColor = "red"; [/script] [/head] [body] [form id="form1" runat="server"] [asp:TextBox ID="TextBox1" runat="server"][/asp:TextBox] [/form] [/body] [/html] Why did the JavaScript did not work in this case JavaScript code is present before the textbox control. By the time the JavaScript code is executed, the textbox is still not loaded into browser DOM (Document Object Model). This is the reason JavaScript can't find the textbox and throws a NULL reference error. In Part 6, we discussed that, in general it is a good practice to store JavaScript in an external .js file. So, if the JavaScript is present in an external file and if you are referencing it on a page using [script] element, where should such [script] element be placed. To answer this question, first let's understand what happens when a browser starts loading a web page. 1. The browser starts parsing the HTML 2. When the parser encounters a [script] tag that references an external JavaScript file. The parser stops parsing the HTML and the browser makes a request to download the script file. Until the download is complete, the parser is blocked from parsing the rest of the HTML on the page. 3. When the download is complete, that's when the parser will resume to parse the rest of the HTML. This means the page loading is stopped until all the scripts are loaded which affects user experience. In general, the suggested good practice is to place the [script] tag just before the closing [body] tag, so it doesn't block the HTML parser. However, modern browsers support async and defer attributes on scripts. These attributes tell the browser it's safe to continue parsing while the scripts are being downloaded. But even with these attributes, from a performance standpoint it is still better to place [script] tag just before closing [body] tag. According to HTTP/1.1 specification browsers download no more than two components in parallel. So, if the page has several images to download and if you place [script] tags at the top of the page, the script files start to download first which blocks the images download which adds to the total page load time.
Views: 83936 kudvenkat
Assigning event handlers in JavaScript using DOM object property
 
10:20
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/01/assigning-event-handlers-in-javascript.html In JavaScript there are several ways to associate an event handler to the event. In Part 36, we discussed, associating event handler methods to events using the attributes of HTML tags. In this video we will discuss using DOM object property to assign event handlers to events. First let us understand, what is DOM DOM stands for Document Object Model. When a browser loads a web page, the browser creates a Document Object Model of that page. The HTML DOM is created as a tree of Objects. Example : [html] [head] [title]My Page Title[/title] [/head] [body] [script type="text/javascript"] [/script] [div] [h1]This is browser DOM[/h1] [/div] [/body] [/html] JavaScript can be used to access and modify these DOM objects and their properties. For example, you can add, modify and remove HTML elements and their attributes. Along the same lines, you can use DOM object properties to assign event handlers to events. We will discuss the DOM object in detail in a later video session. We will continue with the same examples that we worked with in Part 36. Notice that in this case, we are assigning event handlers using the DOM object properties (onmouseover & onmouseout) instead of using the attributes of the HTML tag. We are using this keyword to reference the current HTML element. In this example "this" references the button control. [input type="button" value="Click me" id="btn"/] [script type="text/javascript"] document.getElementById("btn").onmouseover = changeColorOnMouseOver; document.getElementById("btn").onmouseout = changeColorOnMouseOut; function changeColorOnMouseOver() { this.style.background = 'red'; this.style.color = 'yellow'; } function changeColorOnMouseOut() { this.style.background = 'black'; this.style.color = 'white'; } [/script] The following example is same as the above. In this case we are assigning an anonymous function to onmouseover & onmouseout properties. [input type="button" value="Click me" id="btn" /] [script type="text/javascript"] document.getElementById("btn").onmouseover = function () { this.style.background = 'red'; this.style.color = 'yellow'; } document.getElementById("btn").onmouseout = function () { this.style.background = 'black'; this.style.color = 'white'; } [/script] If an event handler is assigned using both, i.e an HTML attribute and DOM object property, the handler that is assigned using the DOM object property overwrites the one assigned using HTML attribute. Here is an example. [input type="button" value="Click me" id="btn" onclick="clickHandler1()"/] [script type="text/javascript"] document.getElementById("btn").onclick = clickHandler2; function clickHandler1() { alert("Handler set using HTML attribute"); } function clickHandler2() { alert("Handler set using DOM object property"); } [/script] Using this approach you can only assign one event handler method to a given event. The handler that is assigned last wins. In the following example, Handler2() is assigned after Handler1. So Handler2() owerites Handler1(). [input type="button" value="Click me" id="btn"/] [script type="text/javascript"] document.getElementById("btn").onclick = clickHandler1; document.getElementById("btn").onclick = clickHandler2; function clickHandler1() { alert("Handler 1"); } function clickHandler2() { alert("Handler 2"); } [/script]
Views: 44777 kudvenkat
jQuery #id selector
 
10:53
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/03/jquery-id-selector.html In this video we will discuss 1. What are jQuery selectors 2. Different selectors in jQuery 3. #id selector in jquery What are jQuery selectors One of the most important concept in jQuery is selectors. jQuery selectors allow you to select and manipulate HTML elements. Different selectors in jQuery jQuery selectors allow you to select html elements in the DOM by 1. Element ID 2. Element Tag Name 3. Element Class Name 4. Element attribute 5. Element Attribute values and many more Id selector in jquery To find an HTML element by ID, use the jQuery #id selector Example : The following example finds button with ID button1 and attaches the click event handler. [html] [head] [title][/title] [script src="jquery-1.11.2.js"][/script] [script type="text/javascript"] $(document).ready(function () { $('#button1').click(function () { alert('jQuery Tuorial'); }); }); [/script] [/head] [body] [input id="button1" type="button" value="Click Me" /] [/body] [/html] Changes the background colour of the button to yellow $(document).ready(function () { $('#button1').css('background-color', 'yellow'); }); Important points to remember about jQuery #id selector 1. jQuery #id selector uses the JavaScript document.getElementById() function 2. jQuery #id selector is the most efficient among all jQuery selectors. If you know the id of an element that you want to find, then always use the #id selector. 3. HTML element IDs must be unique on the page. jQuery #id selector returns only the first element, if you have 2 or more elements with the same ID. [html] [head] [title][/title] [script src="jquery-1.11.2.js"][/script] [script type="text/javascript"] $(document).ready(function () { $('#button1').css('background-Color', 'yellow'); }); [/script] [/head] [body] [input id="button1" type="button" value="Click Me" /] [input id="button1" type="button" value="Click Button" /] [/body] [/html] 4. JavaScript's document.getElementById() function throws an error if the element with the given id is not found, where as jQuery #id selector will not throw an error. To check if an element is returned by the #id selector use length property. [html] [head] [title][/title] [script src="jquery-1.11.2.js"][/script] [script type="text/javascript"] $(document).ready(function () { if ($('#button1').length ] 0) { alert('Element found') } else { alert('Element not found') } }); [/script] [/head] [body] [input id="button1" type="button" value="Click Me" /] [/body] [/html] 5. JavaScript's document.getElementById() and jQuery(#id) selector are not the same. document.getElementById() returns a raw DOM object where as jQuery('#id') selector returns a jQuery object that wraps the DOM object and provides jQuery methods. This is the reason you are able to call jQuery methods like css(), click() on the object returned by jQuery. To get the underlying DOM object from a jQuery object write $('#id')[0] 6. document.getElementById() is faster than jQuery('#id') selector. Use document.getElementById() over jQuery('#id') selector unless you need the extra functionality provided by the jQuery object.
Views: 139145 kudvenkat
Custom Alert Box Programming JavaScript CSS HTML Tutorial
 
12:04
Lesson Code: http://www.developphp.com/video/JavaScript/Custom-Alert-Box-Programming-Tutorial JavaScript comes equipped with stock dialog boxes that work well enough for alerting, confirming, and prompting for values. But most of the top interactive websites create their own custom dialog windows. Creating these windows yourself gives you more control over the interaction with the user, and allows you to customize every single aspect of the dialog window. In this first video lesson we will cover creating a dynamic custom alert box dialog from scratch. In the two following videos we will cover confirm and prompt boxes.
Views: 90664 Adam Khoury
JavaScript - 25. Changing HTML content and attribute
 
06:36
In this video, we look at ways to change HTML content and attribute using JavaScript and HTML DOM.
Views: 8240 Loot Tutorial
Attach JS and CSS Files with HTML Files. Advance HTML in Hindi
 
05:07
Attach JS and CSS Files with HTML Files is Hindi/Urdu video tutorial,Here you'll learn how to Attach JS and CSS Files with HTML Files in Hindi/Urdu. HTML हिन्दी मे सीखे ...HTML हिन्दी मे सीख कर web design मे expert bane.. web design सिखने के लिए शुरु करे HTML tutorial हिन्दी मे । ... Learn HTML in Hindi and Make yourself expert in HTML in Hindi for learning web designing with Hindi HTML learning tutorial you can learn HTML easily with this HTML in Hindi tutorial. it is great platform for learning HTML in Hindi. HTML Tutorial in Hindi/Urdu for beginner to expert.... This course is one of the best courses designed for beginners in HTML. Watch this HTML in Hindi video tutorials series to learn HTML from Basic to advance. In this course, you'll learn the complete web design structure in Hindi/Urdu. Like | Watch | Share | Subscribe Website: http://www.vishacademy.com YouTube Channel: http://www.youtube.com/vishAcademy Facebook: http://www.facebook.com/vishAcademy
Views: 18087 vishAcademy
JavaScript Tutorial for Beginners - 26 - getElementById method
 
07:09
In this video we will discuss the getElementById method. JavaScript code: http://pastebin.com/nKYdNVXQ HTML code: http://pastebin.com/4vetykqT
Views: 48993 EJ Media
JavaScript tutorials for beginners in Hindi - 23 - Changing CSS with javascript
 
08:16
In this video I will show you changing CSS with javascript. I will show you that how can you change background color with javascript, change font size with javascript, change background color of body with javascript. For all my tutorials go to: http://websofttutorials.com/ Facebook: https://www.facebook.com/websofttutorials/ Twitter: https://twitter.com/websofttutorial Google Plus: https://plus.google.com/103170090189141800172/posts
Views: 9490 websofttutorials
JavaScript Tutorial for Beginners - 32 - Changing an image
 
03:45
In this video we will discuss how to change an image. Javascript code: http://pastebin.com/iUahHirr HTML code: http://pastebin.com/GiSXfSXY
Views: 30006 EJ Media
Change Style Sheet Using Javascript Tutorial CSS Swap Stylesheet
 
04:46
Lesson Code: http://www.developphp.com/video/JavaScript/Change-Style-Sheet-Using-Tutorial-CSS-Swap-Stylesheet Learn to change the entire style of your web page with a click using JavaScript that is targeting the href attribute of your familiar link element using the setAttribute method of JavaScript. DEMO: http://www.adamkhoury.com/demo/js_swap_css_stylesheet/
Views: 38018 Adam Khoury
JavaScript beginner tutorial 25 - changing an image source
 
11:32
In this tutorial I show you how to change images in JavaScript changing the value of the "src" property. Don't forget to subscribe: http://www.youtube.com/user/QuentinWatt For collaborations and business inquiries, please contact via Channel Pages: http://ChannelPages.com/QuentinWatt Social links: ------------------------------------------------------------- Add me on twitter: http://www.twitter.com/QuentinWatt facebook group: https://www.facebook.com/quentin.watt -------------------------------------------------------------
Views: 88901 Quentin Watt Tutorials
Onlick event, getElementById method, changing a button's text and text color
 
09:09
In this video we demonstrate the onclick method and how to dynamically change the button's attributes with JavaScript.
Views: 17066 vasillis-javed khan
How to change background color on click in HTML5, CSS3 and JAVASCRIPT
 
03:42
In this video I am going to show you how to change a background color by one click by using HTML5 , CSS3 and javascript........ . ********************************** for more videos like and subscribe..... *********************************** List of social media profiles Website: *********************************** Credits : Baig's Collection . . For more videos follows me on Facebook: https://m.facebook.com/groups/187814485149815?ref=bookmarks ++++++++++++++++==================++++++++++++++ Youtube: https://www.youtube.com/channel/UC0BZyu2LWjVg0fcr6Vo3d_g?view_as=subscriber ++++++++++++++++==================++++++++++++++ Blogs: http://itrixworld.blogspot.com/ ++++++++++++++++==================++++++++++++++
Views: 840 iTr!x World
getElementById Method and Javascript
 
06:07
Tutorial on using getElementById to process user input from an HTML form into Javascript.
Views: 7375 DudeRocking
How to create buttons in Javascript that change the color of an HTML element
 
12:26
~If you have any questions make sure to leave them in the comment section below! ~Subscribe for more videos! https://www.youtube.com/channel/UCsEmzdW4ry06BgbNGWQroFQ ~Help me provide better content for you lovely people https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=E8HHD98N3UFVG ==================================== EXTRA TAGS (ignore) CodingTuts Programming Become a programming pro Web design Web development Javascript Javascript elements Professional website with Javascript Responsive website with Javascript Javascript website Easy Javascript Javascript tricks & tips HTML HTML 5 CSS CSS tips and Tricks HTML and CSS Learn HTML Learn CSS Learn HTML fast Learn CSS fast Learn HTML easy Learn CSS easy Learn HTML fast and easy Learn CSS fast and easy Learn HTML and CSS Learn HTML and CSS fast Learn HTML and CSS easy Learn HTML and CSS fast and easy Website HTML website HTML and CSS website How to make a website How to make an HTML website How to make an HTML and CSS website Creating a website Creating an HTML website Creating an HTML and CSS website How to create a website How to create an HTML website How to create and HTML and CSS website Website fast HTML website fast HTML and CSS website fast How to make a website fast How to make an HTML website fast How to make an HTML and CSS website fast Creating a website fast Creating an HTML website fast Creating an HTML and CSS website fast How to create a website fast How to create an HTML website fast How to create an HTML and CSS website fast Website easy HTML website easy HTML and CSS website easy How to make a website easy How to make an HTML website easy How to make an HTML and CSS website easy Creating a website easy Creating an HTML website esy Creating an HTML and CSS website easy How to create a website easy How to create an HTML website easy How to create an HTML and CSS website easy Website fast and easy HTML website fast and easy HTML and CSS website fast and easy How to make a website fast and easy How to make an HTML website fast and easy How to make an HTML and CSS website fast and easy Creating a website fast and easy Creating an HTML website fast and easy Creating an HTML and CSS website fast and easy How to create a website fast and easy How to create an HTML website fast and easy How to create an HTML and CSS website fast and easy ====================================
Views: 16685 CodingTuts
Change Html Background Color Live - Pure CSS3 Tricks - No Javascript - Html Input Type Color
 
06:33
Please LIKE our Facebook page for daily updates... https://www.facebook.com/Online-Tutorial-Html-Css-JQuery-Photoshop-1807958766120070/ Music Name : Spring In My Step by Silent Partner from YouTube Audio Library Music URL : https://www.youtube.com/watch?v=siCmqvfw_1g
Views: 1439 Online Tutorials
CSS styles in JavaScript (setting and getting) - Beau teaches JavaScript
 
06:38
How to set CSS properties and styles in JavaScript. Also how to get CSS. This video covers style, cssText, setAttribute, and getComputedStyle. 💻 Code: https://codepen.io/beaucarnes/pen/EmVmbZ?editors=1010 🔗 Resource: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Properties_Reference 🐦 Beau Carnes on Twitter: https://twitter.com/carnesbeau ⭐JavaScript Tutorials Playlists⭐ ▶JavaScript Basics: https://www.youtube.com/playlist?list=PLWKjhJtqVAbk2qRZtWSzCIN38JC_NdhW5 ▶Data Structures and Algorithms: https://www.youtube.com/playlist?list=PLWKjhJtqVAbkso-IbgiiP48n-O-JQA9PJ ▶Design Patterns: https://www.youtube.com/playlist?list=PLWKjhJtqVAbnZtkAI3BqcYxKnfWn_C704 ▶ES6: https://www.youtube.com/playlist?list=PLWKjhJtqVAbljtmmeS0c-CEl2LdE-eR_F ▶Clean Code: https://www.youtube.com/playlist?list=PLWKjhJtqVAbkK24EaPurzMq0-kw5U9pJh - We're busy people who learn to code, then practice by building projects for nonprofits. Learn Full-stack JavaScript, build a portfolio, and get great references with our open source community. Join our community at https://freecodecamp.com Read great tech articles at https://medium.freecodecamp.com
Views: 6313 freeCodeCamp
Events in JavaScript
 
17:08
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/01/events-in-javascript.html What is an event An event is a signal from the browser that something has happened. For example, 1. When a user clicks on an HTML element, click event occurs 2. When a user moves the mouse over an HTML element, mouseover event occurs When events occur, we can execute JavaScript code or functions in response to those events. To do this we need to associate JavaScript code or functions to the events. The function that executes in response to an event is called event handler. In JavaScript, there are several ways to associate an event handler to the event 1. Using the attributes of an HTML tag 2. Using DOM object property 3. Using special methods In this video we will discuss associating event handler methods to events using the attributes of HTML tags. In the following example, the code to execute in response to onmouseover & onmouseout events is set directly in the HTML markup. The keyword "this" references the current element. In this example "this" references the button control. [input type="button" value="Click me" id="btn" onmouseover="this.style.background= 'red'; this.style.color = 'yellow'" onmouseout="this.style.background= 'black'; this.style.color = 'white'" /] The above example, can be rewritten as shown below. In this case the code to execute in response to the event is placed inside a function and then the function is associated with the event. [input type="button" value="Click me" id="btn" onmouseover="changeColorOnMouseOver()" onmouseout="changeColorOnMouseOut()" /] [script type="text/javascript"] function changeColorOnMouseOver() { var control = document.getElementById("btn"); control.style.background = 'red'; control.style.color = 'yellow'; } function changeColorOnMouseOut() { var control = document.getElementById("btn"); control.style.background = 'black'; control.style.color = 'white'; } [/script] Events are very useful in real-world applications. For example they can be used to 1. Display confirmation dialog box on submitting a form 2. Form data validation and many more How to show confirmation dialog in JavaScript [input type="submit" value="Submit" id="btn" onclick="return confirmSubmit()" /] [script type="text/javascript"] function confirmSubmit() { if (confirm("Are you sure you want to submit")) { alert("You selected OK"); return true; } else { return false; confirm("You selected cancel"); } } [/script] JavaScript form validation example : In this example, both First Name and Last Name fields are required fields. When you type the first character in any of the textbox, the background colour is automatically changed to green. If you delete all the characters you typed or if you leave the textbox without entering any characters the background colour changes to red indicating the field is required. We made this possible using onkeyup and onblur events. onkeyup occurs when the user releases a key. onblur occurs when an element loses focus. [table] [tr] [td] First Name [/td] [td] [input type="text" id="txtFirstName" onkeyup="validateRequiredField('txtFirstName')" onblur="validateRequiredField('txtFirstName')"/] [/td] [/tr] [tr] [td] Last Name [/td] [td] [input type="text" id="txtLastName" onkeyup="validateRequiredField('txtLastName')" onblur="validateRequiredField('txtLastName')"/] [/td] [/tr] [/table] [script type="text/javascript"] function validateRequiredField(controlId) { var control = document.getElementById(controlId); control.style.color = 'white'; if (control.value == "") { control.style.background = 'red'; } else { control.style.background = 'green'; } } [/script]
Views: 59395 kudvenkat
How to set color picker rgb by HTML CSS Javascript?
 
21:04
How to set color picker rgb by HTML CSS Javascript?
change DIV Background every second with #Jquery
 
05:50
change Background every second with #Jquery
Views: 6223 Issa Abdullah
JavaScript - 23. Introduction to HTML DOM
 
07:06
From this video, we will be looking at HTML DOM, and using it in JavaScript. DOM stands for Document Object Model, and by using HTML DOM, we can create dynamic HTML webpages.
Views: 18842 Loot Tutorial
Android Basic Calculator/colorful  Using IntelXdk | Fully Tested On device.
 
18:48
I have explained how to create an Android application using intelXdk in which the app is built on HTML5 . I assume you have basic knowledge of HTML,JAVASCRIPT, AND CSS . # I have written the code to avoid wastage of time . # here is the code , copy and paste them according to the video . #connect your phone via a usb cable so that on every Ctrl+s , you can see the changes as live layout . #The code . // for Button Clearing // will clear all input fields . document.getElementById('result').value=""; document.getElementById('numFirst').value=""; document.getElementById('numSecond').value=""; // adding , substraction, multiplication , division // just change the sign of each accordingly . var num1 = document.getElementById('numFirst').value; var num2 = document.getElementById('numSecond').value; // these values have to be converted to integer to avoid concatination var result = parseInt(num1)+parseInt(num2); // setting the result field input document.getElementById('result').value=result; // for changing the background color document.body.style.backgroundColor="black"; // themesChange button // this is only changing backgrounds of the buttons in order to make it look colorful if(document.body.style.backgroundColor==="black"){ document.body.style.backgroundColor="darkcyan"; document.getElementById('numFirst').style.backgroundColor="darkcyan"; document.getElementById('numSecond').style.backgroundColor="darkcyan"; document.getElementById('result').style.backgroundColor="darkcyan"; document.getElementById('addition').style.backgroundColor="darkcyan"; document.getElementById('division').style.backgroundColor="darkcyan"; document.getElementById('substraction').style.backgroundColor="darkcyan"; document.getElementById('multiplication').style.backgroundColor="darkcyan"; document.getElementById('clearing').style.backgroundColor="darkcyan"; document.getElementById('themesChange').style.backgroundColor="darkcyan"; } // just to toggle the colors else{ document.body.style.backgroundColor="black"; document.getElementById('numFirst').style.backgroundColor="black"; document.getElementById('numSecond').style.backgroundColor="black"; document.getElementById('result').style.backgroundColor="black"; document.getElementById('addition').style.backgroundColor="darkcyan"; document.getElementById('division').style.backgroundColor="darkcyan"; document.getElementById('substraction').style.backgroundColor="darkcyan"; document.getElementById('multiplication').style.backgroundColor="darkcyan"; document.getElementById('clearing').style.backgroundColor="black"; document.getElementById('themesChange').style.backgroundColor="black"; } // the styling part // you can create an external stylesheet and add the link to the index.html page . // don't forget to put the css file inside angle bracket tags // youtube doesn't allow putting "style -- /style" tags . #numFirst,#numSecond,#result{ margin-top:20px; border-left-width:0px; border-right-width:0px; border-top-width:0px; width:90%; margin-left:20px; background-color:black; color:white; } #result{ margin-bottom:20px; } #additon{ border-width:0px; background-color:cornflowerblue; color:white; } #substraction{ border-width:0px; background-color:blueviolet; color:white; } #division{ border-width:0px; background-color:coral; color:white; } #multiplication{ border-width:0px; background-color:crimson; color:white; } #clearing,#themesChange{ background-color:darkseagreen; color:white; border-width:0px; } // Hope , I have helped you . // Thanks For watching and best of luck .
Views: 760 _ hackTech
How to create custom html radio button with color and style
 
03:16
html ,css,radio button web programming, education
Views: 3331 parampreet bawa
Increase decrease font size using jquery
 
07:58
Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/05/increase-decrease-font-size-using-jquery.html In this video we will discuss how to increase, decrease and reset font size using jQuery Replace < with LESSTHAN symbol and > with GREATERTHAN symbol <html> <head> <style> .divClass { font-size: 16px; background-color: #E3E3E3; width: 500px; padding: 5px; } </style> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { $('#linkIncrease').click(function () { modifyFontSize('increase'); }); $('#linkDecrease').click(function () { modifyFontSize('decrease'); }); $('#linkReset').click(function () { modifyFontSize('reset'); }) function modifyFontSize(flag) { var divElement = $('#divContent'); var currentFontSize = parseInt(divElement.css('font-size')); if (flag == 'increase') currentFontSize += 3; else if (flag == 'decrease') currentFontSize -= 3; else currentFontSize = 16; divElement.css('font-size', currentFontSize); } }); </script> </head> <body style="font-family:Arial"> Font-Size: <a id="linkIncrease" href="#">Increase</a> <a id="linkDecrease" href="#">Decrease</a> <a id="linkReset" href="#">Reset</a> <br /><br /> <div id="divContent" class="divClass"> <b>jQuery Tutorial</b> <ul> <li>What is jQuery</li> <li>What is $(document).ready(function() in jquery</li> <li>Benefits of using CDN</li> <li>#id selector</li> <li>Element Selector</li> <li>class selector</li> <li>attribute selector</li> <li>attribute value selectors</li> <li>case insensitive attribute selector</li> <li>jQuery input vs :input</li> </ul> </div> </body> </html>
Views: 21222 kudvenkat
How to Replace Your HTML Elements by Using CSS
 
02:54
How to Replace Your HTML Elements by Using CSS. Part of the series: HTML Basics. One way that you can replace your HTML elements is through the use of CSS. Replace your HTML elements by using CSS with help from a web and graphics specialist in this free video clip. Read more: http://www.ehow.com/video_12219281_replace-html-elements-using-css.html
Views: 224 eHowTech
change the text color in every second using JavaScript
 
05:32
how to change the text color in every some interval of time. for more visit my website : http://learnwithkhan.blogspot.in/
Views: 4214 LearnWith Khan
change background color on button click using javascript
 
07:22
OM INFO TECH IT EXECUTION
Views: 4966 Vivek Kumar
Learn JS HTML Dom In Arabic #29 - Elements - Style
 
05:33
أهم دروس الكورس شرح تغيير تنسيق ال Css الخاص بالعناصر بالجافا سكريبت
Views: 4111 Elzero Web School
Javascript - Changing HTML elements
 
07:54
This tutorial gives an introduction to Javascript by changing HTML elements on the onclick event with the document.getElementById() method.
Views: 2779 Tutormeonlineza
Material CSS Buttons Using CSS for Webpages (Hover color change)
 
06:38
Learn how to make good looking buttons in CSS and HTML easily They use material colours and change colour on hover Please hit the like button and put in your comments Do subscribe for future updates
Views: 4809 Computer Dude Snehit
Change your Body Background color on click using Javascript and CSS!!!!
 
05:11
Try yourself and enjoy learning web development!!!! SPECIAL THANKS TO HARI DULAL... Link to his channel: https://www.youtube.com/channel/UCl_abwEXklrjHWOIV87sCFQ?
Views: 159 Birat Acharya
HTML | JavaScript - How to Change background color in web page using onMouse Events (Beginners)
 
09:05
In this tutorial we are going to look at some basic Web designing components and elements. We are going to create inline script for HTML where we will use onMouseOver and onMouseOut event to trigger background color changes. If you will fail or get errors while coding this yourself then download this file and Right Click + Edit to view the source code: https://goo.gl/rvJbmk Comment below if you any Query related to this. Thank you. Download NotiFeed (β-version): https://goo.gl/UCvGXR Egmont Overture by Kevin MacLeod is licensed under a Creative Commons Attribution license (https://creativecommons.org/licenses/by/4.0/) Source: http://incompetech.com/music/royalty-free/index.html?isrc=USUAN1200069 Artist: http://incompetech.com/
Views: 1438 End-to-End
ANIMATION USING JAVASCRIPT,HTML AND CSS | MUST WATCH!
 
02:30
Hello friends ,I am here with a new video in which i will tell you how can you make an animation using javascript.htmland css. okkkk. here is the soucre code--- ENJOY!! IMPORTANT MESSAGE--(((((((((angle brackets are not allowed in the description so i am using "[" instead of angle brackets okkk but make sure when you COPY this code you replace these"[" with angle brackets okkk)))))))) [!DOCTYPE html] [html] [style] #myContainer { width: 400px; height: 400px; position: relative; background: #b0d7c5; } #myAnimation { width: 50px; height: 50px; position: absolute; background-color: #00b867; } [/style] [body] Click the button below to see the Animation Effect [p] [button onclick="myMove()"]Click Me [/button] [/p] [div id ="myContainer"] [div id ="myAnimation"][/div] [/div] [script] function myMove() { var elem = document.getElementById ("myAnimation"); var pos = 0; var id = setInterval(frame, 10); function frame() { if (pos == 350) { clearInterval(id); } else { pos++; elem.style.top = pos + 'px'; elem.style.left = pos + 'px'; } } } [/script] [/body] [/html] THANKS FOR WATCHING THE VIDEO !! IN THE NEXT VIDEO I WILL TELL YOU HOW TO MAKE LOADERS.. OKKK BYE HAVE FUN
Views: 84 ONENESS Pvt. Ltd.
Change color using PHP function |  change background color dynamically
 
09:33
Return color using PHP function | PHP and CSS3 combination programming. function can return color
Views: 1659 Rohit Kumar
PHP and CSS3 combination | changing background color dynamically
 
12:48
PHP and CSS3 combination PHP and CSS3 combination Dynamic CSS Embed PHP code in css
Views: 3607 Rohit Kumar
#7 how to make button in many colors with css only
 
03:16
#7 how to make button in many colors with css only ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ subscribe , like , comment and share ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ gruop facebook : www.facebook.com/elsawyweb
Views: 3458 HESHAM ELSAWY
JavaScript: Modify CSS
 
06:15
A video tutorial showing you how to modify CSS code using JavaScript http://www.abell12.com Follow us on Twitter http://ww.twitter.com/abell12youtube
Views: 662 abell12
Chapter 6 How to change color of text in CSS Hindi
 
08:22
Like, Comments, Share and SUBSCRIBE
Style binding in angular 2
 
07:10
Text version of the video http://csharp-video-tutorials.blogspot.com/2017/06/style-binding-in-angular-2.html Slides http://csharp-video-tutorials.blogspot.com/2017/06/style-binding-in-angular-2_29.html Angular 2 Tutorial playlist https://www.youtube.com/playlist?list=PL6n9fhu94yhWqGD8BuKuX-VTKqlNBj-m6 Angular 2 Text articles and slides http://csharp-video-tutorials.blogspot.com/2017/06/angular-2-tutorial-for-beginners_12.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists In this video we will discuss Style binding in Angular with examples. Setting inline styles with style binding is very similar to setting CSS classes with class binding. Please wtach Class binding video from Angular 2 tutorial before proceeding with this video. Notice in the example below, we have set the font color of the button using the style attribute. import { Component } from '@angular/core'; @Component({ selector: 'my-app', template: ` [button style="color:red"]My Button[/button] ` }) export class AppComponent { } The following example sets a single style (font-weight). If the property 'isBold' is true, then font-weight style is set to bold else normal. import { Component } from '@angular/core'; @Component({ selector: 'my-app', template: ` [button style='color:red' [style.font-weight]="isBold ? 'bold' : 'normal'"]My Button [/button] ` }) export class AppComponent { isBold: boolean = true; } style property name can be written in either dash-case or camelCase. For example, font-weight style can also be written using camel case - fontWeight. Some styles like font-size have a unit extension. To set font-size in pixels use the following syntax. This example sets font-size to 30 pixels. import { Component } from '@angular/core'; @Component({ selector: 'my-app', template: ` [button style='color:red' [style.font-size.px]="fontSize"]My Button [/button] ` }) export class AppComponent { fontSize: number = 30; } To set multiple inline styles use NgStyle directive 1. Notice the color style is added using the style attribute 2. ngStyle is binded to addStyles() method of the AppComponent class 3. addStyles() method returns an object with 2 key/value pairs. The key is a style name, and the value is a value for the respective style property or an expression that returns the style value. 4. let is a new type of variable declaration in JavaScript. 5. let is similar to var in some respects but allows us to avoid some of the common “gotchas” that we run into when using var. 6. The differences between let and var are beyond the scope of this video. For our example, var also works fine. 7. As TypeScript is a superset of JavaScript, it supports let import { Component } from '@angular/core'; @Component({ selector: 'my-app', template: ` [button style='color:red' [ngStyle]="addStyles()"]My Button[/button] ` }) export class AppComponent { isBold: boolean = true; fontSize: number = 30; isItalic: boolean = true; addStyles() { let styles = { 'font-weight': this.isBold ? 'bold' : 'normal', 'font-style': this.isItalic ? 'italic' : 'normal', 'font-size.px': this.fontSize }; return styles; } }
Views: 48436 kudvenkat
How to change background color according to user using color picker tool? | HTML
 
03:18
How to change background color according to user using color picker tool? | HTML In this video you will learn how to change background color according to user's wish using color picker input field in HTML. Also requires coding in javascript for changing background color. I hope you enjoy the video. For more videos subscribe my channel. Also visit and like my Facebook page: https://www.facebook.com/akashasylum01/ Thank You!!!
Views: 225 Akash Asylum
addeventlistener and removeeventlistener in JavaScript
 
11:51
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/01/addeventlistener-and.html In this video we will discuss assigning event handlers in JavaScript using the following special methods addEventListener removeEventListener attachEvent detachEvent Internet Explorer 9 (and later versions) & all the other modern browsers support addEventListener() and removeEventListener() methods. Sytnax for assigning event handler using addEventListener() method element.addEventListener(event, handler, phase) Sytnax for removing event handler using removeEventListener() method element.removeEventListener(event, handler, phase) Please note : The third parameter phase is usually set to false as it is not used. Example : In this example, we are passing values for all the 3 parameters including phase. [input type="button" value="Click me" id="btn"/] [script type="text/javascript"] btn.addEventListener("mouseover", changeColorOnMouseOver, false); btn.addEventListener("mouseout", changeColorOnMouseOut, false); function changeColorOnMouseOver() { this.style.background = 'red'; this.style.color = 'yellow'; } function changeColorOnMouseOut() { this.style.background = 'black'; this.style.color = 'white'; } [/script] Since the third parameter "phase" is optional you can omit it if you wish. btn.addEventListener("mouseover", changeColorOnMouseOver); btn.addEventListener("mouseout", changeColorOnMouseOut); Example : This example demonstrates removing event handlers. [input type="button" value="Click me" id="btn"/] [input type="button" value="Remove Event Handlers" onclick="removeEventHandlers()" /] [script type="text/javascript"] btn.addEventListener("mouseover", changeColorOnMouseOver); btn.addEventListener("mouseout", changeColorOnMouseOut); function changeColorOnMouseOver() { this.style.background = 'red'; this.style.color = 'yellow'; } function changeColorOnMouseOut() { this.style.background = 'black'; this.style.color = 'white'; } function removeEventHandlers() { btn.removeEventListener("mouseover", changeColorOnMouseOver); btn.removeEventListener("mouseout", changeColorOnMouseOut); } [/script] Using this approach you can assign more than one event handler method to a given event. The order in which handler methods are executed is not defined. In this example, 2 event handler methods (clickHandler1 & clickHandler3) are assigned to click event of the button control. When you click the button both the handler methods are executed. [input type="button" value="Click me" id="btn"/] [script type="text/javascript"] btn.addEventListener("click", clickHandler1); btn.addEventListener("click", clickHandler2); function clickHandler1() { alert("Handler 1"); } function clickHandler2() { alert("Handler 2"); } [/script] attachEvent() and detachEvent() methods only work in Internet Explorer 8 and earlier versions. Sytnax for assigning event handler using attachEvent() method element.attachEvent( "on"+event, handler) Sytnax for removing event handler using detachEvent() method element.detachEvent( "on"+event, handler) Example : This example will only work in Internet Explorer 8 and earlier versions. [input type="button" value="Click me" id="btn"/] [script type="text/javascript"] btn.attachEvent("onclick", clickEventHandler); function clickEventHandler() { alert("Click Handler"); } [/script] Cross browser solution : For the above example to work in all browsers, modify the script as shown below. [input type="button" value="Click me" id="btn"/] [script type="text/javascript"] if (btn.addEventListener) { btn.addEventListener("click", clickEventHandler); } else { btn.attachEvent("onclick", clickEventHandler); } function clickEventHandler() { alert("Click Handler"); } [/script]
Views: 37380 kudvenkat
Using JavaScripts tO Change FacebOok background Color [ 100% works ] [2012]
 
01:04
users should Get mozilla firefox before using scripts ! BLUEBAR SIDE NAME COLOR: javascript:void(document.getElementById('blueBar').style.background='red') within the brackets you can write any color for example : javascript:void(document.getElementById('blueBar').style.background='GREEN') INFOBAR SIDE COLOR: javascript:void(document.getElementById('content'). style.background='orange')
Views: 997 Junglee94
Change Background Colors with JavaScript and Input Range Sliders (Part 1)
 
11:45
Use JavaScript and the HTML5 input type range element to make sliders that change the background color of a page dynamically. demo file: http://www.ralphphillips.com/youtube/background-sliders.html
Views: 10187 Ralph Phillips
InnerHTML Style Function JS Topic 4.1
 
05:26
In this video you will learn about how to use Inner html function and Style property in Javascript. Video Content http://www.webdesigntutorial.galaxeepro.com/uploads/videoContent/InnerHTML-Style-Function-JS.zip Website http://www.webdesigntutorial.galaxeepro.com/web-design.php
Views: 226 Web Design Tutorial
Style Attributes in HTML
 
06:57
In this video I will show you the different types of style attributes in HTML. But first you have no idea about HTML then I highly recommend you watch my previous video (URL : https://youtu.be/YCVuw3A4uVI) because without watch that you may be in trouble with the style attributes because everywhere you need to start with the basics, if you have the idea about basic webpage structure then you can easily understand what's going on here! By the way the HTML programming is simpler compared to CSS which I will upload later on as I will go step by step and make a complete HTML course. Therefore, hit subscribe for those. Thanks for watching.
Views: 34 ProTechGear
Change gridview row color when checkbox is checked
 
08:23
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/03/change-gridview-row-color-when-checkbox.html In this video we will discuss how to change gridview row color when checkbox is checked. We want to achieve this using JavaScript. The background color of the rows that are select should be grey, and the rows that are not selected should be white. We will continue with the example that we worked with in Part 3 of JavaScript with ASP.NET tutorial. Modify HeaderCheckBoxClick() and ChildCheckBoxClick() JavaScript functions as shown below. [script type="text/javascript" language="javascript"] function HeaderCheckBoxClick(checkbox) { var gridView = document.getElementById("GridView1"); for (i = 1; i [ gridView.rows.length; i++) { gridView.rows[i].cells[0].getElementsByTagName("INPUT")[0].checked = checkbox.checked; // Depending on whether the checkbox in the header is checked or // unchecked change the background color of the data rows in the GridView if (checkbox.checked) { gridView.rows[i].style.background = '#CCCCCC'; } else { gridView.rows[i].style.background = '#FFFFFF'; } } } function ChildCheckBoxClick(checkbox) { var atleastOneCheckBoxUnchecked = false; var gridView = document.getElementById("GridView1"); for (i = 1; i [ gridView.rows.length; i++) { // Depending on whether the checkbox in the data row is checked or // unchecked change the background color of the rows in the GridView if (gridView.rows[i].cells[0].getElementsByTagName("INPUT")[0].checked == false) { gridView.rows[i].style.background = '#FFFFFF'; atleastOneCheckBoxUnchecked = true; } else { gridView.rows[i].style.background = '#CCCCCC'; } } gridView.rows[0].cells[0].getElementsByTagName("INPUT")[0].checked = !atleastOneCheckBoxUnchecked; } [/script] The following code makes the text in a GridView row bold on mouseover and normal on mouseout protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { e.Row.Attributes.Add("onmouseover", "this.style.fontWeight = 'bold';"); e.Row.Attributes.Add("onmouseout", "this.style.fontWeight= 'normal';"); } }
Views: 15718 kudvenkat
How to Use CSS Tutorial (Cascading Style Sheets)
 
15:01
http://www.frameworktv.com | LearnToProgram is now Framework. Visit and join for free daily videos teaching digital skills like coding and design. SUBSCRIBE TO THE FRAMEWORK CHANNEL http://www.youtube.com/subscription_center?add_user=UC4msOaZNMfPwMe_ztV5jFH SUBSCRIBE TO OUR EMAIL LIST (LEARN FOR FREE!) http://www.frameworktv.com/?src=YOUTUBE CSS (Cascading Style Sheets) are an important facet to quality web development. While your HTML code provides structure to the page it is the CSS code that allows you to create a pleasing design. In this video master trainer Mark Lassoff takes you through the basics of CSS code. This video is designed to be "just enough" to get you started using CSS code. Mark covers embedded styles sheets in the document head, attached style sheets, styling text, sizing divs and several ever concepts to help you get started with using css code. He will show you how to properly use a CSS selector and a CSS property. VISIT US ON FACEBOOK https://www.facebook.com/frameworkTechnicallySpeaking/ FOLLOW ON TWITTER https://twitter.com/fw_social INSTAGRAM https://www.instagram.com/frameworksocial/