![]() |
![]() |
|
|
|||||||
| Programmierung Rat & Tat für Programmierer |
|
|
Themen-Optionen | Ansicht |
|
|
#12 |
|
Inventar
![]() Registriert seit: 26.09.1999
Beiträge: 2.569
|
da gibt es mehrere:
1.: have the last frame loaded look to see if the other frame contains a matching page: <body onLoad="if (top.otherframe.location.href.indexOf('matchingpag e.html') ==-1) top.otherframe.location='matchingpage.html'"> 2.: Instead of loading a new framing file each time you have to change more than one frame, try implementing the following script in the <HEAD> of your HTML document. <SCRIPT language="JavaScript"> <!-- function framer(loc) {parent.main.location.href = loc} //--> </SCRIPT> The framer function will load a specified location to the frame named "main" (The frame name is set in the original framer file). Changing two frames at once can then be handled by inserting a link into the <BODY> of the document. link This will load 'file1.html' into the current frame (the frame wherein the script is installed), and load 'file2.html' into the frame named 'main'. You may easily alter the script to include more frames. Remember that these features require that your visitor's browser supports javascripting. aber ersteres ist viel cooler. gruss, snowman
____________________________________
MediaMarkt? Ich bin doch nicht blöd, Mann! Vorsprung durch Technik Lesen Sie keine Anleitungen, FAQs, Readme - Files. Reine Zeitverschwendung. In den Newsgroups und Foren gibt es genug kompetente Leute, die mit großer Geduld immer wieder dieselben einfachen Fragen beantworten. Völlig kostenlos noch dazu! |
|
|
|
| Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
|
|