wuerfel_menue.php


Quell Code


<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<style>
body {
  text-align: center;
  color:black;
  font-size:20px;
}

.container {
  height: 100px;
  width:100px;
  margin-top: 50px;
  margin-left:50%;
}

.dice {
  position: relative;
  margin: auto;
  height: 100px;
  width: 100px;
  transform-style: preserve-3d;
}

.side {
  position: absolute;
  height: 100px;
  width: 100px;
  opacity: .6;
  border-radius: 50%;
  display: table;
  }

.container:hover .dice > .side {
  position: relative;
  transform: none;
  display: inline-table;
  vertical-align:top;
  margin: 2%;
  transition: .8s;
}

.container .dice > .side:hover {
  transform: scale(1.4);
}

a {
  text-decoration: none;
  color:#000;
  display: table-cell;
  vertical-align: middle; 
 }

.one {
transform: rotateX(90deg) translateZ(50px);
  background: #7F2900;
}

.two {
transform: translateZ(50px);
  background: #CCBF00;
  }

.three {
  transform: rotateY(90deg) translateZ(50px);
  background: #C44CFF;
  }

.four {
  transform: rotateY(180deg) translateZ(50px);
  background: #7F0055;
 
  }

.five {
  transform: rotateY(-90deg) translateZ(50px);
  background: #00BDFF;
 
  }

.six {
  transform: rotateX(-90deg) translateZ(50px);
  background: #7DFF00;
}
</style>
</head>
<body>
<div class="container">
    <div class="dice" onmouseout="start()" id="dice">
    	<div class="side one">
             <a href="">Home</a>
        </div>
        <div class="side two">
             <a href="">Forum</a>
        </div>
		<div class="side three">
             <a href="">chat</a>
        </div> 
		<div class="side four">
             <a href="">Gästebuch</a>
        </div>
		<div class="side five">
             <a href="">Kontact</a>
        </div>
		<div class="side six">
             <a href="">Shoutbox</a>
        </div>
	</div>
</div>
<script>
var min=1000;
var max=5000;
function sekunden(){
   var x = Math.round(Math.random() * (max - min)) + min;
   return x;
}
var min1=1;
var max1=2365;
function rotation(){
   var x1 = Math.round(Math.random() * (max1 - min1)) + min1;
   return x1;
}
var min11=1;
var max11=136;
function rotation1(){
   var x11 = Math.round(Math.random() * (max11 - min11)) + min11;
   return x11;
}

was=['+','-'];
var min3=0;
var max3=1;
function was1(){
   var x3 = Math.round(Math.random() * (max3 - min3)) + min3;
   return was[x3];
}

function dreh(){
    var nn=rotation();
    var nn1=rotation1();
    document.getElementById("dice").animate([
   { transform: 'rotateX('+nn+'deg) rotateY('+nn+'deg) ' }, 
   { transform: 'translateY('+was1()+nn1+'px) translateX('+was1()+nn1+'px)' }
], { 
  duration: sekunden(),
  iterations: 1
});

timer=setTimeout(function(){dreh()},sekunden())
}

$(".container").hover(function(){
       $(".container,.dice").css('width','100%');
       $("#dice").css("animation-play-state", "paused"); 
       $(".container").css('margin-left','0');
       clearTimeout(timer);
  },
   function(){
       $(".container").css('width','100px');
       $(".container").css('margin-left','50%');
       dreh();
  });
  dreh();
