PSD-Tutorials.de
Forum für Design, Fotografie & Bildbearbeitung
Tutkit
Agentur
Hilfe
Kontakt
Start
Forum
Aktuelles
Besonderer Inhalt
Foren durchsuchen
Tutorials
News
Anmelden
Kostenlos registrieren
Aktuelles
Suche
Suche
Nur Titel durchsuchen
Von:
Menü
Anmelden
Kostenlos registrieren
App installieren
Installieren
JavaScript ist deaktiviert. Für eine bessere Darstellung aktiviere bitte JavaScript in deinem Browser, bevor du fortfährst.
Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden.
Du solltest ein Upgrade durchführen oder einen
alternativen Browser
verwenden.
Antworten auf deine Fragen:
Neues Thema erstellen
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
PHP, Javascript, jQuery, Ajax, nodeJS, MySQL...
[Javascript] Links-Rechts Scollen Mouseover
Beitrag
<blockquote data-quote="captainthriller" data-source="post: 896993" data-attributes="member: 48793"><p><strong>AW: [Javascript] Links-Rechts Scollen Mouseover</strong></p><p></p><p>Ich habe es mal versucht aber es klappt nicht ... ich weiss aber auch nicht ob ich alles richtig gemacht habe...</p><p></p><p>[code]</p><p></p><p><script type="text/javascript"></p><p></p><p>/******************************************</p><p>* Scrollable content script II- © Dynamic Drive ([url=http://www.dynamicdrive.com]Dynamic Drive DHTML(dynamic html) & JavaScript code library[/url])</p><p>* Visit [url=http://www.dynamicdrive.com/]Dynamic Drive DHTML(dynamic html) & JavaScript code library[/url] for full source code</p><p>* This notice must stay intact for use</p><p>******************************************/</p><p></p><p>iens6=document.all||document.getElementById</p><p>ns4=document.layers</p><p></p><p>//specify speed of scroll (greater=faster)</p><p>var speed=5</p><p></p><p>if (iens6){</p><p>document.write('<div id="holder" style="position:relative;width:175px;height:160px;border:1px solid black;overflow:hidden">')</p><p>document.write('<div id="ims" style="position:absolute;width:240px;left:0;top:0">')</p><p>}</p><p></script></p><p></p><p><ilayer name="nscontainer" width=175 height=160 clip="0,0,175,160"></p><p><layer name="nscontent" width=240 height=160 visibility=hidden></p><p></p><p><!--INSERT CONTENT HERE--></p><p><p><font size="2" face="Arial">-</font><font size="2" face="Arial"> DHTML is the</p><p>combination of HTML, JavaScript, and CSS</font></p></p><p><p><font size="2" face="Arial">- DOM stands for Document Object Model</font></p></p><p><p><font size="2" face="Arial">-</font><font size="2" face="Arial"> DHTML allows</p><p>content on a page to change on the fly, without reloading the page</font></p></p><p><p><font size="2" face="Arial">- CSS allows for the separation between content</p><p>definition and formatting</font></p></p><p><p><font size="2" face="Arial">- CSS stands for Cascading style sheet</font></p></p><p><p><font size="2" face="Arial">- </font><font size="2" face="Arial"><a href="http://www.dynamicdrive.com">Dynamic</p><p>Drive</a> provides free, cut and paste DHTML scripts</font></p></p><p><!--END CONTENT--></p><p></p><p></layer></p><p></ilayer></p><p></p><p><script language="JavaScript1.2"></p><p>if (iens6)</p><p>document.write('</div></div>')</p><p></script></p><p></p><p><table width="175px"><td><p align="right"></p><p><a href="#" onMouseover="left()" onMouseout="pause()">left</a> <a href="#" onMouseover="right()" onMouseout="pause()">right</a></p></td></p><p></table></p><p></p><p><script language="JavaScript1.2"></p><p>if (iens6){</p><p>var crossobj=document.getElementById? document.getElementById("ims") : document.all.content</p><p>var contentheight=crossobj.offsetHeight</p><p>}</p><p>else if (ns4){</p><p>var crossobj=document.nscontainer.document.nscontent</p><p>var contentheight=crossobj.clip.height</p><p>}</p><p></p><p>function right(){</p><p>if(!document.getElementById("ims").style.marginLeft){ marg = 0; } else {</p><p>marg = parseInt(document.getElementById("ims").style.marginLeft); }</p><p>marg -= 1;</p><p>if(parseInt(width+marg)>parseInt(document.getElementById("holder").style.width)){</p><p>document.getElementById("ims").style.marginLeft = marg; }</p><p>tout = setTimeout("right()",0);</p><p>}</p><p>function left(){</p><p>if(!document.getElementById("ims").style.marginLeft){ marg = 0; } else {</p><p>marg = parseInt(document.getElementById("ims").style.marginLeft); }</p><p>if(marg < 0){</p><p>marg += 1;</p><p>document.getElementById("ims").style.marginLeft = marg;</p><p>tout = setTimeout("left()",0);</p><p>}</p><p></p><p>}function pause(){</p><p>clearTimeout(tout)</p><p>}</p><p></p><p>function getcontent_height(){</p><p>if (iens6)</p><p>contentheight=crossobj.offsetHeight</p><p>else if (ns4)</p><p>document.nscontainer.document.nscontent.visibility="show"</p><p>}</p><p>window.onload=getcontent_height</p><p></script></p><p></p><p>[/code]</p></blockquote><p></p>
[QUOTE="captainthriller, post: 896993, member: 48793"] [b]AW: [Javascript] Links-Rechts Scollen Mouseover[/b] Ich habe es mal versucht aber es klappt nicht ... ich weiss aber auch nicht ob ich alles richtig gemacht habe... [code] <script type="text/javascript"> /****************************************** * Scrollable content script II- © Dynamic Drive ([url=http://www.dynamicdrive.com]Dynamic Drive DHTML(dynamic html) & JavaScript code library[/url]) * Visit [url=http://www.dynamicdrive.com/]Dynamic Drive DHTML(dynamic html) & JavaScript code library[/url] 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="holder" style="position:relative;width:175px;height:160px;border:1px solid black;overflow:hidden">') document.write('<div id="ims" style="position:absolute;width:240px;left:0;top:0">') } </script> <ilayer name="nscontainer" width=175 height=160 clip="0,0,175,160"> <layer name="nscontent" width=240 height=160 visibility=hidden> <!--INSERT CONTENT HERE--> <p><font size="2" face="Arial">-</font><font size="2" face="Arial"> DHTML is the combination of HTML, JavaScript, and CSS</font></p> <p><font size="2" face="Arial">- DOM stands for Document Object Model</font></p> <p><font size="2" face="Arial">-</font><font size="2" face="Arial"> DHTML allows content on a page to change on the fly, without reloading the page</font></p> <p><font size="2" face="Arial">- CSS allows for the separation between content definition and formatting</font></p> <p><font size="2" face="Arial">- CSS stands for Cascading style sheet</font></p> <p><font size="2" face="Arial">- </font><font size="2" face="Arial"><a href="http://www.dynamicdrive.com">Dynamic Drive</a> provides free, cut and paste DHTML scripts</font></p> <!--END CONTENT--> </layer> </ilayer> <script language="JavaScript1.2"> if (iens6) document.write('</div></div>') </script> <table width="175px"><td><p align="right"> <a href="#" onMouseover="left()" onMouseout="pause()">left</a> <a href="#" onMouseover="right()" onMouseout="pause()">right</a></p></td> </table> <script language="JavaScript1.2"> if (iens6){ var crossobj=document.getElementById? document.getElementById("ims") : document.all.content var contentheight=crossobj.offsetHeight } else if (ns4){ var crossobj=document.nscontainer.document.nscontent var contentheight=crossobj.clip.height } function right(){ if(!document.getElementById("ims").style.marginLeft){ marg = 0; } else { marg = parseInt(document.getElementById("ims").style.marginLeft); } marg -= 1; if(parseInt(width+marg)>parseInt(document.getElementById("holder").style.width)){ document.getElementById("ims").style.marginLeft = marg; } tout = setTimeout("right()",0); } function left(){ if(!document.getElementById("ims").style.marginLeft){ marg = 0; } else { marg = parseInt(document.getElementById("ims").style.marginLeft); } if(marg < 0){ marg += 1; document.getElementById("ims").style.marginLeft = marg; tout = setTimeout("left()",0); } }function pause(){ clearTimeout(tout) } function getcontent_height(){ if (iens6) contentheight=crossobj.offsetHeight else if (ns4) document.nscontainer.document.nscontent.visibility="show" } window.onload=getcontent_height </script> [/code] [/QUOTE]
Bilder bitte
hier hochladen
und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Zitate einfügen…
Authentifizierung
Wenn ▲ = 7, ▼ = 3, ◇ = 2 und die Summe von ▲ und ▼ durch ◇ geteilt wird, was ist das Ergebnis?
Antworten
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
PHP, Javascript, jQuery, Ajax, nodeJS, MySQL...
[Javascript] Links-Rechts Scollen Mouseover
Oben