Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    May 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Targeting Question

    Anyone know what the "fmovie" in this code refers to?

    Code:
    <html>
    <head>
    <title>Nathan Welton Photography</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta name="keywords" content="">
    <meta name="description" content="">
    
    
    <script type="text/javascript" src="flashobject.js"></script>
    <script type="text/javascript" language="javascript">
    	function setSize(){
    		var win_w;
    		var win_h;
    		var browser = navigator.appName;
    		if (browser == "Microsoft Internet Explorer"){ //IE and Opera
    			win_w = document.body.offsetWidth;
    			win_h = document.body.offsetHeight;
    			if (win_w > 1000){
    				window.document.getElementById("fmovie").width = "100%";
    			} else {
    				window.document.getElementById("fmovie").width = "1000";
    			}
    			
    			if (win_h > 550){
    				window.document.getElementById("fmovie").height = "100%";
    			} else {
    				window.document.getElementById("fmovie").height = "550";
    			}
    		} else {  //Netscape and Mozilla
    			win_w = window.innerWidth;
    			win_h = window.innerHeight;
    			if (win_w > 1000){
    				 window.document.fmovie.width = "100%";
    			} else {
    				window.document.fmovie.width = "1000";
    			}
    			
    			if (win_h > 550){
    				 window.document.fmovie.height = "100%";
    			} else {
    				window.document.fmovie.height = "550";
    			}
    		}
    	}
    </script>
    </head>
    
    <body onLoad="javascript:setSize();" onResize="javascript:setSize();" bgcolor="#ffffff" link="#000000" vlink="#000000" alink="#000000" topmargin="0" bottommargin="0" marginheight="0" leftmargin="0" rightmargin="0" marginwidth="0" >
    <div id="flashcontent">
    This site requires flash. <br><br>Please visit <a href="http://www.macromedia.com/go/getflashplayer" target="_blank"> HERE </a> to download the flash player. 	
    </div>
    <script type="text/javascript">
    	var fo = new FlashObject("Load.swf", "fmovie", "100%", "100%", "8", "#ffffff");
    	fo.addParam("menu", "false");
    	fo.addParam("scale", "noscale");
    	fo.write("flashcontent");
    </script>
    
    
    </body>
    
    </html>

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    It is an element with id="fmovie". But we can not tell you what kind of element is, as it is created dynamically by the JavaScript code in the external file flashobject.js. Probably a DIV. Use the View -> Page Source in your browser and you will see it.
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #3
    WA
    WA is offline
    Administrator
    Join Date
    Mar 2002
    Posts
    2,596
    Thanks
    2
    Thanked 19 Times in 18 Posts
    Closing thread, as this is duplicated here already: Targeting Question
    - George
    - JavaScript Kit- JavaScript tutorials and 400+ scripts!
    - JavaScript Reference- JavaScript reference you can relate to.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •