Hi guys,
Depending on the screen resolution of the visitor, I would like that specific iframes to open in my CMS.
However, I don't know what code I should use:
HTML Code:
<SCRIPT language="JavaScript">
<!--
if ((screen.width>=1024) && (screen.height>=768))
{
window.location = "http://synbioworld.org/formboss/output/forms/igem/igem.php";
}
else
{
window.location="http://synbioworld.org/formboss/output/forms/igem/igem2.php";
}
//-->
</SCRIPT>
using window.location just open my iframe in a full page, and not as it was supposed to in the original layout...
The iframe original code is:
HTML Code:
<iframe src="http://synbioworld.org/formboss/output/forms/igem/igem.php" height="273" width="1031" frameborder="0" scrolling="no" ALLOWTRANSPARENCY="true"></iframe>
Thanks for your help!
Xav