Visualizzazione dei risultati da 1 a 5 su 5

Discussione: jQuery switch class

Visualizzazione discussione

  1. #2
    Ho provato anche così mettendo tutto nella stessa cartella ma non funziona lo stesso

    codice HTML:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>  
      <meta http-equiv="description" content=""/>  
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
      <title>switchClass demo</title>  
      <link rel="stylesheet" href="jquery-ui.css" type="text/css"/>  
      <style>  
        div {    
          width: 100px;    
          height: 100px;    
          background-color: #ccc;  
        }  
        .big {    
          width: 200px;    
          height: 200px;  
        }  
        .blue {    
          background-color: #00f; 
        }  
      </style>  
      <script type="text/javascript" src="jquery-1.10.2.js"></script>  
      <script type="text/javascript" src="jquery-ui.js"></script>
    </head>
    <body> 
      <div class="big"></div> 
      <script>
        window.onload = function() {
          $( "div" ).click(function() {  
            $( this ).switchClass( "big", "blue", 1000, "easeInOutQuad" );});};
      </script> 
    </body>
    </html>
    Ultima modifica di bibbul_dex; 30-07-2014 a 23:31

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.