So, i've been messing around with java and onload events and found a solution to my iframe loading quandaries.
Code:
<html>
<head>
<script type="text/javascript">
var total_loads=0;
function addload()
{
try
{
total_loads++;
if (total_loads>3)
{
window.parent.document.all["myFrame"].style.display = "NONE";
}
}
catch(err)
{
}
}
</script>
</head>
<body style="background-color:#181720">
<div align="center">
<div style="background-image:url(backdiv.png);overflow: hidden; width: 291px; height: 111px; position: relative;" id="i_div">
<iframe onload="addload()" id="myFrame" name="i_frame" src="url1.php" style="border: 0pt none ; left: -133px; top: -424px; position: absolute; width: 1023px; height: 640px;" scrolling="no"></iframe></div>
</div>
</body>
</html>
Now if i could just figure out how to Make a link trigger that to load and integrate that into the equation i'll have the problem solved. I'm such a JS n00bi3, HELP PLZ! =D
Bookmarks