Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* TWO TABS */
- <a href="javascript:;" onmousedown="document.getElementById('div1').style.top = '0px'; document.getElementById('div2').style.top = '310px';">LINK 1</a> <a href="javascript:;" onmousedown="document.getElementById('div1').style.top = '-310px'; document.getElementById('div2').style.top = '0px';">LINK 2</a>
- <div style="position:relative;overflow:hidden; width:500px; height:300px;">
- <div id="div1" style="background: #000; position:absolute; left:0px; width:500px; height:300px; transition: all 2s">div1</div> <div id="div2" style="background: #000; position:absolute; left:0px; toptop:310px; width:500px; height:300px; transition: all 2s">div2</div>
- </div>
- a
- /* THREE TABS */
- <a href="javascript:;" onmousedown="document.getElementById('div1').style.top = '0px'; document.getElementById('div2').style.top = '310px'; document.getElementById('div3').style.top = '620px'; document.getElementById('div4').style.top = '-930px'">LINK 1</a> <a href="javascript:;" onmousedown="document.getElementById('div1').style.top = '-310px'; document.getElementById('div2').style.top = '0px'; document.getElementById('div3').style.top = '310px'; document.getElementById('div4').style.top = '620px'">LINK 2</a> <a href="javascript:;" onmousedown="document.getElementById('div1').style.top = '-620px'; document.getElementById('div2').style.top = '-310px'; document.getElementById('div3').style.top = '0px'; document.getElementById('div4').style.top = '310px'">LINK 3</a> <a href="javascript:;" onmousedown="document.getElementById('div1').style.top = '-930px'; document.getElementById('div2').style.top = '-620px'; document.getElementById('div3').style.top = '-310px'; document.getElementById('div4').style.top = '0px'">LINK 4</a>
- <div style="position:relative;overflow:hidden; width:500px; height:300px;">
- <div id="div1" style="background: #000; position:absolute; top:0px; width:500px; height:300px; transition: all 2s">div1</div> <div id="div2" style="background: #000; position:absolute; top:310px; width:500px; height:300px; transition: all 2s">div2</div> <div id="div3" style="background: #000; position:absolute; top:620px; width:500px; height:300px; transition: all 2s">div3</div> <div id="div4" style="background: #000; position:absolute; top:930px; width:500px; height:300px; transition: all 2s">div4</div>
- </div>
- /* FOUR TABS */
- <a href="javascript:;" onmousedown="document.getElementById('div1').style.top = '0px'; document.getElementById('div2').style.top = '310px'; document.getElementById('div3').style.top = '620px’; document.getElementById('div4’).style.top = '930px' “>LINK 1</a> <a href="javascript:;" onmousedown="document.getElementById('div1').style.top = '-310px'; document.getElementById('div2').style.top = '0px'; document.getElementById('div3').style.top = '310px’; document.getElementById('div4’).style.top = '620px'“>LINK 2</a> <a href="javascript:;" onmousedown="document.getElementById('div1').style.top = '-620px'; document.getElementById('div2').style.top = '-310px'; document.getElementById('div3').style.top = '0px’; document.getElementById('div4’).style.top = ‘310px'“>LINK 3</a> <a href="javascript:;" onmousedown="document.getElementById('div1').style.top = '-930px'; document.getElementById('div2').style.top = ‘-620px'; document.getElementById('div3').style.top = ‘-310px’; document.getElementById('div4’).style.top = ‘0px’“>LINK 4</a>
- <div style="position:relative;overflow:hidden; width:500px; height:300px;">
- <div id="div1" style="background: #000; position:absolute; top:0px; width:500px; height:300px; transition: all 2s">div1</div> <div id="div2" style="background: #000; position:absolute; top:310px; width:500px; height:300px; transition: all 2s">div2</div> <div id="div3" style="background: #000; position:absolute; top:620px; width:500px; height:300px; transition: all 2s">div3</div> <div id="div4” style="background: #000; position:absolute; top:930px; width:500px; height:300px; transition: all 2s">div4</div>
- </div>
- /* FIVE TABS */
- <a href="javascript:;" onmousedown="document.getElementById('div1').style.top = '0px'; document.getElementById('div2').style.top = '310px'; document.getElementById('div3').style.top = '620px'; document.getElementById('div4').style.top = '930px'; document.getElementById('div5').style.top = '1240px' ">LINK 1</a> <a href="javascript:;" onmousedown="document.getElementById('div1').style.top = '-310px'; document.getElementById('div2').style.top = '0px'; document.getElementById('div3').style.top = '310px'; document.getElementById('div4').style.top = '620px'; document.getElementById('div5').style.top = '930px' ">LINK 2</a> <a href="javascript:;" onmousedown="document.getElementById('div1').style.top = '-620px'; document.getElementById('div2').style.top = '-310px'; document.getElementById('div3').style.top = '0px'; document.getElementById('div4').style.top = '310px'; document.getElementById('div5').style.top = '620px' ">LINK 3</a> <a href="javascript:;" onmousedown="document.getElementById('div1').style.top = '-930px'; document.getElementById('div2').style.top = '-620px'; document.getElementById('div3').style.top = '-310px'; document.getElementById('div4').style.top = '0px'; document.getElementById('div5').style.top = '310px'">LINK 4</a> <a href="javascript:;" onmousedown="document.getElementById('div1').style.top = '-1240px'; document.getElementById('div2').style.top = '-930px'; document.getElementById('div3').style.top = '-620px'; document.getElementById('div4').style.top = '-310px'; document.getElementById('div5').style.top = '0px'">LINK 5</a>
- <div style="position:relative;overflow:hidden; width:500px; height:300px;">
- <div id="div1" style="background: #000; position:absolute; top:0px; width:500px; height:300px; transition: all 2s">div1</div> <div id="div2" style="background: #000; position:absolute; top:310px; width:500px; height:300px; transition: all 2s">div2</div> <div id="div3" style="background: #000; position:absolute; top:620px; width:500px; height:300px; transition: all 2s">div3</div> <div id="div4" style="background: #000; position:absolute; top:930px; width:500px; height:300px; transition: all 2s">div4</div> <div id="div5" style="background: #000; position:absolute; top:1240px; width:500px; height:300px; transition: all 2s">div5</div>
- </div>
- /* SIX TABS */
- <a href="javascript:;" onmousedown="document.getElementById('div1').style.top = '0px'; document.getElementById('div2').style.top = '310px'; document.getElementById('div3').style.top = '620px'; document.getElementById('div4').style.top = '930px'; document.getElementById('div5').style.top = '1240px'; document.getElementById('div6').style.top = '1550px' ">LINK 1</a> <a href="javascript:;" onmousedown="document.getElementById('div1').style.top = '-310px'; document.getElementById('div2').style.top = '0px'; document.getElementById('div3').style.top = '310px'; document.getElementById('div4').style.top = '620px'; document.getElementById('div5').style.top = '930px'; document.getElementById('div6').style.top = '1240px'">LINK 2</a> <a href="javascript:;" onmousedown="document.getElementById('div1').style.top = '-620px'; document.getElementById('div2').style.top = '-310px'; document.getElementById('div3').style.top = '0px'; document.getElementById('div4').style.top = '310px'; document.getElementById('div5').style.top = '620px'; document.getElementById('div6').style.top = '930px'">LINK 3</a> <a href="javascript:;" onmousedown="document.getElementById('div1').style.top = '-930px'; document.getElementById('div2').style.top = '-620px'; document.getElementById('div3').style.top = '-310px'; document.getElementById('div4').style.top = '0px'; document.getElementById('div5').style.top = '310px'; document.getElementById('div6').style.top = '620px'">LINK 4</a> <a href="javascript:;" onmousedown="document.getElementById('div1').style.top = '-1240px'; document.getElementById('div2').style.top = '-930px'; document.getElementById('div3').style.top = '-620px'; document.getElementById('div4').style.top = '-310px'; document.getElementById('div5').style.top = '0px'; document.getElementById('div6').style.top = '310px'">LINK 5</a> <a href="javascript:;" onmousedown="document.getElementById('div1').style.top = '-1550px'; document.getElementById('div2').style.top = '-1240px'; document.getElementById('div3').style.top = '-930px'; document.getElementById('div4').style.top = '-620px'; document.getElementById('div5').style.top = '-310px'; document.getElementById('div6').style.top = '0px'">LINK 6</a>
- <div style="position:relative;overflow:hidden; width:500px; height:300px;">
- <div id="div1" style="background: #000; position:absolute; top:0px; width:500px; height:300px; transition: all 2s">div1</div> <div id="div2" style="background: #000; position:absolute; top:310px; width:500px; height:300px; transition: all 2s">div2</div> <div id="div3" style="background: #000; position:absolute; top:620px; width:500px; height:300px; transition: all 2s">div3</div> <div id="div4" style="background: #000; position:absolute; top:930px; width:500px; height:300px; transition: all 2s">div4</div> <div id="div5" style="background: #000; position:absolute; top:1240px; width:500px; height:300px; transition: all 2s">div5</div> <div id="div6" style="background: #000; position:absolute; top:1240px; width:500px; height:300px; transition: all 2s">div6</div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement