Monday, 19 August 2013

Hidding iframe if specific value?

Hidding iframe if specific value?

I want to hide iframe if there is no $content present.
<div class="video">
<iframe width="600px" height="400px" src="'.$content.'?autoplay=1"
frameborder="0" scrolling="no" allowfullscreen
style="visibility:hidden;"
onload="this.style.visibility=\'visible\';"></iframe>
</div>
In my case if $content is not present, iframe loads src="?autoplay=1"

No comments:

Post a Comment