Showing posts with label Best html5 institutes in Delhi. Show all posts
Showing posts with label Best html5 institutes in Delhi. Show all posts

Wednesday, August 19, 2015

How to create theme changer using Cookies in JavaScript?

What is the theme?
Website theme determines the overall look of your site. Your theme is the layout or blueprint of your site, it helps structure your website, giving you to areas to place pictures and text, or things like navigation bars and other widgets.
A theme requirements the look and style of your website. Your theme is made up of a range of things, such as font types and sizes. Your theme helps to reflect your identity through your site, and helps to improve your customer’s experience.

Simply put, the layout and themes are the same as decorating a room in your house.
What does the theme control?
Website themes control the following elements of your website:
       Default colors and shapes
       Default site background and background image library
       Text style choices in the content editor(e.g. Heading 1, heading 2)
       Master layouts
       Customization option that appear on the colors and styles screen
       Menu location (vertical and horizontal) and the menu are static and dynamic.
Step to adding a Style Sheet change in JavaScript:
Let’s suppose that we have the following style sheet defined in our HEAD section.
<link rel="stylesheet" type="text/css" href="web-css/theme1.css" title="theme1">
<link rel="alternate stylesheet" type="text/css" href="web-css/theme2.css" title="theme2">
Create a Button:
<form method="post" class="left">
            <input type="submit" value="theme1" onclick="change_style('theme1');return false;" name="theme" id="theme1">
            <input type="submit" value="theme2" onclick="change_style('theme2');return false;" name="theme" id="theme2">
</form>
When the visitor clicks any of the button, the javascript onclick handler, change_style(), will run. The function will be passed either theme1 or theme2 as its parameter, depending on which button is clicked. The words theme1 and theme2 correspond to the title attributes for the link elements referencing the style sheets.
JavaScript Function to Change Style Sheet: 
The actual JavaScript code needed to implement css style changing can be found below.
<script type="text/javascript">
var scname = "style" ;    //Global variable declaration and initialize a value
var scduration = 30 ;      //Global variable declaration and initialize a value
function change_style ( css_title )   // let’s create a function Name
{           //css_style is used to pass  a value
  var i, tag ;   //local variable declaration
  tag = document.getElementsByTagName("link") ; 
/*getElementByTagName is a method and link is representing the name of elements. */
  for (i = 0; i < tag.length ; i++ )  //for Loop execute a block of code
  {
    if ((tag[i].rel.indexOf( "stylesheet" ) != -1)&&tag[i].title)
    {
      tag[i].disabled = true ;
      if (tag[i].title == css_title)
      {
        tag[i].disabled = false ;
      }
            /* The above code checks the value : If value is exact equal(==) than condition is true and put the Boolean value false. */
    }
/*The above code checks the value: If value is NOT EQUAL -1 (!=-1) and tag(array) of I value are same than condition true then after tag[i] is array and disabled is method and put the Boolean value true.*/

    set_cookie( scname, css_title,scduration );

  }
}
function set_style_from_cookie()   //Another function
{
  var css_title = get_cookie( scname );
  if (css_title.length) {
    switch_style( css_title );
  }
}
function set_cookie ( cookie_name, cookie_value,
    lifespan_in_days, valid_domain )  
{
   
    var domain_string = valid_domain ?
                       ("; domain=" + valid_domain) : '' ;
    document.cookie = cookie_name +
                       "=" + encodeURIComponent( cookie_value ) +
                       "; max-age=" + 60 * 60 *
                       24 * lifespan_in_days +
                       "; path=/" + domain_string ;
}
function get_cookie ( cookie_name )
{   
    var cookie_string = document.cookie ;
    if (cookie_string.length != 0) {
        var cookie_value = cookie_string.match ('(^|;)[\s]*' + cookie_name +
                        '=([^;]*)' );
        return decodeURIComponent ( cookie_value[2] ) ;
    }
    return '' ;
}
Onload Cookies Change: 
The visitors style sheet settings remain when they visit other pages of your site, as well as when they reload the page, you will also need to add an onload attribute to your web pages body element.
For example:
<body onload=”set_style_from_cookie()”>
Summary:
This article finish the series on creating a theme changer, to change style sheets, using both CSS and JavaScript. Above explanation will surely help you in understanding Theme Changer in JavaScript, CSS and HTML.

