[JavaScript] Prototype Window

Dieses Thema im Forum "Webentwicklung" wurde erstellt von newcomer2k6, 29. Juni 2007 .

Status des Themas:
Es sind keine weiteren Antworten möglich.
  1. 29. Juni 2007
    Prototype Window

    Hallo,

    ich brauche auf meiner Website ein kleines Fenster, das wollte ich mit dem Prototype Window framework realisieren, doch irgendwie klaptt es nicht. Prototype Window Class : Introduction

    Hier ist der Code für das fenster, aber wie muss ich das in mein dokument einbinden?

    Code:
    win = new Window({className: "mac_os_x", title: "Sample", width:200, height:150, destroyOnClose: true, recenterAuto:false}); win.getContent().update("<h1>Hello world !!</h1>"); win.showCenter(); 
    
    So, oder wie?

    PHP:
    < html >
    <
    head >
    <
    script type = 'text/javascript' > <!--
    function 
    window (){
    win  = new  Window ({ className "mac_os_x" title "Sample" width : 200 height : 150 destroyOnClose true recenterAuto : false });  win . getContent (). update ( "<h1>Hello world !!</h1>" );  win . showCenter (); 
    }
    //-->
    </ script >
    </
    head >
    <
    body >
    <
    a href = "#"  onclick = "window()" > test </ a >
    </
    body >
    </
    html >
    So gehts auf jedenfall ncith ^^ Hat jemand mal nen kleinen Codeschnipsel, wie das funktioniert?
     
  2. 29. Juni 2007
    AW: Prototype Window

    erstmal brauchste prototype.js, dann die window.js bevor du eine neues fenster damit erstellen kannst. beies verlagerst auf deinen space, der rest is erklärt auf der genannten page von dir.
     
  3. 29. Juni 2007
    AW: Prototype Window

    ok, das framework habe ich schon drauf ^^ alles mit den richtigen pfaden und so.

    BW ist raus.

    Edit: habs hinbekommen.
     
  4. Video Script

    Videos zum Themenbereich

    * gefundene Videos auf YouTube, anhand der Überschrift.