小さいLemon教育*HTMLコードはキューブのホームページを書きます*遊ぶのは更に楽しいです


内容:キューブ
***スタイル***@CHARSET「UTF-8」;*{padding:0;margin:0;}
html{ background: -webkit-radial-gradient(center,farthest-corner,red,black); height:100%;
} #box{ position:absolute; top:50%; left:50%; width:300px; height:300px; margin-top:-150px; margin-left:-150px; -webkit-transform-style:preserve-3d; -webkit-perspective:800px; } #cube{ width:100px; height:100px; margin:100px auto; -webkit-transform-style:preserve-3d; -webkit-transition:0.5s ease all; -webkit-transform:rotateX(-30deg) rotateY(-30deg); } #cube li{ display:block; position:absolute; width:98px; height:98px; border:1px solid black; -webkit-transform-style:preserve-3d; -webkit-transition:0.5s ease all; -webkit-user-select:none; z-index:10; } #front,#back,#left,#right,#top,#bottom{ -webkit-transform-style:preserve-3d; -webkit-transition:0.5s ease all; } js $(document).ready(function(){var surface=new Array();var facediv=";var mx;//x方向変位var my;//y方向変位var rox=-30;var roy=-30;var sfid;//マウスクリックキューブの位置/***色、位置*/for(var i=1;i<=6;i+){surface[i]=new Array();for(var j=1;j<=1;j<=9;j+){{ready(function(){var sur sur surface=new Array();;var far facediv="";var mx;;;;;;;;surface[i][j]=new Array();for(var k=1;k<=2;k+){ surface[i][j][k]=""; } } }
for(var i=1;i<=6;i++){
	for(var j=1;j<=9;j++){
		switch(i){
		case 1:
			surface[i][j][1]="blue";
			break;
		case 2:
			surface[i][j][1]="lime";
			break;
		case 3:
			surface[i][j][1]="red";
			break;
		case 4:
			surface[i][j][1]="yellow";
			break;
		case 5:
			surface[i][j][1]="white";
			break;
		case 6:
			surface[i][j][1]="#FFB416";
			break;
		
		}
	}
}
/**
 *        
 */
local();
function local(){
for(var i=1;i<=6;i++){
	for(var j=1;j<=9;j++){
		switch(i){
		case 1:
			surface[i][j][2]="rotateY(0deg)";
			break;
		case 2:
			surface[i][j][2]="rotateY(180deg)";
			break;
		case 3:
			surface[i][j][2]="rotateY(-90deg)";
			break;
		case 4:
			surface[i][j][2]="rotateY(90deg)";
			break;
		case 5:
			surface[i][j][2]="rotateX(90deg)";
			break;
		case 6:
			surface[i][j][2]="rotateX(-90deg)";
			break;
		
		}
	}
}
/**
 *          
 */
for(var i=1;i<=6;i++){
	surface[i][1][2] +="translateX(-100px) translateY(-100px)";
	surface[i][2][2] +="translateX(0px) translateY(-100px)";
	surface[i][3][2] +="translateX(100px) translateY(-100px)";
	surface[i][4][2] +="translateX(-100px) translateY(0px)";
	surface[i][5][2] +="translateX(0px) translateY(0px)";
	surface[i][6][2] +="translateX(100px) translateY(0px)";
	surface[i][7][2] +="translateX(-100px) translateY(100px)";
	surface[i][8][2] +="translateX(0px) translateY(100px)";
	surface[i][9][2] +="translateX(100px) translateY(100px)";
	
}}
/**
 *   div     ,  li      
 */
htmldiv();
function htmldiv(){
	facediv="";
for(var i=1;i<=6;i++){
	for(var j=1;j<=9;j++){
		if(j==1){
		switch(i){
		case 1:facediv +='
'; break; case 2:facediv +='
'; break; case 3:facediv +='
'; break; case 4:facediv +='











アルファベットで分類:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z その他