Miss Diana
Ich schon wieder!
Dieses Mal ist es aber ein Javascript-Problem, weil ich mich damit überhaupt nicht auskenne. :/
Problembeschreibung:
Ich habe
nach diesem Tutorial versucht, Scrollpfeile einzubauen, die in der Threadansicht bei den Profilfeldern erscheinen sollen. Das klappt auch ganz wunderbar, bis auf die Tatsache, dass es eben nicht scrollt.
Ich habe die JS-Dateien einmal im wbblite-Ordner und einmal im templates-Ordner geladen, aber beides funktioniert nicht.
Fehlermeldung:
keine
Link zum Forum und Screenshot (KEINE Bilderhoster, per Dateianhang):
siehe Anhang
Was wurde zuletzt geändert oder eingebaut?
//
Dies ist der Auszug aus meiner thread_postbit.tpl:
code: |
1:
2:
3:
4:
5:
6:
7:
|
<div style="position:relative; width:200px; height:140px; overflow:hidden;">
<div id="container_$posts[postid]" style="position:relative; width:195px; left:0px; top:0px; padding:2px 2px 2px 2px; text-align: justify;"><smallfont>$userfields
</font></div>
</div>
<div align="center"><a href="" onMouseover="move('container_$posts[postid]',5)" onMouseout="clearTimeout(move.to)"><img src="{imagefolder}/up.png" border=0></a> <a href="" onMouseover="move('container_$posts[postid]',-5)" onMouseout="clearTimeout(move.to)"><img src="{imagefolder}/down.png" border=0></a></div><br> |
|
Slugger
Zitat: |
Original von Miss Diana
Ich schon wieder!
Dieses Mal ist es aber ein Javascript-Problem, weil ich mich damit überhaupt nicht auskenne. :/
Problembeschreibung:
Ich habe nach diesem Tutorial versucht, Scrollpfeile einzubauen, die in der Threadansicht bei den Profilfeldern erscheinen sollen. Das klappt auch ganz wunderbar, bis auf die Tatsache, dass es eben nicht scrollt.
Ich habe die JS-Dateien einmal im wbblite-Ordner und einmal im templates-Ordner geladen, aber beides funktioniert nicht.
Fehlermeldung:
keine
Link zum Forum und Screenshot (KEINE Bilderhoster, per Dateianhang):
siehe Anhang
Was wurde zuletzt geändert oder eingebaut?
//
Dies ist der Auszug aus meiner thread_postbit.tpl:
code: |
1:
2:
3:
4:
5:
6:
7:
|
<div style="position:relative; width:200px; height:140px; overflow:hidden;">
<div id="container_$posts[postid]" style="position:relative; width:195px; left:0px; top:0px; padding:2px 2px 2px 2px; text-align: justify;"><smallfont>$userfields
</font></div>
</div>
<div align="center"><a href="" onMouseover="move('container_$posts[postid]',5)" onMouseout="clearTimeout(move.to)"><img src="{imagefolder}/up.png" border=0></a> <a href="" onMouseover="move('container_$posts[postid]',-5)" onMouseout="clearTimeout(move.to)"><img src="{imagefolder}/down.png" border=0></a></div><br> |
|
|
Pfadangabe zu den JS-Dateien in der headinclude.tpl gesetzt?
Miss Diana
Huhu
Ja, hab das wie folgt in der headinclude.tpl drin:
code: |
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:
|
<STYLE TYPE="TEXT/CSS">
<!--
{css}
-->
</STYLE>
<link rel="stylesheet" type="text/css" href="scrollable.css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="impetus.js"></script>
<script type="text/javascript" src="scrollable.js">
/***********************************************
* Scrollable Content script- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Please keep this notice intact
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
<script>
var scrollv, scrollh // register two global vars for two scrollable instances
jQuery(function(e){ // on DOM load
scrollv = new scrollable({
wrapperid: "container_$posts[postid]"
})
scrollh = new scrollable({
wrapperid: "scrollable-h",
orient: 'horizontal'
})
})
</script> |
|
Slugger
Es kann sein, das du noch in Zeile 12 ein "/" bzw. ein "./" einfügen musst.
Alternative gibt es bereits ein Hack "Scrollable profiledata postings" mit Anleitung,
den du bei uns als Gast herunterladen kannst.
->
KaX-ANGEBOT-Scrollable profiledata postings
Miss Diana
Danke, den werde ich gleich ausprobieren.