Subversion-Projekte lars-tiefland.shop_ns

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
5 lars 1
 
2
    var sliderwidth = 420;
3
    var sliderheight = 80;
4
    var slidespeed = 5;
5
    var slidebgcolor = "#fff";
6
    var leftrightslide = new Array();
7
    var copyspeed = slidespeed;
8
    var i = 0;
9
 
10
 
11
    leftrightslide[i++] = '<a href="0001.html"><img style="margin-top:10px;" src="/images/Bild_1/6_DE_464-42_MED.jpg" height="50"></a>';
12
    leftrightslide[i++] = '<a href="0002.html"><img style="margin-top:10px;" src="/images/Bild_1/11_DE_aeg+co+100.jpg" height="50"></a>';
13
    leftrightslide[i++] = '<a href="0003.html"><img style="margin-top:10px;" src="/images/Bild_1/96_DE_sharp+r-634+in.jpg" height="50"></a>';
14
    leftrightslide[i++] = '<a href="0004.html"><img style="margin-top:10px;" src="/images/Bild_1/146_DE_bosch+mum+4405.jpg" height="50"></a>';
15
    leftrightslide[i++] = '<a href="0005.html"><img style="margin-top:10px;" src="/images/Bild_1/146_DE_bosch+mum+4405.jpg" height="50"></a>';
16
    leftrightslide[i++] = '<a href="0006.html"><img style="margin-top:10px;" src="/images/Bild_1/146_DE_bosch+mum+4405.jpg" height="50"></a>';
17
 
18
    leftrightslide[i++] = '<a href="0001.html"><img style="margin-top:10px;" src="/images/Bild_1/278_DE_Braun+CCR+2.jpg" height="50"></a>';
19
    leftrightslide[i++] = '<a href="0002.html"><img style="margin-top:10px;" src="/images/Bild_1/520_DE_panasonic+sd+253.jpg" height="50"></a>';
20
    leftrightslide[i++] = '<a href="0003.html"><img style="margin-top:10px;" src="/images/Bild_1/557_NL_miele_S712.jpg" height="50"></a>';
21
    leftrightslide[i++] = '<a href="0004.html"><img style="margin-top:10px;" src="/images/Bild_1/616_DE_plusx.jpg" height="50"></a>';
22
    leftrightslide[i++] = '<a href="0005.html"><img style="margin-top:10px;" src="/images/Bild_1/713_DE_ACCDHM3.JPG" height="50"></a>';
23
    leftrightslide[i++] = '<a href="0006.html"><img style="margin-top:10px;" src="/images/Bild_1/1176_DE_1176_DE_can_cd10.jpg" height="50"></a>';
24
 
25
 
26
    leftrightslide = '<nobr>' + leftrightslide.join(" ") + '</nobr>';
27
    var iedom = document.all || document.getElementById;
28
    var actualwidth = '';
29
    var cross_slide, ns_slide;
30
 
31
    function fillup(action){
32
        if (iedom){
33
            document.getElementById('temp').style.display = "none";
34
            cross_slide=document.getElementById? document.getElementById("slide1") : document.all.slide1;
35
            cross_slide2=document.getElementById? document.getElementById("slide2") : document.all.slide2;
36
            cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide;
37
            actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth;
38
            cross_slide2.style.left=actualwidth+10;
39
 
40
 
41
        }
42
        else if (document.layers){
43
            ns_slide=document.ns_slidemenu.document.ns_slidemenu2;
44
            ns_slide2=document.ns_slidemenu.document.ns_slidemenu3;
45
            ns_slide.document.write(leftrightslide);
46
            ns_slide.document.close();
47
            actualwidth=ns_slide.document.width;
48
            ns_slide2.left=actualwidth+20;
49
            ns_slide2.document.write(leftrightslide);
50
            ns_slide2.document.close();
51
        }
52
        //action slideleft+(), slideright+()
53
        if(action=="slideleft"){
54
            lefttime = setInterval(action + "()",30);
55
        }
56
        if(action=="slideright"){
57
            righttime = setInterval(action + "()",30);
58
        }
59
 
60
 
61
    }
62
//    window.onload=fillup();
63
 
