kostenloser Webspace werbefrei: lima-city


Suche auf lima-city

  • in: scroll script

    geschrieben von crossi

    Vielen Dank Sebastian!
    Leider weiss ich nicht, wie ich die /*Scrollfunktion einbauen:*/ einbauen soll, da ich überhaupt keine Ahnung habe.
    Nun ich wollte auf meiner Homepage so einen kleinen Kasten oder Tabelle einbauen, in dem ein Text erscheinen sollen. Mit 2 Buttons könnte man den Text hoch oder runter scrollen können. So habe ich auf meiner Homepage Platz gespart.
    Vielleicht hast Du eine Ahnung wie das geht oder einen Tip an wen ich mich da wenden kann. Danke noch ein mal für Dein schnelles Feedback!
  • in: scroll script

    geschrieben von crossi

    Halli-hallo,

    kann mir jemand helfen?
    Thema:
    Ich möchte einen Text auf meiner Homepage scrollen können.
    Nach langer Suche fand ich unten stehenden script:
    Problem:
    der scrollende Text zeigt sich auf meiner Homepage immer oben links.
    Ich möchte aber den Text an einer anderen Stelle scrollen können.
    Frage:
    Was muss ich in diesem Script ändern, damit ich das Problem löse?
    _________________________________________________________________________
    <body>

    <script type="text/javascript">

    /******************************************
    * Scrollable content script II- © Dynamic Drive (www.dynamicdrive.com)
    * Visit http://www.dynamicdrive.com/ for full source code
    * This notice must stay intact for use
    ******************************************/
    iens6=document.all||document.getElementById
    ns4=document.layers

    //specify speed of scroll (greater=faster)
    var speed=5

    if (iens6){
    document.write('<div id="container" style="position:relative;width:535px;height:60px;border:1px solid black;overflow:hidden">')
    document.write('<div id="content" style="position:relative;width:0px;left:2;top:0">')
    }
    </script>

    <!--INSERT CONTENT HERE-->

    <p style="margin-top: 0pt; margin-bottom: 0pt;">
    VIELEN DANK FÜR DEINE HILFE!!!</p>

    <!--END CONTENT-->

    <font size="1" face="Verdana">

    <script language="JavaScript1.2">
    if (iens6)
    document.write('</div></div>')
    </script>

    <script language="JavaScript1.2">
    if (iens6){
    var crossobj=document.getElementById? document.getElementById("content") : document.all.content
    var contentheight=crossobj.offsetHeight
    }
    else if (ns4){
    var crossobj=document.nscontainer.document.nscontent
    var contentheight=crossobj.clip.height
    }

    function movedown(){
    if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100))
    crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
    else if (ns4&&crossobj.top>=(contentheight*(-1)+100))
    crossobj.top-=speed
    movedownvar=setTimeout("movedown()",20)
    }

    function moveup(){
    if (iens6&&parseInt(crossobj.style.top)<=0)
    crossobj.style.top=parseInt(crossobj.style.top)+speed+"px"
    else if (ns4&&crossobj.top<=0)
    crossobj.top+=speed
    moveupvar=setTimeout("moveup()",20)

    }

    function getcontent_height(){
    if (iens6)
    contentheight=crossobj.offsetHeight
    else if (ns4)
    document.nscontainer.document.nscontent.visibility="show"
    }
    window.onload=getcontent_height
    </script>


    </table>

    </font></strong></font>
    </layer>

    <table width="527"><tr>
    <font face="Verdana" size="1"> <strong>
    <td width="521"><p align="right">
    <a href="#" onmouseover="moveup()" onmouseout="clearTimeout(moveupvar)"><img src="up.gif" border="0"></a> <a href="#" onmouseover="movedown()" onmouseout="clearTimeout(movedownvar)"><img src="down.gif" border="0"></a></p></td>
    </tr></table>

    ______________________________________________________________________________

    Beitrag geaendert: 1.6.2007 22:24:43 von crossi

Login zum Webhosting ohne Werbung!