Visualizzazione dei risultati da 1 a 3 su 3

Discussione: iframe e focus

  1. #1

    iframe e focus

    Ciao a tutti.

    Mi trovo in questa situazione:

    Nel iframe segnato in rosso carico una pagina con un filmato flash.
    ora io vorrei da questo filmato clikkando su un pulsante, richiamare una funzione javascript che mi setti il focus della pagina sulla td con id flashObject

    codice:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    	<HEAD>
    	<TITLE>prova</TITLE>
    
    	<script type="text/JavaScript">
    		function idHeightTo( h, id ) {
    			document.getElementById(id).style.height = h + 'px';
    		}
    	</script>
    		<STYLE TYPE="text/css">
    			html, body {
    				margin: 0px;
    				padding: 0px;
    				width: 100%;
    				height: 100%;
    				background-color: #ffffff;
    				scrollbar-face-color: #A2C9EA;
    				scrollbar-highlight-color: ##A2C9EA;
    				scrollbar-shadow-color: ##A2C9EA;
    				scrollbar-3dlight-color: ##A2C9EA;;
    				scrollbar-arrow-color:  ##A2C9EA;
    				scrollbar-track-color: ##A2C9EA;
    				scrollbar-darkshadow-color: #A2C9EA;
    			}
    			table {
    				width: 100%;
    				height: 100%;
    				background-color: #0074BA;
    			}
    			#validator {
    				height: 31px;
    				background: url( sfondino2.jpg );
    				background-repeat: repeat-y;
    			}
    			#flashObject {
    				width: 940px;
    				height: 280px;
    				background-color: #FFFFFF;
    			}
    			#nearFlashObject {
    				background: url( sfondino.jpg );
    				background-repeat: repeat-x;
    			}
    			#underFlashObject {
    				background: url( sfondino2.jpg );
    				background-repeat: repeat-y;
    			}
    			iframe {
    				width: 920px;
    				height: 100%;
    			}
    		</STYLE>
    		
    	</HEAD>
    	<BODY>
    		<table cellpadding="0" cellspacing="0">
    			<tr>
    				<td id="flashObject">
    <object type="application/x-shockwave-flash" data="testata.swf" width="100%" height="100%">
    <param name="movie" value="testata.swf">
    <embed src="testata.swf" width="100%" height="100%"></embed>
    </object>
    			  </td>
    				<td id="nearFlashObject">
    					
    				</td>
    			</tr>
    			<tr>
    				<td id="underFlashObject">
    					<iframe name="pagine" src="maineng.htm" frameborder="0"></iframe> 
    				</td>
    				<td id="nearUnderFlashObject"></td>
    			</tr>
    			
    		</table>
    	</BODY>
    </HTML>
    sostanzialmente avrei bisogno della afunzione javascript che poi andrò a richiamare nel flash sul mio pulsante.

    Grazie!!!
    Consulenza aziendale a 360° http://www.gruppodg.it http://www.gruppodg.it/3d
    Realizzazione siti internet, Siti Flash, Ricerca Location per bar negozi , esercizi commerciali, sviluppo pratiche e allestimento

  2. #2
    up
    Consulenza aziendale a 360° http://www.gruppodg.it http://www.gruppodg.it/3d
    Realizzazione siti internet, Siti Flash, Ricerca Location per bar negozi , esercizi commerciali, sviluppo pratiche e allestimento

  3. #3
    Utente di HTML.it L'avatar di Xinod
    Registrato dal
    Sep 2000
    Messaggi
    13,649

    Re: iframe e focus

    Originariamente inviato da enigma_79
    ora io vorrei da questo filmato clikkando su un pulsante, richiamare una funzione javascript che mi setti il focus della pagina sulla td con id flashObject
    non credo si possa dare il focus ad un td

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.