64
    function slideleft() {
65
        if (iedom){
66
            if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8)){
67
                cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed;
68
            }else{
69
                 cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+30;
70
            }
71
            if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8)){
72
                cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed;
73
            }else{
74
                cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+30;
75
            }
76
        }
77
        else if (document.layers){
78
            if (ns_slide.left>(actualwidth*(-1)+8))
79
                ns_slide.left-=copyspeed;
80
            else
81
                ns_slide.left=ns_slide2.left+actualwidth+30;
82
 
83
            if (ns_slide2.left>(actualwidth*(-1)+8))
84
                ns_slide2.left-=copyspeed;
85
            else
86
                ns_slide2.left=ns_slide.left+actualwidth+30;
87
        }
88
    }
89
 
90
    function slideright() {
91
        if (iedom){
92
            if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8)){
93
                cross_slide.style.left=parseInt(cross_slide.style.left)+copyspeed;
94
            }else{
95
                 cross_slide.style.left=parseInt(cross_slide2.style.left)-actualwidth+30;
96
            }
97
 
98
            if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8)){
99
                cross_slide2.style.left=parseInt(cross_slide2.style.left)+copyspeed;
100
            }else{
101
                cross_slide2.style.left=parseInt(cross_slide.style.left)-actualwidth+30;
102
            }
103
        }
104
        else if (document.layers){
105
            if (ns_slide.left>(actualwidth*(-1)+8))
106
                ns_slide.left-=copyspeed;
107
            else
108
                ns_slide.left=ns_slide2.left+actualwidth+30;
109
 
110
            if (ns_slide2.left>(actualwidth*(-1)+8))
111
                ns_slide2.left-=copyspeed;
112
            else
113
                ns_slide2.left=ns_slide.left+actualwidth+30;
114
        }
115
    }
116
 
117
    if (iedom||document.layers){
118
        with (document){
119
            document.write('<table width=\"545\" cellspacing=\"0\" cellpadding=\"0\">');
120
            document.write('<tr><td class=\"item_oben\">H&auml;ufig angeklickt</td></tr>');
121
            document.write('<tr><td class=\"item_body\">');
122
 
123
            document.write('<div class=\"bildlauf\">');
124
            if (iedom){
125
                document.write('<div class=\"button_left\">');
126
                //der button zum LINKS scrollen
127
                document.write('<input onmousedown=\"fillup(\'slideleft\');copyspeed=slidespeed\"');
128
                document.write(' onmouseup=\"clearInterval(lefttime);copyspeed=0;\" type=\"submit\" value=\"<<\" />');
129
                document.write('</div>');
130
 
131
                document.write('<div class=\"slidebar\" style="width:' + sliderwidth + ';height:' + sliderheight + ';overflow:hidden">');
132
                document.write('<div style="padding-top:15px;width:' + sliderwidth + ';height:' + sliderheight + ';background-color:' + slidebgcolor + '" >');
133
                if (iedom)
134
                document.write('<div id="temp" style="text-align:left;margin-top:-15px;">' + leftrightslide + '</div>');
135
 
136
                document.write('<div id="slide1" style="position:absolute;left:0;top:0"></div>');
137
                document.write('<div id="slide2" style="position:absolute;left:0;top:0"></div>');
138
                document.write('</div></div>');
139
 
140
                document.write('<div class=\"button_right\">');
141
 
142
                //der button zum RECHTS scrollen
143
                document.write('<input onmousedown=\"fillup(\'slideright\');copyspeed=slidespeed\"');
144
                document.write(' onmouseup=\"clearInterval(righttime);copyspeed=0;\" type=\"submit\" value=\">>\" />');
145
 
146
 
147
                document.write('</div>');
148
 
149
            }
150
            else if (document.layers){
151
                document.write('<ilayer width='+sliderwidth+' height='+sliderheight+' name="ns_slidemenu" bgColor='+slidebgcolor+'>');
152
                document.write('<layer name="ns_slidemenu2" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>');
153
                document.write('<layer name="ns_slidemenu3" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>');
154
                document.write('</ilayer>');
155
            }
156
            document.write('</div>');
157
 
158
            document.write('</td></tr>');
159
            document.write('<tr><td class=\"basket_unten\"></td></tr></table>');
160
        }
161
    }