www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > CSS

    CSS Discussion and technical support relating to Cascading Style Sheets.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 11-04-2009, 07:31 PM
    justinbarneskin justinbarneskin is offline
    Registered User
     
    Join Date: Oct 2006
    Posts: 530
    You big dummy. You don't have a clue to what you are doing. Why don't I just write it for you.
    HTML Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    	"http://www.w3.org/TR/html4/strict.dtd">
    <HTML>
    <HEAD><TITLE>FirefoxFade</TITLE>
    <META http-equiv=Content-Type content="text/html; charset=UTF-8">
    <STYLE type=text/CSS>
    * {margin:0; padding:0;}
    .thum{height:40px;width:50px}
    </STYLE>
    <SCRIPT type="text/javascript">
     var fadeSpeed=20; loadCount=0
    function WeSat(x){
     for(i=1;i<9;i++){var newIMG=document.createElement("img");	
      if(navigator.appName!='Microsoft Internet Explorer'){
    	newIMG.setAttribute("class", "thum" );
    	}
      else{	newIMG.setAttribute("className", "thum");	}
    	newIMG.setAttribute("onload",loadCount++);
    	newIMG.setAttribute("border", "1px solid green");
    	newIMG.setAttribute("title", i);
    	newIMG.setAttribute("src", ''+x+'.GIF.'+i+'.jpg');
    	document.getElementById("thumb").appendChild(newIMG);
    	}
    if(loadCount==document.getElementById('thumb').getElementsByTagName('img').length){play()}
    }
    
    function play(){ di=document.getElementById('thumb').getElementsByTagName('img');	startFrom=0;  
    
    		if(navigator.appName!='Microsoft Internet Explorer'){document.images[1].style.opacity=1}
    								else{document.images[1].filters.item(0).opacity=100}
    document.images[0].src=document.images[1].src=di[startFrom].src;
    setTimeout("fadePlay()",50)
    }
    
    function fadePlay(){ 
    	if(navigator.appName!='Microsoft Internet Explorer'){ if(document.images[1].style.opacity!=0){document.images[1].style.opacity-=.05; setTimeout("fadePlay()",fadeSpeed)}
    							else{ 		nextPlay()	}		
    	}
    	else{			if(document.images[1].filters.item(0).opacity>0){document.images[1].filters.item(0).opacity-=5;setTimeout("fadePlay()",fadeSpeed);	}
    							else{		nextPlay()	}	
    	}
    }
    
    function nextPlay(){ di[startFrom].style.border='1px solid red'; document.images[1].src=di[startFrom].src;
    	if(navigator.appName!='Microsoft Internet Explorer'){document.images[1].style.opacity=1;}
    							else{document.images[1].filters.item(0).opacity=100}
    setTimeout("playIt()",1)
    }
    function playIt(){
    	startFrom++;	 if(startFrom<di.length){ document.images[0].src=di[startFrom].src;  fadePlay()  }
    			else{for(i=0;i<di.length;i++){di[i].style.border='1px solid green';}}
    }
    </SCRIPT>
    <META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
    <BODY scroll="auto" onload="WeSat('http://sat.wrh.noaa.gov/satellite/4km/NW/animation/WV4NW')">
    <img style="position:absolute;top:0px;left:0px;" src="" alt="bottom">
    <img style="opacity:1;position:absolute;top:0px;left:0px;filter:alpha(opacity=100);" src="" alt="top">
    
    <div id="thumb" style="position:absolute;bottom:3px;left:3px;font-size:10px;"></div>
    <div style="position:absolute;top:3px;right:3px;width:100px">
    	<input type=button onclick="play()" value="rePlay" >
    </div>
    
    </BODY></HTML>
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 08:39 AM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.