</script>
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  7. <style>
  8. body {
  9. text-align: center;
  10. color:black;
  11. font-size:20px;
  12. }
  13. .container {
  14. height: 100px;
  15. width:100px;
  16. margin-top: 50px;
  17. margin-left:50%;
  18. }
  19. .dice {
  20. position: relative;
  21. margin: auto;
  22. height: 100px;
  23. width: 100px;
  24. transform-style: preserve-3d;
  25. }
  26. .side {
  27. position: absolute;
  28. height: 100px;
  29. width: 100px;
  30. opacity: .6;
  31. border-radius: 50%;
  32. display: table;
  33. }
  34. .container:hover .dice > .side {
  35. position: relative;
  36. transform: none;
  37. display: inline-table;
  38. vertical-align:top;
  39. margin: 2%;
  40. transition: .8s;
  41. }
  42. .container .dice > .side:hover {
  43. transform: scale(1.4);
  44. }
  45. a {
  46. text-decoration: none;
  47. color:#000;
  48. display: table-cell;
  49. vertical-align: middle;
  50. }
  51. .one {
  52. transform: rotateX(90deg) translateZ(50px);
  53. background: #7F2900;
  54. }
  55. .two {
  56. transform: translateZ(50px);
  57. background: #CCBF00;
  58. }
  59. .three {
  60. transform: rotateY(90deg) translateZ(50px);
  61. background: #C44CFF;
  62. }
  63. .four {
  64. transform: rotateY(180deg) translateZ(50px);
  65. background: #7F0055;
  66. }
  67. .five {
  68. transform: rotateY(-90deg) translateZ(50px);
  69. background: #00BDFF;
  70. }
  71. .six {
  72. transform: rotateX(-90deg) translateZ(50px);
  73. background: #7DFF00;
  74. }
  75. </style>
  76. </head>
  77. <body>
  78. <div class="container">
  79. <div class="dice" onmouseout="start()" id="dice">
  80. <div class="side one">
  81. <a href="">Home</a>
  82. </div>
  83. <div class="side two">
  84. <a href="">Forum</a>
  85. </div>
  86. <div class="side three">
  87. <a href="">chat</a>
  88. </div>
  89. <div class="side four">
  90. <a href="">Gästebuch</a>
  91. </div>
  92. <div class="side five">
  93. <a href="">Kontact</a>
  94. </div>
  95. <div class="side six">
  96. <a href="">Shoutbox</a>
  97. </div>
  98. </div>
  99. </div>
  100. <script>
  101. var min=1000;
  102. var max=5000;
  103. function sekunden(){
  104. var x = Math.round(Math.random() * (max - min)) + min;
  105. return x;
  106. }
  107. var min1=1;
  108. var max1=2365;
  109. function rotation(){
  110. var x1 = Math.round(Math.random() * (max1 - min1)) + min1;
  111. return x1;
  112. }
  113. var min11=1;
  114. var max11=136;
  115. function rotation1(){
  116. var x11 = Math.round(Math.random() * (max11 - min11)) + min11;
  117. return x11;
  118. }
  119. was=['+','-'];
  120. var min3=0;
  121. var max3=1;
  122. function was1(){
  123. var x3 = Math.round(Math.random() * (max3 - min3)) + min3;
  124. return was[x3];
  125. }
  126. function dreh(){
  127. var nn=rotation();
  128. var nn1=rotation1();
  129. document.getElementById("dice").animate([
  130. { transform: 'rotateX('+nn+'deg) rotateY('+nn+'deg) ' },
  131. { transform: 'translateY('+was1()+nn1+'px) translateX('+was1()+nn1+'px)' }
  132. ], {
  133. duration: sekunden(),
  134. iterations: 1
  135. });
  136. timer=setTimeout(function(){dreh()},sekunden())
  137. }
  138. $(".container").hover(function(){
  139. $(".container,.dice").css('width','100%');
  140. $("#dice").css("animation-play-state", "paused");
  141. $(".container").css('margin-left','0');
  142. clearTimeout(timer);
  143. },
  144. function(){
  145. $(".container").css('width','100px');
  146. $(".container").css('margin-left','50%');
  147. dreh();
  148. });
  149. dreh();
  150. </script>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<style>
body {
  text-align: center;
  color:black;
  font-size:20px;
}

.container {
  height: 100px;
  width:100px;
  margin-top: 50px;
  margin-left:50%;
}

