Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Del iframe

Parašė WebDraw· 2010 Rugs. 22 16:09:32
#3

pvp.php failo body tagas :

<body style="background-color:transparent" > 

iframe kodas:

<iframe frameborder="0" scrolling="no"  style="height:300px;width:200px" src="pvp.php" ></iframe>
 

index.php tarp head idek:

 
<!--[if IE]>
<script type="text/javascript"  >
function addLoadEvent(func) { 
	  var oldonload = window.onload; 
	  if (typeof window.onload != 'function') { 
	    window.onload = func; 
	  } else { 
	    window.onload = function() { 
	      if (oldonload) { 
	        oldonload(); 
	      } 
	      func(); 
	    } 
	  } 
	} 
 
	addLoadEvent(function() { 
	    var theframes = document.getElementsByTagName('iframe');
for(var i = 0; i < theframes.length; i++)
{
theframes[i].setAttribute("allowTransparency","true");
}
	}) 
</script>
<![endif]--> 
 


Galima ir be javascripto lyg priskiriant iframui atributa, bet tada neiseis w3 xhtml valdatint lyg

Redagavo WebDraw· 2010 Rugs. 22 16:09:21