Merlin P.: Object und der wechsel des Attribute data

Beitrag lesen

Hat sich erledigt, bin vom Schlauch runter xD

  
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">  
<html>  
<head>  
<title>Test</title>  
<script language="JavaScript">  
function doPage(nSite)  
{  
    var objTag = document.getElementById("contentarea");  
    if (objTag != null)  
    {  
        objTag.setAttribute('data', nSite);  
    }  
}  
</script>  
</head>  
<body>  
<p onmouseover='document.getElementById("contentarea").style.visibility = "hidden"'; onmouseout='document.getElementById("contentarea").style.visibility = "visible"';>Fahr mit der Maus über mich!</p>  
<p style="cursor: pointer;" onclick='document.getElementById("contentarea").style.visibility = (document.getElementById("contentarea").style.visibility == "visible")?"hidden":"visible";'>Klick mich</p>  
<a href="javascript:doPage('http://www.wizards.com/dci/downloads/MTG_MTR_1Jul10_EN.pdf');">Test</a>  
<a href="javascript:doPage('http://www.mccms.mediacluster.de/media/0000000043.pdf');">Test2</a>  
<object style="border: none;" standby="loading data" id="contentarea" title="loading" width="100%" height="100%" data="http://www.mccms.mediacluster.de/media/0000000043.pdf"></object>  
</form>  
</body>  
</html>