Java Navigation soll Links in Frame öffnen...


 
Neues Thema eröffnen   Neue Antwort erstellen    Webmaster Forum -> Hilfe für Webmaster -> Grafik- & Webdesign
Vorheriges Thema anzeigen :: Nächstes Thema anzeigen  
Autor Nachricht
bluff
Gast

BeitragJava Navigation soll Links in Frame öffnen... Antworten mit Zitat

axinio Internet Marketing
Im folgenen Skript weiß ich nicht wo ich was einfügen muss um die Links im Frame "inhalt.html" öffnen zu lassen :

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>navi</title>

<STYLE TYPE="text/css">
<!--

.menuh   {
      BORDER-COLOR :    #00CC33 ;
      cursor : hand ;
      Border-Left : #FFFF99 ;
      Border-Top : #FFFF99 ;
      Padding-Left : 1px ;
      Padding-Top : 1px ;
      Background-Color :    #00CC33 ;
   }
.menu   {
      Background-Color : #009933 ;
   }
.home   {
      cursor : hand ;
   }

.menulinks{
text-decoration:none;
}
//-->
</STYLE>


<body>

<SCRIPT Language="Javascript1.2">
<!--

/*
Static menu script (By maXimus, maximus@nsimail.com, http://maximus.ravecore.com/)
Modified slightly/ permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

//configure below variable for menu width, position on page
var menuwidth=100
var offsetleft=10
var offsettop=90

var ns4=document.layers?1:0
var ie4=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0

function makeStatic() {
if (ie4) {object1.style.pixelTop=document.body.scrollTop+offsettop}
else if (ns6) {document.getElementById("object1").style.top=window.pageYOffset+offsettop}
else if (ns4) {eval(document.object1.top=eval(window.pageYOffset+offsettop));}
setTimeout("makeStatic()",0);
}

if (ie4||ns6) {document.write('<span ALIGN="CENTER" ID="object1" STYLE="Position:absolute; Top:20; Left:'+offsetleft+'; Z-Index:5;cursor:hand;background-color:black;"><TABLE BORDER="1" width="'+menuwidth+'" CELLPADDING="0" CELLSPACING="0" BORDERCOLOR="black" bgcolor="#009933">')}
else if (ns4){ document.write('<LAYER top="20" name="object1" left="'+offsetleft+'" BGCOLOR=black><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="1"><TR><TD><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" width="'+menuwidth+'">')}

if (ie4||ns6||ns4)
document.write('<TR><TD BGCOLOR="#3399FF" BORDERCOLORDARK="#99CCFF" BORDERCOLORLIGHT="#003399"><P ALIGN=CENTER><FONT SIZE="4" FACE=ARIAL>Menu</FONT></TD></TR>')

var menui = new Array();
var menul = new Array();

//configure below for menu items. Extend list as desired

menui[0]="Dynamic Drive";
menui[1]="What\'s New?";
menui[2]="What\'s Hot?";
menui[3]="Message Forum";
menui[4]="FAQs";
menui[5]="Submit Script";
menui[6]="Link to us";
menui[7]="Email us";

menul[0]="http://dynamicdrive.com";
menul[1]="http://dynamicdrive.com/new.htm";
menul[2]="http://dynamicdrive.com/hot.htm";
menul[3]="http://wsabstract.com/cgi-bin/Ultimate.cgi";
menul[4]="http://dynamicdrive.com/faqs.htm";
menul[5]="http://dynamicdrive.com/submit.htm";
menul[6]="http://dynamicdrive.com/link.htm";
menul[7]="http://dynamicdrive.com/contact.htm";

for (i=0;i<=menui.length-1;i++)
if (ie4||ns6) {document.write('<TR><TD BORDERCOLOR="white" ONCLICK="location=\''+menul[i]+'\'" onmouseover="className=\'menuh\'" onMouseout="className=\'menu\'"><CENTER><FONT>'+menui[i]+'</FONT></TD></TR>')}
else if (ns4){document.write('<TR><TD BGCOLOR="white"><ILAYER><LAYER width="'+menuwidth+'" onmouseover="bgColor=\'yellow\'" onmouseout="bgColor=\'white\'"><CENTER><A HREF="'+menul[i]+'" class=menulinks>'+menui[i]+'</A></CENTER></LAYER></ILAYER></TD></TR>')}

if (ie4||ns6) {document.write('</TABLE></span>')}
else if (ns4){document.write('</TABLE></TD></TR></TABLE></LAYER>')}

function menu3(){
if (ns6||ie4||ns4)
makeStatic()
}

window.onload=menu3

//-->
</SCRIPT>

</body>

</html>
24 Nov 2007 12:08
wpSEO, das Plugin für WordPress SEO
Forrest Gumb
Mitglied

Beitrag Antworten mit Zitat

Das Frame wo die inhalt.html angezeigt wird, muss einen Namen haben.

z.B. <frame name="hauptframe"

dann musst Du im Link das Ziel angeben --> target="hauptframe"

z.B. menul[1]="http://dynamicdrive.com/new.htm" target="hauptframe" ;

_________________
4rest
Wende Dein Gesicht ins Licht, dann werden die Schatten hinter Dir sein.
[ forrest ] - [ more ]
28 Nov 2007 15:57
Benutzer-Profile anzeigen Private Nachricht senden Website dieses Benutzers besuchen
axinio Internet Marketing
Beiträge der letzten Zeit anzeigen:   
Neues Thema eröffnen   Neue Antwort erstellen    Webmaster Forum -> Hilfe für Webmaster -> Grafik- & Webdesign Alle Zeiten sind GMT + 1 Stunde
Seite 1 von 1

 
Gehe zu:  

Ähnliche Beiträge
Thema Webmaster Forum Antw. Autor Verfasst am
Keine neuen Beiträge Bilder nebeneinander mit "links&... Blogs, CMS & Foren 1 PeterPan 29 Jan 2012 00:52 Letzten Beitrag anzeigen
Keine neuen Beiträge "Automatische Navigation" f... PHP / MySQL 3 Werner 17 Dez 2011 20:15 Letzten Beitrag anzeigen
Keine neuen Beiträge PHP-Navigation- Die aktuelle Seite he... Hilfe für Webmaster 0 LkBibo 19 Nov 2011 23:27 Letzten Beitrag anzeigen
Keine neuen Beiträge PHP-Navigation - Die aktuelle Seite h... PHP / MySQL 2 KlausD 28 Aug 2011 20:10 Letzten Beitrag anzeigen
Keine neuen Beiträge mouse-over auf Bild soll CCS der Text... Javascript 1 hanna 15 Aug 2011 15:56 Letzten Beitrag anzeigen