BlackBoard (http://www.black-board.net/index.php)
- Design, Programmierung & Entwicklung (http://www.black-board.net/board.php?boardid=55)
-- Webdesign (http://www.black-board.net/board.php?boardid=19)
--- JavaScript scriptproblem (http://www.black-board.net/thread.php?threadid=19755)


Geschrieben von pRoT_ru am 30.01.2005 um 17:37:

  scriptproblem

hallo leute ich habe ein problem.
ich habe ein javascript menu,dass ich auf meiner homepage abbilden will. wenn ich es einfügen will,dann is das kein problem,wenn ich aber bei den links auf die gegebene seite ein target,z.b. ins mittelframe eingeben will,dann funktioniert das einfach nicht. ist hier einer sondersituation gegeben? bitte guckt euch das script einmal an.

-------
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe GoLive 6">
<title>men&uuml;frame</title>
</head>

<body bgcolor="#ffffff">
<p></p>
<script language="JavaScript">
<!--
function surfto(form) {
var myindex=form.select1.selectedIndex
if (form.select1.options[myindex].value != "0") {
window.open(form.select1.options[myindex].value, target="center");}
}
//-->

</SCRIPT>
<FORM NAME="form1">
<SELECT NAME="select1" onChange="surfto(this.form)" STYLE="width: 100px; max-width: 100px; font-size: 9px">

<OPTION SELECTED VALUE="0">Auswahl
<OPTION VALUE="http://www.google.de" target="mitte">Index
<OPTION VALUE="scripte2.html" target="mittelframe">Infos
<OPTION VALUE="scripte3.html">Haganah
<OPTION VALUE="scripte4.html">Zionismus
<OPTION VALUE="scripte5.html">Kriege
<OPTION VALUE="scripte6.html">Chat
<OPTION VALUE="scripte7.html">Board
<OPTION VALUE="scripte8.html">Guestbook
<OPTION VALUE="scripte9.html">HebrewMp3
<OPTION VALUE="scripte10.html">Links
<OPTION VALUE="scripte10.html">Kontakt
</SELECT>
</FORM>
</form>

</body>

</html>
-------



Geschrieben von LX am 30.01.2005 um 17:40:

  RE: scriptproblem

Zitat:
Original von pRoT_ru
window.open(form.select1.options[myindex].value, target="center");
Da haben wir's ja schon... richtig wäre:

window.open(form.select1.options[myindex].value, "center");



Geschrieben von pRoT_ru am 30.01.2005 um 18:25:

 

danke,hat erst nicht geklappt,dann habe ich gemerkt dass ich noch vergessen hatte den target frage einzugeben bei "center") ^^


Forensoftware: Burning Board 2.3.6, entwickelt von WoltLab GmbH