Kompatibilität: Ms Internet Explorer In diesem Beispiel sind auf einer Seite drei verschiedene Frames. Beim klicken eines davon werden die andere zwei verkleinert.
<!-- www.HTMLopen.de --> <HTML> <HEAD> <!-- Dieses HTML code wird gratis von HTMLopen zur Verfügung gestellt --> <TITLE>HTMLopen - Dynamic HTML Beispiele</TITLE> <SCRIPT LANGUAGE="Javascript"> var defSize = 25; var _current = null; function display(f) { var newRows = "" // Check if already active if (f==_current) return; _current = f;// Determine where the first frame is in the all collection var startIndex = document.body.sourceIndex+1 for (var intFrames=0; intFrames< frames.length; intFrames++) { var curF = frames[intFrames].document if (curF.body == f.document.body) { // Give selected frame all the space newRows+="*," // Make the header much bigger curF.all.header.style.fontSize="200%" /* Turn on scrollbars for the active frameThis is done by accessing the FRAME elementin this frameset document. */ document.all[startIndex+intFrames].scrolling="auto" } else { // Set to the default size newRows+=defSize.toString() + "," // Reset header font-size curF.all.header.style.fontSize=""// Turn off scrolling document.all[startIndex+intFrames].scrolling="no" } } document.body.rows=newRows// Remove Selection //var r =f.document.body.createTextRange() //r.collapse(); //r.select() } </SCRIPT> <FRAMESET ROWS="*, 25, 25"> <FRAME SRC="1.htm" NORESIZE> <FRAME SRC="2.htm" NORESIZE SCROLLING="No"> <FRAME SRC="3.htm" NORESIZE SCROLLING="No"> </FRAMESET> </HTML> <!-- www.HTMLopen.de -->
[File ZIP runterladen], Bilder und andere Files sind im ZIP file inbegriffen