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