Leider funktioniert das auch nicht.
Beiträge von hubikon
-
-
Also ich hab das jetz mal <iframe name="start"> und <a target="start"> versucht aber das geht ach net.
Vieleicht muss ich ja noch ne Funktion mit in den Script-Tag einbinden. Nur das ich hab keine Ahnung wie man ne Funktion schreibt.
-
Hallo,
ich habe ein kleines Problemchen. Und zwar möchte ich das Ziel folgender Links aus meiner CSS-Navbar in einen Iframe angeben.
Code
Alles anzeigen<table border="0" height="240px" width="159px" cellspacing="0" cellpadding="0"> <div align="left"> <tr> <td width="100%" onMouseover="LmOver(this, '#C0DCC0')" onMouseout="LmOut(this, '#8AA07C')" onMouseDown="LmDown(this, '#C0DCC0')" onMouseUp="LmUp('start.htm')" bgcolor="#8AA07C"> [url='start.htm']<div align="left">HOME</div>[/url]</td> </tr> <tr> <td width="100%" onMouseover="LmOver(this, '#C0DCC0')" onMouseout="LmOut(this, '#8AA07C')" onMouseDown="LmDown(this, '#C0DCC0')" onMouseUp="LmUp('news.htm')" bgcolor="#8AA07C"> [url='news.htm']<div align="left">NEWS</div>[/url]</td> </tr> <tr> <td width="100%" onMouseover="LmOver(this, '#C0DCC0')" onMouseout="LmOut(this, '#8AA07C')" onMouseDown="LmDown(this, '#C0DCC0')" onMouseUp="LmUp('history.htm')" bgcolor="#8AA07C"> [url='history.htm']<div align="left">HISTORY</div>[/url]</td> </tr> <tr> <td width="100%" onMouseover="LmOver(this, '#C0DCC0')" onMouseout="LmOut(this, '#8AA07C')" onMouseDown="LmDown(this, '#C0DCC0')" onMouseUp="LmUp('downloads.htm')" bgcolor="#8AA07C"> [url='downloads.htm']<div align="left">DOWNLOADS</div>[/url]</td> </tr> <tr> <td width="100%" onMouseover="LmOver(this, '#C0DCC0')" onMouseout="LmOut(this, '#8AA07C')" onMouseDown="LmDown(this, '#C0DCC0')" onMouseUp="LmUp('gallery.htm')" bgcolor="#8AA07C"> [url='gallery.htm']<div align="left">GALLERY</div>[/url]</td> </tr>
Dazu kommt noch das Javascript, sodass die Navbar auch funktioniert!
Code
Alles anzeigen<script language = "javascript"> <!-- function LmOver(elem, clr) {elem.style.backgroundColor = clr; elem.children.tags('A')[0].style.color = "#8B2828"; elem.style.cursor = 'hand'} function LmOut(elem, clr) {elem.style.backgroundColor = clr; elem.children.tags('A')[0].style.color = "#C0DCC0";} function LmDown(elem, clr) {elem.style.backgroundColor = clr; elem.children.tags('A')[0].style.color = "#8B2828";} function LmUp(path) {location.href = path;} //--> </script>
So, da ich aber auf meiner Seite einen Iframe habe, wo die Links angezeigt werden sollen, besteht nun das Problem darin, dass die Links nicht in dem besagten Iframe angezeigt werden, wenn ich das Ziel des Links auf Mainframe (<iframe name="mainframe"></iframe>), also [url=''][/url] deklariere.
Nun meine Frage: Kann mir jemand sagen, wie ich das hinkriege?