+ Antworten
Ergebnis 1 bis 3 von 3

Thema: Pulldown menu

  1. #1
    TP-Senior fz2k macht alles soweit korrekt Avatar von fz2k
    Registriert seit
    Jan 2003
    Ort
    berlin
    Beiträge
    138

    Pulldown menu

    Code:
    //
    // MasterScripts
    // Copyright 2000. All rights reserved.
    //
    // http://www.masterscripts.de
    //
    // Selling the code for this program without prior written
    // consent is expressly forbidden!
    //
    // By using this code you agree to indemnify MasterScripts from any
    // liability that might arise from it's use.
    // Obtain permission before redistributing this software over the Internet or
    // in any other medium. In all cases copyright and header must remain intact.
    //
    
    <script lang
    
    function Pulldown(){
    	PullTag = '<table border="0">';
    	PullTag += '<tr>';
    	PullTag += '<td valign="top">';
    	PullTag += '<form action="none" method="POST" name="form1" target="new_blank">';
    	PullTag += '<font size="1" face="Geneva, Arial, Helvetica">';
    	PullTag += '<select name="menu1" size="1" onChange="goto_site();">';
    	PullTag += '<option selected value="Ich WILL...">------------ Bitte wählen Sie ------------</option>';
    	PullTag += '<option value="http://www.ibm.com">News</option>';
    	PullTag += '<option value="javascript:OpenPicturePopup('http://www.versicherungskaufmann.net/b22/mich.html',550,650,'gb'">Über mich</option>';
    	PullTag += '<option value="http://www.ibm.com">Bilder</option>';
    	PullTag += '<option value="http://www.ibm.com">Freunde</option>';
    	PullTag += '<option value="http://www.microsoft.com">Clan</option>';
    	PullTag += '<option value="http://www.microsoft.com">fZ2K</option>';
    	PullTag += '<option value="http://www.microsoft.com">Links</option>';
    	PullTag += '<option value="http://www.microsoft.com">Gästebuch</option>';
    	PullTag += '</select>';
    	PullTag += '</td>';
    	PullTag += '</tr>';
    	PullTag += '</table>';
    	return PullTag;
    }
    
    function goto_site() {
    	var selectedIndex = document.form1.menu1.selectedIndex;
    	if (selectedIndex > 0) {
    		var selection = document.form1.menu1.options[selectedIndex].value;
    		window.parent.location=selection;
    	}
    }
    das mein pulldown menu ich möchte aber das sich ein javascript fesnter öffnet wenn man einen Menupunkt auswählt.

    Könnt ihr mir da helfen ?

    vielen Dank im vorraus.

    fZ2K
    ““¡¡“¢[[]

  2. #2
    TP-Senior fz2k macht alles soweit korrekt Avatar von fz2k
    Registriert seit
    Jan 2003
    Ort
    berlin
    Beiträge
    138
    nimm auch gerne ganz andere vorschläge entgegen
    ““¡¡“¢[[]

  3. #3
    TP-Veteran -Andreas- bringt sich richtig ein -Andreas- bringt sich richtig ein Avatar von -Andreas-
    Registriert seit
    Mar 2002
    Ort
    Karlsruhe
    Beiträge
    1.390
    Code:
    //
    // MasterScripts
    // Copyright 2000. All rights reserved.
    //
    // http://www.masterscripts.de
    //
    // Selling the code for this program without prior written
    // consent is expressly forbidden!
    //
    // By using this code you agree to indemnify MasterScripts from any
    // liability that might arise from it's use.
    // Obtain permission before redistributing this software over the Internet or
    // in any other medium. In all cases copyright and header must remain intact.
    //
    
    <script lang
    
    function Pulldown(){
    	PullTag = '<table border="0">';
    	PullTag += '<tr>';
    	PullTag += '<td valign="top">';
    	PullTag += '<form action="none" method="POST" name="form1" target="new_blank">';
    	PullTag += '<font size="1" face="Geneva, Arial, Helvetica">';
    	PullTag += '<select name="menu1" size="1" onChange="goto_site();">';
    	PullTag += '<option selected value="Ich WILL...">------------ Bitte wählen Sie ------------</option>';
    	PullTag += '<option value="http://www.ibm.com">News</option>';
    	PullTag += '<option value="java script:OpenPicturePopup('http://www.versicherungskaufmann.net/b22/mich.html',550,650,'gb'">Über mich</option>';
    	PullTag += '<option value="http://www.ibm.com">Bilder</option>';
    	PullTag += '<option value="http://www.ibm.com">Freunde</option>';
    	PullTag += '<option value="http://www.microsoft.com">Clan</option>';
    	PullTag += '<option value="http://www.microsoft.com">fZ2K</option>';
    	PullTag += '<option value="http://www.microsoft.com">Links</option>';
    	PullTag += '<option value="http://www.microsoft.com">Gästebuch</option>';
    	PullTag += '</select>';
    	PullTag += '</td>';
    	PullTag += '</tr>';
    	PullTag += '</table>';
    	return PullTag;
    }
    
    function goto_site() {
    	var selectedIndex = document.form1.menu1.selectedIndex;
    	if (selectedIndex > 0) {
    		var selection = document.form1.menu1.options[selectedIndex].value;
    		window.open(selection,'','');
    	}
    }

+ Antworten

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

     

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