PDA

View Full Version : [size=34]HA HA HA MUTTYY[/size]



asux
05-10-2014, 11:50 AM
:wasntme:

asux
05-10-2014, 11:50 AM
HA HA HA MUTTYY

asux
05-10-2014, 11:51 AM
<!-- this script got from www.htmlbestcodes.com-Coded by: Krishna Eydat -->
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<style>
ul.demo1 li{ /* initial CSS for demo 1 (before it's animated) */
opacity: 0; /* animate opacity into view */
left: -100%; /* animate left property into view */
}

ul.demo1-after li{ /* Post CSS for demo 1 (after it's animated). "demo1-after" dynamically added to UL */
opacity: 1;
left: 0;
}
</style>

<script type="text/javascript">
(function($){

var defaults = {
duration: 0.5,
pause: 0.5,
delaybeforestart: 'onvisible',
postclass: 'animated-after'
}

function css3propmap(){ // param: {css3prop1: value1, css3prop2: value2, etc}
var vendorprefixes = ['-ms-', '-o-', '-moz-', '-webkit-'],
propmap = {}
for (var i=0; i<arguments.length; i++){
propmap[arguments[i][0]] = arguments[i][1]
for (var t=0; t<vendorprefixes.length; t++){
propmap[vendorprefixes[t] + arguments[i][0]] = arguments[i][1]
}
}
return propmap
}


$.fn.animatelist = function(options){
if (typeof $.animatedlists == "undefined") // global var to store ref to ULs that will be animated
$.animatedlists=[]

function inrange(range, field){ // check if "playing field" is inside range
var rangespan = range[1]-range[0], fieldspan = field[1]-field[0]
if ( (range[0]-field[0]) > 0 && (range[0]-field[0]) <= fieldspan ) // if top of range (viewport) is on field
return true
else{
if ( (range[0]-field[0]) < 0 && (range[0]+rangespan) >= field[0] ) // if part of range overlaps field
return true
}
return false
}

if (Array.filter && !$(window).data('scrollbind')){ // on window scroll
var $window = $(window)
$window.bind('scroll.scrollbind', function(){
var scrolltop = $window.scrollTop(), animatedlists = $.animatedlists
animatedlists = animatedlists.filter(function(el, index){ // find ULs that are visible on the screen and should be shown
return (!el.shownflag && inrange([el.offsettop, el.offsettop+el.ulheight], [scrolltop, scrolltop+$window.height()]))
})
for (var i=0; i < animatedlists.length; i++){
animatedlists[i].$ul.addClass(animatedlists[i].postclass)
animatedlists[i].shownflag = true
}
})
$window.bind('load', function(){ // refresh UL top offsets when the page fully loads
var animatedlists = $.animatedlists
for (var i=0; i < animatedlists.length; i++){
animatedlists[i].offsettop = animatedlists[i].$ul.offset().top
animatedlists[i].ulheight = animatedlists[i].$ul.outerHeight()
}
$window.trigger('scroll.scrollbind')
})
$(window).data('scrollbind', true)
}

return this.each(function(){
var $ul = $(this).css({overflow:'hidden'})
var o = $.extend({}, defaults, options)
var $lis = $ul.children('li').css({position:'relative'})
$lis.each(function(i){
$(this).css(css3propmap(['transition', 'all ' + o.duration + 's ease-in-out ' + i * (o.pause) + 's']))
})
if (typeof o.delaybeforestart == "number"){
setTimeout(function(){$ul.addClass(o.postclass)}, o.delaybeforestart * 1000)
}
else if (o.delaybeforestart == "onvisible" && Array.filter){
var offsettop = $ul.offset().top
$.animatedlists.push({$ul:$ul, offsettop:offsettop, ulheight:$ul.outerHeight(), shownflag:false, postclass:o.postclass})
}
else{
$ul.addClass(o.postclass)
}
}) // end return
}

})(jQuery);
</script>

<script>

jQuery(function($){ // on DOM load
$('ul.demo1').animatelist({pause: 1, postclass: 'demo1-after'})
})

</script>
</head>
<body>
<ul class="demo1">
<li><a href="http://www.htmlbestcodes.com/">Useful free HTML code</a></li>
<li><a href="http://www.htmlbestcodes.com/">Make your website more interesting</a></li>
<li><a href="http://www.htmlbestcodes.com/">Impelement easy</a></li>
<li><a href="http://www.htmlbestcodes.com/">Beautiful and interesting</a></li>
<li><a href="http://www.htmlbestcodes.com/">All at htmlbestcodes.com</a></li>
<li><a href="http://www.htmlbestcodes.com/">www.htmlbestcodes.com</a></li>
</ul>
</body>
</html>

