- <!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
- <html>
- <head>
- <title>3</title>
- <styletype="text/css">
- html{
- overflow:hidden;
- }
- body{
- margin:0px;
- padding:0px;
- background:#000;
- position:absolute;
- width:100%;
- height:100%;
- cursor:crosshair;
- }
- #diapoContainer{
- position:absolute;
- left:10%;
- top:10%;
- width:80%;
- height:80%;
- background:#222;
- overflow:hidden;
- }
- .imgDC{
- position:absolute;
- cursor:pointer;
- border:#000solid2px;
- filter:alpha(opacity=90);
- opacity:0.9;
- visibility:hidden;
- }
- .spaDC{
- position:absolute;
- filter:alpha(opacity=20);
- opacity:0.2;
- background:#000;
- visibility:hidden;
- }
- .imgsrc{
- position:absolute;
- width:120px;
- height:67px;
- visibility:hidden;
- margin:4%;
- }
- #bkgcaption{
- position:absolute;
- bottom:0px;
- left:0px;
- width:100%;
- height:6%;
- background:#1a1a1a;
- }
- #caption{
- position:absolute;
- font-family:arial,helvetica,verdana,sans-serif;
- white-space:nowrap;
- color:#fff;
- bottom:0px;
- width:100%;
- left:-10000px;
- text-align:center;
- }
- </style>
- <scripttype="text/javascript">
- varxm;
- varym;
- /*====onmousemoveevent====*/
- document.onmousemove=function(e){
- if(window.event)e=window.event;
- xm=(e.x||e.clientX);
- ym=(e.y||e.clientY);
- }
- /*====windowresize====*/
- functionresize(){
- if(diapo)diapo.resize();
- }
- onresize=resize;
- /*====opacity====*/
- setOpacity=function(o,alpha){
- if(o.filters)o.filters.alpha.opacity=alpha*100;elseo.style.opacity=alpha;
- }
- ////////////////////////////////////////////////////////////////////////////////////////////
- /*=====encapsulatescript====*/
- diapo={
- O:[],
- DC:0,
- img:0,
- txt:0,
- N:0,
- xm:0,
- ym:0,
- nx:0,
- ny:0,
- nw:0,
- nh:0,
- rs:0,
- rsB:0,
- zo:0,
- tx_pos:0,
- tx_var:0,
- tx_target:0,
- ///////scriptparameters////////
- attraction:2,
- acceleration:.9,
- dampening:.1,
- zoomOver:2,
- zoomClick:6,
- transparency:.8,
- font_size:18,
- //////////////////////////////////
- /*====diaporesize====*/
- resize:function(){
- with(this){
- nx=DC.offsetLeft;
- ny=DC.offsetTop;
- nw=DC.offsetWidth;
- nh=DC.offsetHeight;
- txt.style.fontSize=Math.round(nh/font_size)+"px";
- if(Math.abs(rs-rsB)<100)for(vari=0;i<N;i++)O[i].resize();
- rsrsB=rs;
- }
- },
- /*====creatediapo====*/
- CDiapo:function(o){
- /*====initvariables====*/
- this.o=o;
- thisthis.x_pos=this.y_pos=0;
- thisthis.x_origin=this.y_origin=0;
- thisthis.x_var=this.y_var=0;
- thisthis.x_target=this.y_target=0;
- thisthis.w_pos=this.h_pos=0;
- thisthis.w_origin=this.h_origin=0;
- thisthis.w_var=this.h_var=0;
- thisthis.w_target=this.h_target=0;
- this.over=false;
- this.click=false;
- /*====createshadow====*/
- this.spa=document.createElement("span");
- this.spa.className="spaDC";
- diapo.DC.appendChild(this.spa);
- /*====createthumbnailimage====*/
- this.img=document.createElement("img");
- this.img.className="imgDC";
- this.img.src=o.src;
- thisthis.img.O=this;
- diapo.DC.appendChild(this.img);
- setOpacity(this.img,diapo.transparency);
- /*====mouseevents====*/
- this.img.onselectstart=newFunction("returnfalse;");
- this.img.ondrag=newFunction("returnfalse;");
- this.img.onmouseover=function(){
- diapo.tx_target=0;
- diapo.txt.innerHTML=this.O.o.alt;
- this.O.over=true;
- setOpacity(this,this.O.click?diapo.transparency:1);
- }
- this.img.onmouseout=function(){
- diapo.tx_target=-diapo.nw;
- this.O.over=false;
- setOpacity(this,diapo.transparency);
- }
- this.img.onclick=function(){
- if(!this.O.click){
- if(diapo.zo&&diapo.zo!=this)diapo.zo.onclick();
- this.O.click=true;
- this.O.x_origin=(diapo.nw-(this.O.w_origin*diapo.zoomClick))/2;
- this.O.y_origin=(diapo.nh-(this.O.h_origin*diapo.zoomClick))/2;
- diapo.zo=this;
- setOpacity(this,diapo.transparency);
- }else{
- this.O.click=false;
- this.O.over=false;
- this.O.resize();
- diapo.zo=0;
- }
- }
- /*====rearrangethumbnailsbasedon"imgsrc"imagesposition====*/
- this.resize=function(){
- with(this){
- x_origin=o.offsetLeft;
- y_origin=o.offsetTop;
- w_origin=o.offsetWidth;
- h_origin=o.offsetHeight;
- }
- }
- /*====animationfunction====*/
- this.position=function(){
- with(this){
- /*====settargetposition====*/
- w_target=w_origin;
- h_target=h_origin;
- if(over){
- /*====mouseover====*/
- w_target=w_origin*diapo.zoomOver;
- h_target=h_origin*diapo.zoomOver;
- x_target=diapo.xm-w_pos/2-(diapo.xm-(x_origin+w_pos/2))/(diapo.attraction*(click?10:1));
- y_target=diapo.ym-h_pos/2-(diapo.ym-(y_origin+h_pos/2))/(diapo.attraction*(click?10:1));
- }else{
- /*====mouseout====*/
- x_target=x_origin;
- y_target=y_origin;
- }
- if(click){
- /*====clicked====*/
- w_target=w_origin*diapo.zoomClick;
- h_target=h_origin*diapo.zoomClick;
- }
- /*====magicspringequations====*/
- x_pos+=x_varx_var=x_var*diapo.acceleration+(x_target-x_pos)*diapo.dampening;
- y_pos+=y_vary_var=y_var*diapo.acceleration+(y_target-y_pos)*diapo.dampening;
- w_pos+=w_varw_var=w_var*(diapo.acceleration*.5)+(w_target-w_pos)*(diapo.dampening*.5);
- h_pos+=h_varh_var=h_var*(diapo.acceleration*.5)+(h_target-h_pos)*(diapo.dampening*.5);
- diapo.rs+=(Math.abs(x_var)+Math.abs(y_var));
- /*====htmlanimation====*/
- with(img.style){
- left=Math.round(x_pos)+"px";
- top=Math.round(y_pos)+"px";
- width=Math.round(Math.max(0,w_pos))+"px";
- height=Math.round(Math.max(0,h_pos))+"px";
- zIndex=Math.round(w_pos);
- }
- with(spa.style){
- left=Math.round(x_pos+w_pos*.1)+"px";
- top=Math.round(y_pos+h_pos*.1)+"px";
- width=Math.round(Math.max(0,w_pos*1.1))+"px";
- height=Math.round(Math.max(0,h_pos*1.1))+"px";
- zIndex=Math.round(w_pos);
- }
- }
- }
- },
- /*====mainloop====*/
- run:function(){
- diapo.xm=xm-diapo.nx;
- diapo.ym=ym-diapo.ny;
- /*====captionanim====*/
- diapo.tx_pos+=diapodiapo.tx_var=diapo.tx_var*.9+(diapo.tx_target-diapo.tx_pos)*.02;
- diapo.txt.style.left=Math.round(diapo.tx_pos)+"px";
- /*====imagesanim====*/
- for(variindiapo.O)diapo.O[i].position();
- /*====loop====*/
- setTimeout("diapo.run();",16);
- },
- /*====loadimages====*/
- images_load:function(){
- //=====loopuntilallimagesareloaded=====
- varM=0;
- for(vari=0;i<diapo.N;i++){
- if(diapo.img[i].complete){
- diapo.img[i].style.position="relative";
- diapo.O[i].img.style.visibility="visible";
- diapo.O[i].spa.style.visibility="visible";
- M++;
- }
- resize();
- }
- if(M<diapo.N)setTimeout("diapo.images_load();",128);
- },
- /*====initscript====*/
- init:function(){
- diapo.DC=document.getElementById("diapoContainer");
- diapodiapo.img=diapo.DC.getElementsByTagName("img");
- diapo.txt=document.getElementById("caption");
- diapodiapo.N=diapo.img.length;
- for(i=0;i<diapo.N;i++)diapo.O.push(newdiapo.CDiapo(diapo.img[i]));
- diapo.resize();
- diapo.tx_pos=-diapo.nw;
- diapo.tx_target=-diapo.nw;
- diapo.images_load();
- diapo.run();
- }
- }
- </script>
- </head>
- <body>
- <divid="diapoContainer">
- <imgclass="imgsrc"src="conspiracy_21.jpg"alt="ReconsideryourExistence">
- <imgclass="imgsrc"src="conspiracy_22.jpg"alt="SomethingNeedstobeDiscovered">
- <imgclass="imgsrc"src="conspiracy_24.jpg"alt="TheySaidVeryLittle">
- <imgclass="imgsrc"src="conspiracy_26.jpg"alt="OnlyinYourMind">
- <imgclass="imgsrc"src="conspiracy_32.jpg"alt="ThePowerofImagination">
- <imgclass="imgsrc"src="conspiracy_29.jpg"alt="ObjectivityisImpossible">
- <imgclass="imgsrc"src="conspiracy_31.jpg"alt="CleaningUpOperation">
- <imgclass="imgsrc"src="conspiracy_17.jpg"alt="ArbitraryContents">
- <divid="bkgcaption"></div>
- <divid="caption"></div>
- </div>
- <scripttype="text/javascript">
- /*====startscript====*/
- functiondom_onload(){
- if(document.getElementById("diapoContainer"))diapo.init();elsesetTimeout("dom_onload();",128);
- }
- dom_onload();
- </script>
- </body>
- </html>