1. Liebe Forumsgemeinde,

    aufgrund der Bestimmungen, die sich aus der DSGVO ergeben, müssten umfangreiche Anpassungen am Forum vorgenommen werden, die sich für uns nicht wirtschaftlich abbilden lassen. Daher haben wir uns entschlossen, das Forum in seiner aktuellen Form zu archivieren und online bereit zu stellen, jedoch keine Neuanmeldungen oder neuen Kommentare mehr zuzulassen. So ist sichergestellt, dass das gesammelte Wissen nicht verloren geht, und wir die Seite dennoch DSGVO-konform zur Verfügung stellen können.
    Dies wird in den nächsten Tagen umgesetzt.

    Ich danke allen, die sich in den letzten Jahren für Hilfesuchende und auch für das Forum selbst engagiert haben. Ich bin weiterhin für euch erreichbar unter tti(bei)pcwelt.de.
    Dismiss Notice

Script Problem

Discussion in 'Programmieren' started by marcos13, Jul 5, 2006.

Thread Status:
Not open for further replies.
  1. marcos13

    marcos13 Byte

    Hallo,

    ich habe folgendes Problem:

    Ich will bei meinen Musikvideos den Songtext ausklappbar machen dafür hab ich diesen Script gefunden:

    <a onmouseover="this.style.cursor='hand'"
    onclick="a_1_1.style.display='block'">
    Wenn ich hier klicke ..</a><br/>
    <span id="a_1_1" onmouseover="this.style.cursor='hand'"
    onclick="this.style.display='none'">
    ... erscheint dieser Text, und wenn ich auf den Text
    klicke, verschwindet er wieder!</span>

    Nun wollte ich das aber so haben dass der Text nicht sofort ausgeklappt ist sondern eingeklappt ist als mann mus erst auf "Songtext aus/einklappen" klicken damit er zusehen ist.

    Hoffe ihr könnt mir helfen!
     
  2. kalweit

    kalweit Hüter der Glaskugel

    <a onmouseover="this.style.cursor='hand'" onclick= "document.getElementById('a_1_1').style.display = 'block'">
    Wenn ich hier klicke ..</a><br/>
    <span style="display:none" id="a_1_1" onmouseover="this.style.cursor='hand'"
    onclick="this.style.display='none'">
    ... erscheint dieser Text, und wenn ich auf den Text
    klicke, verschwindet er wieder!</span>

    ---> die Forensoftware macht wieder Mist: das erste "display" gehört natürlich zusammen
     
  3. marcos13

    marcos13 Byte

    Ok danke das funktioniert jetzt aber ich habe nen neues Problem:

    <a onmouseover="this.style.cursor='hand'" onclick="document.getElementById('a_1_1').style.display='block'">
    Songtext ausklappen</a><br/>
    <span style="display:none" id="a_1_1" onmouseover="this.style.cursor='hand'"
    onclick="this.style.display='none'">
    Here we are so what you gonna do?
    Do I gotta spell it out for you?
    I can see that you got other plans for tonight
    But I don’t really care

    Size me up you know I beat the best
    Tick tock no time to rest
    Let them say what their gonna say
    But tonight I just don’t really care

    [Chorus]
    Come on baby we ain't gonna live forever
    Let me show you all the things that we could do
    You know you wanna be together
    And I wanna spend the night with you
    Yeah, yeah with you, yeah, yeah
    Come with me tonight
    We could make the night last forever

    I've seen it all I’ve got nothing to prove
    Come on baby just make your move
    Follow me lets leave it all behind tonight
    Like we just don’t care

    Let me take you on the ride of your life
    That’s what I said alright
    They can say what they wanna say
    Cause tonight I just don’t even care

    [Chorus]
    Come on baby we ain't gonna live forever
    Let me show you all the things that we could do
    You know you wanna be together
    And I wanna spend the night with you
    Yeah, yeah with you, yeah, yeah
    Come with me tonight
    We could make the night last forever

    Lets pretend you're mine
    We could just pretend, we could just pretend, yeah yeah
    You got what I like
    You got what I like, I got what you like
    Oh come on
    Just one taste and you’ll want more

    So tell me what your waiting for

    [Chorus]
    Come on baby we aint gonna live forever Liedertext
    Let me show you all the things that we could do Alle
    You know you wanna be together
    And I wanna spend the night with you The
    Yeah, yeah with you, yeah, yeah

    Come with me tonight
    We could make the night last forever Veronicas
    Come on baby we aint gonna live forever
    Let me show you all the things that we could do Ever
    You know I wanna be together
    And I wanna spend the night with you Songtexte
    With you
    Come with me tonight
    We could make the night last forever Songtext
    </span>

    So soll aussehen aber es sieht so aus:





    1-9

    Hier findet ihr die Musikvideotitel die mit einer Zahl beginnen.

    4 Ever - The Veronicas



    Songtext ausklappen

    Here we are so what you gonna do? Do I gotta spell it out for you? I can see that you got other plans for tonight But I don’t really care Size me up you know I beat the best Tick tock no time to rest Let them say what their gonna say But tonight I just don’t really care [Chorus] Come on baby we ain't gonna live forever Let me show you all the things that we could do You know you wanna be together And I wanna spend the night with you Yeah, yeah with you, yeah, yeah Come with me tonight We could make the night last forever I've seen it all I’ve got nothing to prove Come on baby just make your move Follow me lets leave it all behind tonight Like we just don’t care Let me take you on the ride of your life That’s what I said alright They can say what they wanna say Cause tonight I just don’t even care [Chorus] Come on baby we ain't gonna live forever Let me show you all the things that we could do You know you wanna be together And I wanna spend the night with you Yeah, yeah with you, yeah, yeah Come with me tonight We could make the night last forever Lets pretend you're mine We could just pretend, we could just pretend, yeah yeah You got what I like You got what I like, I got what you like Oh come on Just one taste and you’ll want more So tell me what your waiting for [Chorus] Come on baby we aint gonna live forever Liedertext Let me show you all the things that we could do Alle You know you wanna be together And I wanna spend the night with you The Yeah, yeah with you, yeah, yeah Come with me tonight We could make the night last forever Veronicas Come on baby we aint gonna live forever Let me show you all the things that we could do Ever You know I wanna be together And I wanna spend the night with you Songtexte With you Come with me tonight We could make the night last forever Songtext

    Wie mach ich nun die leerzeilen darein?
     
  4. kalweit

    kalweit Hüter der Glaskugel

    Schreib am Zeilenende ein <br> und für jeden Absatz ein <p>
     
  5. marcos13

    marcos13 Byte

    Jo, danke funktioniert so wie ich es wollte! :bet:
     
  6. marcos13

    marcos13 Byte

    Aber kannst du mir auch sagen wie ich den Text so mache dass er wie in einem Formularfeld ist?
    Weil man will ja das video sehen und dabei den text mitsingen können oder weißt du da eine andere Lösung wär nett wenn du was wüßtest!
     
  7. marcos13

    marcos13 Byte

    Hallo,

    ich habe ein Script auf das man klickt und sich dann darunter ein text öffnet wenn ich dieses script aber 2 mal auf der gleichen seite habe und ich eins benutze öffnet sich immer nur das gleiche

    Das Script:
    <a onmouseover="this.style.cursor='hand'" onclick= "document.getElementById('a_1_1').style.display = 'block'">
    Wenn ich hier klicke ..</a><br/>
    <span style="display:none" id="a_1_1" onmouseover="this.style.cursor='hand'"
    onclick="this.style.display='none'">
    ... erscheint dieser Text, und wenn ich auf den Text
    klicke, verschwindet er wieder!</span>

    könnt ihr mir helfen?
     
  8. kalweit

    kalweit Hüter der Glaskugel

    Es ist nicht notwendig dafür ein zweites Thema auf zu machen. Selbstverständlich musst du die "ID" ändern, wie sonst sollten zwei Dinge, die gleich heißen auseinander gehalten werden können.
     
  9. marcos13

    marcos13 Byte

    achso ok danke und sorry wegen dem 2. Thread
     
Thread Status:
Not open for further replies.

Share This Page