.dice {
  position: relative;
  margin: auto;
  height: 100px;
  width: 100px;
  transform-style: preserve-3d;
}

.side {
  position: absolute;
  height: 100px;
  width: 100px;
  opacity: .6;
  border-radius: 50%;
  display: table;
  }

.container:hover .dice > .side {
  position: relative;
  transform: none;
  display: inline-table;
  vertical-align:top;
  margin: 2%;
  transition: .8s;
}

.container .dice > .side:hover {
  transform: scale(1.4);
}

a {
  text-decoration: none;
  color:#000;
  display: table-cell;
  vertical-align: middle; 
 }

.one {
transform: rotateX(90deg) translateZ(50px);
  background: #7F2900;
}

.two {
transform: translateZ(50px);
  background: #CCBF00;
  }

.three {
  transform: rotateY(90deg) translateZ(50px);
  background: #C44CFF;
  }

.four {
  transform: rotateY(180deg) translateZ(50px);
  background: #7F0055;
 
  }

.five {
  transform: rotateY(-90deg) translateZ(50px);
  background: #00BDFF;
 
  }

.six {
  transform: rotateX(-90deg) translateZ(50px);
  background: #7DFF00;
}
</style>
</head>
<body>
<div class="container">
    <div class="dice" onmouseout="start()" id="dice">
    	<div class="side one">
             <a href="">Home</a>
        </div>
        <div class="side two">
             <a href="">Forum</a>
        </div>
		<div class="side three">
             <a href="">chat</a>
        </div> 
		<div class="side four">
             <a href="">Gästebuch</a>
        </div>
		<div class="side five">
             <a href="">Kontact</a>
        </div>
		<div class="side six">
             <a href="">Shoutbox</a>
        </div>
	</div>
</div>
<script>
var min=1000;
var max=5000;
function sekunden(){
   var x = Math.round(Math.random() * (max - min)) + min;
   return x;
}
var min1=1;
var max1=2365;
function rotation(){
   var x1 = Math.round(Math.random() * (max1 - min1)) + min1;
   return x1;
}
var min11=1;
var max11=136;
function rotation1(){
   var x11 = Math.round(Math.random() * (max11 - min11)) + min11;
   return x11;
}

was=['+','-'];
var min3=0;
var max3=1;
function was1(){
   var x3 = Math.round(Math.random() * (max3 - min3)) + min3;
   return was[x3];
}

function dreh(){
    var nn=rotation();
    var nn1=rotation1();
    document.getElementById("dice").animate([
   { transform: 'rotateX('+nn+'deg) rotateY('+nn+'deg) ' }, 
   { transform: 'translateY('+was1()+nn1+'px) translateX('+was1()+nn1+'px)' }
], { 
  duration: sekunden(),
  iterations: 1
});

timer=setTimeout(function(){dreh()},sekunden())
}

$(".container").hover(function(){
       $(".container,.dice").css('width','100%');
       $("#dice").css("animation-play-state", "paused"); 
       $(".container").css('margin-left','0');
       clearTimeout(timer);
  },
   function(){
       $(".container").css('width','100px');
       $(".container").css('margin-left','50%');
       dreh();
  });
  dreh();
</script>

vConsole
13:28:13
Uncaught TypeError: Cannot read properties of null (reading 'style')
/loesungen/index.php?name=wuerfel_menue.php:2751:53
13:28:14
500
13:28:13
WeChatLib: 0 (xxxx.xx.xx)
13:28:15
System: Unknown
13:28:15
Protocol: HTTPS
13:28:15
UA: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
13:28:15
navigationStart: 1744982892778
13:28:15
navigation: 4ms
13:28:15
dns: 115ms
13:28:15
tcp (ssl): 228ms (117ms)
13:28:15
request: 220ms
13:28:15
response: 7ms
13:28:15
domComplete (domLoaded): 1867ms (1436ms)
13:28:15
loadEvent: 17ms
13:28:15
total (DOM): 2455ms (2438ms)