I have the sample11.
i have
Code: Select all
with(milonic=new menuname("Links")){
style=menuStyle;
aI("status=Apache Web Server, the basis of Milonic's Web Site;text=Apache Web Server;url=javascript:openIFrame('tempiframe','http://www.apache.org/');");
aI("status=MySQL, Milonic's Prefered Choice of Database Server;text=MySQL Database Server;url=javascript:openIFrame('tempiframe','http://ww.mysql.com/');");
aI("status=PHP - Web Server Scripting as used by Milonic;text=PHP - Development;url=javascript:openIFrame('tempiframe','http://www.php.net/');");
aI("status=PHP Based Web Forum, Milonic's Recommended Forum Software;text=phpBB Web Forum System;url=javascript:openIFrame('tempiframe','http://www.phpbb.com/');");
aI("text=Open Google in IFrame;url=javascript:openIFrame('tempiframe,'http://www.google.com'")
}
Code: Select all
<script type="text/javascript">
function openIFrame(IFrameID, URL){
ifId=tempiframe(IFrameID)
ifId.location.href=URL // Opera Bug Fix. ifId.src=URL
}
</script>
Nothing happens when I click on the sub menu. a small "error on page" appears in the task bar in the browser.
What am I doing wrong???