asux
05-10-2014, 11:53 AM
<!-- This Script is from www.html5freecode.com, Coded by: Kerixa Inc-->
<!DOCTYPE html>
<html>
<head>
<title>Welcome to WebGL</title>
<script src="http://www.html5freecode.com/libs/Three.js"></script>
<script src="http://www.html5freecode.com/libs/jquery-1.6.4.js"></script>
<script src="http://www.html5freecode.com/libs/jquery.mousewheel.js"></script>
<script src="http://www.html5freecode.com/libs/RequestAnimationFrame.js"></script>
<script src="http://www.html5freecode.com/libs/sim.js"></script>
<script>
var renderer = null, scene = null,camera = null,mesh = null,app, tcnt=0;
function onLoad(){
var container = document.getElementById("container");
app = new MyApp();
app.init({ container: container });
}

function textureload(){
tcnt++
if (tcnt==7){
document.getElementById('ld').innerHTML="";
app.run();
}
}
MyApp = function(){
Sim.App.call(this);}
MyApp.prototype = new Sim.App();
MyApp.prototype.init = function(param){
Sim.App.prototype.init.call(this, param);

// Create Objects and Load them Here:
var cube = new Cube();
cube.init();
this.addObject(cube);

sh= new Array()
for (i=1; i<=6; i++){
sh[i]= new Shape();
sh[i].init(i);
this.addObject(sh[i]);
}

var light= new Light();
light.init(-20,6,1);
this.addObject(light);
var light2= new Light();
light2.init(40,8,10);
this.addObject(light2);

var k=21;
this.camera= new THREE.OrthographicCamera(container.offsetWidth/ - k, container.offsetWidth/ k, container.offsetHeight/ k, container.offsetHeight/ - k, -500, 2000 );
this.camera.position.y= 2;
this.camera.position.z= 3;
var a = new THREE.Vector3(0 , 0.5, 0 );
this.camera.lookAt(a);

}
//Objects Nececssary Definitions:
Cube = function(){
Sim.Object.call(this);}
Cube.prototype = new Sim.Object();
Shape= function(){
Sim.Object.call(this);}
Shape.prototype = new Sim.Object();
Light = function(){
Sim.Object.call(this);}
Light.prototype = new Sim.Object();

//Define Objects Specifications:
Cube.prototype.init = function(){
var map1 = "http://www.html5freecode.com/files/webgl-texture-green.jpg";
var grass = THREE.ImageUtils.loadTexture(map1,null,textureload);

var geometry = new THREE.CubeGeometry(40, 1, 60);
var material = new THREE.MeshPhongMaterial( { map: grass} );
var mesh = new THREE.Mesh( geometry, material );
mesh.position.set(0,-1,0)
this.setObject3D(mesh);
}
Shape.prototype.init = function(ind){
switch (ind){
case 1:
var geometry = new THREE.CylinderGeometry(1.5, 2, 4, 32, 32,false);
break;
case 2:
var geometry = new THREE.IcosahedronGeometry(2.5);
break;
case 3:
var geometry = new THREE.OctahedronGeometry(2.5);
break;
case 4:
var geometry = new THREE.TetrahedronGeometry(2.5);
break;
case 5:
var geometry = new THREE.TorusGeometry(2,0.8);
break;
case 6:
var geometry = new THREE.TorusKnotGeometry(1.5,0.7);
break;
}
var map2 = "http://www.html5freecode.com/files/webgl-texture-purple.jpg";
var purple = THREE.ImageUtils.loadTexture(map2,null,textureload);
var material = new THREE.MeshPhongMaterial( { map: purple } );
var mesh = new THREE.Mesh( geometry, material );
mesh.position.set(ind*6-21,3,-2)
this.setObject3D(mesh);
}
Light.prototype.init = function(x,y,z){
var lit = new THREE.PointLight( 0xffffff, 1.2);
lit.position.set(x, y, z);
this.setObject3D(lit);
}

//The Changes of the Object in Each Scene:
Shape.prototype.update = function(ind){
this.object3D.rotation.z += 0.01;
this.object3D.rotation.x += 0.01;
}


</script>
</head>
<body style="" onLoad="onLoad();">
<div style="text-align: left;display:inline"><font face="Tahoma"><a target="_blank" href="http://www.html5freecode.com"><span style="font-size: 8pt; text-decoration: none">HTML5 Free Code</span></a></font></div>
<b><div id="ld" style="display:inline; font-size: 18pt; color: #9E0A2D;">&nbsp;&nbsp; . . . L o a d i n g . . .</div></b>
<div id="container" style="width:95%; height:80%; overflow:hidden; position:absolute; background-color:#000000"></div>
</body>
</html>