Archivlink: javarea.de Forum > JavaScript > Problem mit Omen-Tree
Vollständigen Link anzeigen: javarea.de Forum > JavaScript > Problem mit Omen-Tree

Pages: [1]

geschrieben von Sh1nCh4n am 07.03.2007 - 17:41
Guten Tag!
Ich hab ein paar Probleme mit dem Javascript Omen-Tree. Wie muss man den Quelltext ändern, dass das neu geöffnete Fenster in dem "Tree", den Omen-Tree sozusagen überdeckt? Weil wenn ich den Script so nehmen würde, dann öffnet es die Seite in dem anderen das rechts davon ist, weil es ja eine Tabelle ist.
Und wenn ich auf den Link klicke das mit dem omen-tree verbunden ist, dann öffnet sich das Fenster neu!!!
Kann mir bitte jemand helfen? Ich verzweifle daran...
Wenn es jemand nicht klar ist was ich meine fragt nach. Danke.
Mit freundlichen Grüßen
Sh1nCh4n

geschrieben von Klaush am 09.03.2007 - 10:39
Schau dir den Quelltext etwas genauer an, dann findest du des Rätsels Lösung.


HTML-Quelltext
1: 
2: 
3: 
4: 
5: 
6: 
7: 
8: 
9: 
10: 
11: 
12: 
13: 
14: 
15: 
16: 
17: 
18: 
19: 
20: 
21: 
22: 
23: 
24: 
25: 
26: 
27: 
28: 
29: 
30: 
31: 
32: 
33: 
34: 
35: 
36: 
37: 
38: 
39: 
40: 
41: 
42: 
43: 
44: 
45: 
46: 
47: 
48: 
49: 
50: 
51: 
52: 
53: 
54: 
55: 
56: 
57: 
58: 
59: 
60: 
61: 
62: 
63: 
64: 
65: 
66: 
67: 
68: 
69: 
70: 
71: 
72: 
73: 
74: 
75: 
76: 
77: 
78: 
79: 
80: 
81: 
82: 
83: 
84: 
85: 
86: 
87: 
88: 
89: 
90: 
91: 
92: 
93: 
94: 
95: 
96: 
97: 
function RootNode(id,name,url,target,icon) {
	this.id = id;
	this.name = name;
	this.url = url;
	this.target = target;
	this.icon = icon;
	this.type = 'root';
	return this}
function FolderNode(id,parent,name,iconClosed,iconOpen) {
	this.id = id;
	this.parent = parent;
	this.name = name;
	this.iconClosed = iconClosed;
	this.iconOpen = iconOpen;
	this.type = 'folder';
	this.open = 0;
	return this}
function LinkNode(parent,name,url,target,icon) {
	this.parent = parent;
	this.name = name;
	this.url = "docs/" + url;
	this.target = target;
	this.icon = icon;
	this.type = 'link';
	return this}
	
	
function loadData() {
	treeData = new Collection();
	
	treeData.add(new RootNode('root','Home','docs/home.html','',''));
	treeData.add(new FolderNode('icq','root','ICQ','',''));
        	treeData.add(new LinkNode('icq','Was ist ICQ?','ihre.html','','img-page.gif'));	
        	treeData.add(new LinkNode('icq','Wofür brauche ich ICQ?','ihre.html','','img-page.gif'));	


        treeData.add(new FolderNode('docs','root','JavaScript','',''));
		treeData.add(new LinkNode('docs','Intro','ihre.html','','img-page.gif'));
		treeData.add(new LinkNode('docs','sonstiges','ihre.html','','img-page.gif'));


        treeData.add(new FolderNode('basics','docs','Basics','',''));
		treeData.add(new LinkNode('basics','Informationen','ihre.html','','img-page.gif'));
        	treeData.add(new LinkNode('basics','sonstiges','ihre.html','','img-page.gif'));


	treeData.add(new FolderNode('Javascript1','docs','JavaScript','',''));
		treeData.add(new LinkNode('Javascript1','mehr Applets','ihre.html','','img-page.gif'));	
		treeData.add(new LinkNode('Javascript1','mehr Scripts','ihre.html','','img-page.gif'));

	
        treeData.add(new FolderNode('Javascript2','docs','JavaScripts II','',''));
            	treeData.add(new LinkNode('Javascript2','und noch mehr','ihre.html','','img-page.gif'));	
            	treeData.add(new LinkNode('Javascript2','Wxplorer','ihre.html','','img-page.gif'));	

            	treeData.add(new FolderNode('board','docs','Gästebuch','',''));
            	treeData.add(new LinkNode('board','lesen & schreiben','ihre.html','','img-newsgroup.gif'));


	treeData.add(new LinkNode('docs','Fragen & Antworten','ihre.html','','img-page.gif'));
	treeData.add(new LinkNode('docs','e-Mail','ihre.html','','img-email.gif'));
         

	treeData.add(new FolderNode('tools','root','Tools ','',''));
        	treeData.add(new LinkNode('tools','Intro','ihre.html','','img-page.gif'));
        	treeData.add(new LinkNode('tools','Frames erstellen','ihre.html','','img-page.gif'));
        	treeData.add(new LinkNode('tools','iframe erstellen','ihre.html','','img-page.gif'));	


	treeData.add(new FolderNode('Favoriten','root','Favoriten ','',''));
        	treeData.add(new LinkNode('Favoriten','1 Favorit','ihre.html','','img-page.gif'));
        	treeData.add(new LinkNode('Favoriten','2 Favorit','ihre.html','','img-page.gif'));
        	treeData.add(new LinkNode('Favoriten','3 Favorit','ihre.html','','img-page.gif'));	

		
            	treeData.add(new LinkNode('root','Forum','ihre.html','',''));
		treeData.add(new LinkNode('root','Chat','ihre.html','',''));

    
      // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      // User defined variables:	

          structureStyle = 1;
         backgroundColor = '#000000';
               textColor = '#ffffff';
               linkColor = '#ffffff';
              aLinkColor = '#FF0000';
              vLinkColor = '#ffffff';
         backgroundImage = '';
      defaultTargetFrame = 'pageFrame';
         defaultImageURL = '';
         defaultLinkIcon = 'img-page-globe.gif';
            omenTreeFont = 'MS Sans Serif,Arial,Helvetica';
        omenTreeFontSize = 1;
              prefixHTML = "";
              suffixHTML = "";
}


Wichtig sind url, target und parent, dort kannst du die Verweise und Ziele setzen.

geschrieben von Sh1nCh4n am 09.03.2007 - 13:27
hmm... Sorry, ich hab jetzt 30 min herumgemacht, aber es tut nicht. Wo und was muss ich bei target, url oder parent reinschreiben?
mFg Sh1nCh4n


Powered by: JBB v.2.0.4 Copyright ©2000-2006, www.javarea.de.