Friday, July 10, 2015

Importance of HTML5, CSS3 and PHP in E-commerce website…

In past year India has evolved itself as knowledge-based based economy from agriculture based economy. In result IT industry has been instrumental in changing face of India's economy on global platform. The IT sector’s contribution to India's GDP has increased from 1.2% (in 1998) to 7.3% (in 2015). th of IT sector’s has led to growing demand for technically qualified IT professionals.

Recently a news has been published by HT that IT Industry is about to hire approximate 1,80,000 professionals. This demand of IT industries has led to transformation in the structure of education in It industries. So, IT education has becoming the need of the hour.

AMDEC Multimedia is such institute that provides training in the courses like web design, web development , Java, PHP, MySQL, web master, that are in demand in the industry. The institute is equipped with nice infrastructure, well trained and expert faculty, syllabus and curriculum in tandem with the industry norms and provides 100% placement assistance.

Now a days E-commerce has become a backbone of the industry or company. Lots of products and services decisions are being taken over Internet for the purpose of buy and sell. This facility reduced the psychological distances to a great extent and the transactions are being faster and saving the time.

This E-commerce is basically one of the applications of PHP, hypertext Preprocessor, which is discuss as HTML-embedded server side scripting language used for the carry out transactions on  Internet in integration with MySQL which is used to save the data so manipulated. Thus PHP when used in integration with MySQL can be of immense use, making it important to learn the language and the database. This has led ADMEC Multimedia Institute to initiate a course in PHP and MySQLin Delhi , Rohini.


The rapidly growth in IT sector has also led to coming up of many technologies some of which get extinct while some are evergreen like html5/css3/PHP/JAVA/C/C++/word-press/joomla. Going with the flow and learning new technologies is what is necessary for a professional to survive in the IT industry and hence need to go in for courses like html5/css3 PHP/JAVA/C/C++/word-press/joomla/MySQL, etc that are in top..



Wednesday, June 24, 2015

Demand of HTML5 and CSS3 in IT industry

Due to the interaction of the people with the internet and overall popularity of the internet; IT Companies, business industries, and professionals got more attention in last few years to get the business form this platform. So in result; a race has started amongst the companies to create rich featured, robust, intuitive, and easy to navigate website so that they can offer maximum user experience to their visitors while they are on their websites.

A website with good user experience and design can attract more and more visitors. This type of need and dependency on websites has impacted lots of company, due to this reason the demand for the computer or web related languages being used for the development of web pages has increased tremendously.

Few of the popular languages useful for web designing are HTML5/CSS3, JavaScript, PHP, ASP.NET, Python, Node.js, Ruby on Rails (ROR), JSP etc.

HTML/CSS3 and PHP are even more popular than any other language and they also work on almost every platform. For a desirable website, it is necessary to take a moment to think which language is suitable for success of a website?

This is also very important for a web designer that he must know about the main elements and the things a web designer should take into account to come with informative websites.

Why HTML and CSS has become so important?

Especially HTML5 and CSS3 have completely changed the way how user interface development (UI) was doing earlier. New features of HTML5 such as Semantic Structure and Advanced APIs are the reason to create revolution in the industry.

CSS is now redesigned with advanced transitions, animation, and pseudo selectors to create high level drop down menus, image slider, buttons, pop-ups, image galleries without a much need of JavaScript.

The most important reason for the HTML5 success is that all the websites and web apps whether they are in PHP, ASP, JSP, ROR, Python, Node.JS, Drupal, Joomla, WordPress, Openkart, Magento etc needs an UI first and i.e. in always HTML5 and CSS3.

Are you looking for html5 &css3 training institutes then ADMEC Multimedia Institute is offering short term and long term online certification course of HTML5 and CSS3 training in Delhi with affordable cost. This short term online certification course is very helpful for the students who want to make a professional website using advanced features of HTML5 and CSS3. 

Featured Post

ADMEC Multimedia Institute Scholarship Program

The ADMEC Multimedia Institute scholarship program aims to select and trained talented non working female, married woman and non married m...