Guest User

slider

a guest
Mar 9th, 2015
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4.  
  5. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  6. <link type="image/x-icon" href="http://www.direct-tv.comuf.com/favicon.ico" rel="shortcut icon" />
  7. <meta name="copyright" content="http://www.direct-tv.comuf.com/">
  8. <meta name="robots" content="noindex,nofollow">
  9.  
  10. <link href="http://www.direct-tv.comuf.com/js/carrusel.css" rel="stylesheet" type="text/css" />
  11. <script type="text/javascript" src="http://www.direct-tv.comuf.com/js/jquery-1.8.1.min.js"></script>
  12. <script type="text/javascript" src="http://www.direct-tv.comuf.com/js/jquery.easing.1.3.js"></script>
  13. <script type="text/javascript" src="http://www.direct-tv.comuf.com/js/sliding_effect.js"></script>
  14. <script type="text/javascript" src="http://www.direct-tv.comuf.com/js/slider.js"></script>
  15.  
  16.  
  17. </head>
  18. <body>
  19.  
  20. <div class="botonera" id="botonera"></div>
  21. <div style="opacity: 1;" id="thumbnails_wrapper">
  22. <div id="outer_container">
  23. <div style="width: 882px;" class="thumbScroller">
  24. <div style="margin-left: 30px; width: 4854px; left: -2706.29px;" class="container">
  25.  
  26.  
  27. <div class="content">
  28. <div><a href="../channel/id/canal1.php" rel="prettyPhoto[iframe]" title=""><img src="http://2.bp.blogspot.com/-jrb7SGBmqSQ/U4jcCbR_pKI/AAAAAAAABQo/tAtTIvVUpz0/s1600/hustlertv.jpg" height="60" width="80"></a></div>
  29. </div>
  30.  
  31. <div class="content">
  32. <div><a href="../channel/id/canal2.php" rel="prettyPhoto[iframe]" title=""><img src="https://lh5.googleusercontent.com/-Y5cbK5A2kys/UxpA55BN0aI/AAAAAAAAA9U/yLICNwZSrLI/w240-h142-no/plustoros.jpg" height="60" width="80"></a></div>
  33. </div>
  34.  
  35. <div class="content">
  36. <div><a href="../channel/id/canal3.php" rel="prettyPhoto[iframe]" title="Ver Canal Plus Online"><img src="http://1.bp.blogspot.com/-9vT3RZFdh-k/UxTcoNmJ4sI/AAAAAAAABME/ouc-mbGfGpU/s1600/Canalplus.png" height="60" width="80"></a></div>
  37. </div>
  38.  
  39. <div class="content">
  40. <div><a href="../channel/id/canal1.php" rel="prettyPhoto[iframe]" title=""><img src="http://2.bp.blogspot.com/-jrb7SGBmqSQ/U4jcCbR_pKI/AAAAAAAABQo/tAtTIvVUpz0/s1600/hustlertv.jpg" height="60" width="80"></a></div>
  41. </div>
  42.  
  43. <div class="content">
  44. <div><a href="../channel/id/canal2.php" rel="prettyPhoto[iframe]" title=""><img src="https://lh5.googleusercontent.com/-Y5cbK5A2kys/UxpA55BN0aI/AAAAAAAAA9U/yLICNwZSrLI/w240-h142-no/plustoros.jpg" height="60" width="80"></a></div>
  45. </div>
  46.  
  47. <div class="content">
  48. <div><a href="../channel/id/canal3.php" rel="prettyPhoto[iframe]" title="Ver Canal Plus Online"><img src="http://1.bp.blogspot.com/-9vT3RZFdh-k/UxTcoNmJ4sI/AAAAAAAABME/ouc-mbGfGpU/s1600/Canalplus.png" height="60" width="80"></a></div>
  49. </div>
  50.  
  51. <div class="content">
  52. <div><a href="../channel/id/canal1.php" rel="prettyPhoto[iframe]" title=""><img src="http://2.bp.blogspot.com/-jrb7SGBmqSQ/U4jcCbR_pKI/AAAAAAAABQo/tAtTIvVUpz0/s1600/hustlertv.jpg" height="60" width="80"></a></div>
  53. </div>
  54.  
  55. <div class="content">
  56. <div><a href="../channel/id/canal2.php" rel="prettyPhoto[iframe]" title=""><img src="https://lh5.googleusercontent.com/-Y5cbK5A2kys/UxpA55BN0aI/AAAAAAAAA9U/yLICNwZSrLI/w240-h142-no/plustoros.jpg" height="60" width="80"></a></div>
  57. </div>
  58.  
  59. <div class="content">
  60. <div><a href="../channel/id/canal3.php" rel="prettyPhoto[iframe]" title="Ver Canal Plus Online"><img src="http://1.bp.blogspot.com/-9vT3RZFdh-k/UxTcoNmJ4sI/AAAAAAAABME/ouc-mbGfGpU/s1600/Canalplus.png" height="60" width="80"></a></div>
  61. </div>
  62.  
  63. <div class="content">
  64. <div><a href="../channel/id/canal1.php" rel="prettyPhoto[iframe]" title=""><img src="http://2.bp.blogspot.com/-jrb7SGBmqSQ/U4jcCbR_pKI/AAAAAAAABQo/tAtTIvVUpz0/s1600/hustlertv.jpg" height="60" width="80"></a></div>
  65. </div>
  66.  
  67. <div class="content">
  68. <div><a href="../channel/id/canal2.php" rel="prettyPhoto[iframe]" title=""><img src="https://lh5.googleusercontent.com/-Y5cbK5A2kys/UxpA55BN0aI/AAAAAAAAA9U/yLICNwZSrLI/w240-h142-no/plustoros.jpg" height="60" width="80"></a></div>
  69. </div>
  70.  
  71. <div class="content">
  72. <div><a href="../channel/id/canal3.php" rel="prettyPhoto[iframe]" title="Ver Canal Plus Online"><img src="http://1.bp.blogspot.com/-9vT3RZFdh-k/UxTcoNmJ4sI/AAAAAAAABME/ouc-mbGfGpU/s1600/Canalplus.png" height="60" width="80"></a></div>
  73. </div>
  74.  
  75. <div class="content">
  76. <div><a href="../channel/id/canal1.php" rel="prettyPhoto[iframe]" title=""><img src="http://2.bp.blogspot.com/-jrb7SGBmqSQ/U4jcCbR_pKI/AAAAAAAABQo/tAtTIvVUpz0/s1600/hustlertv.jpg" height="60" width="80"></a></div>
  77. </div>
  78.  
  79. <div class="content">
  80. <div><a href="../channel/id/canal2.php" rel="prettyPhoto[iframe]" title=""><img src="https://lh5.googleusercontent.com/-Y5cbK5A2kys/UxpA55BN0aI/AAAAAAAAA9U/yLICNwZSrLI/w240-h142-no/plustoros.jpg" height="60" width="80"></a></div>
  81. </div>
  82.  
  83. <div class="content">
  84. <div><a href="../channel/id/canal3.php" rel="prettyPhoto[iframe]" title="Ver Canal Plus Online"><img src="http://1.bp.blogspot.com/-9vT3RZFdh-k/UxTcoNmJ4sI/AAAAAAAABME/ouc-mbGfGpU/s1600/Canalplus.png" height="60" width="80"></a></div>
  85. </div>
  86.  
  87. <div class="content">
  88. <div><a href="../channel/id/canal1.php" rel="prettyPhoto[iframe]" title=""><img src="http://2.bp.blogspot.com/-jrb7SGBmqSQ/U4jcCbR_pKI/AAAAAAAABQo/tAtTIvVUpz0/s1600/hustlertv.jpg" height="60" width="80"></a></div>
  89. </div>
  90.  
  91. <div class="content">
  92. <div><a href="../channel/id/canal2.php" rel="prettyPhoto[iframe]" title=""><img src="https://lh5.googleusercontent.com/-Y5cbK5A2kys/UxpA55BN0aI/AAAAAAAAA9U/yLICNwZSrLI/w240-h142-no/plustoros.jpg" height="60" width="80"></a></div>
  93. </div>
  94.  
  95. <div class="content">
  96. <div><a href="../channel/id/canal3.php" rel="prettyPhoto[iframe]" title="Ver Canal Plus Online"><img src="http://1.bp.blogspot.com/-9vT3RZFdh-k/UxTcoNmJ4sI/AAAAAAAABME/ouc-mbGfGpU/s1600/Canalplus.png" height="60" width="80"></a></div>
  97. </div>
  98.  
  99. <div class="content">
  100. <div><a href="../channel/id/canal1.php" rel="prettyPhoto[iframe]" title=""><img src="http://2.bp.blogspot.com/-jrb7SGBmqSQ/U4jcCbR_pKI/AAAAAAAABQo/tAtTIvVUpz0/s1600/hustlertv.jpg" height="60" width="80"></a></div>
  101. </div>
  102.  
  103. <div class="content">
  104. <div><a href="../channel/id/canal2.php" rel="prettyPhoto[iframe]" title=""><img src="https://lh5.googleusercontent.com/-Y5cbK5A2kys/UxpA55BN0aI/AAAAAAAAA9U/yLICNwZSrLI/w240-h142-no/plustoros.jpg" height="60" width="80"></a></div>
  105. </div>
  106.  
  107. <div class="content">
  108. <div><a href="../channel/id/canal3.php" rel="prettyPhoto[iframe]" title="Ver Canal Plus Online"><img src="http://1.bp.blogspot.com/-9vT3RZFdh-k/UxTcoNmJ4sI/AAAAAAAABME/ouc-mbGfGpU/s1600/Canalplus.png" height="60" width="80"></a></div>
  109. </div>
  110.  
  111. <div class="content">
  112. <div><a href="../channel/id/canal1.php" rel="prettyPhoto[iframe]" title=""><img src="http://2.bp.blogspot.com/-jrb7SGBmqSQ/U4jcCbR_pKI/AAAAAAAABQo/tAtTIvVUpz0/s1600/hustlertv.jpg" height="60" width="80"></a></div>
  113. </div>
  114.  
  115. <div class="content">
  116. <div><a href="../channel/id/canal2.php" rel="prettyPhoto[iframe]" title=""><img src="https://lh5.googleusercontent.com/-Y5cbK5A2kys/UxpA55BN0aI/AAAAAAAAA9U/yLICNwZSrLI/w240-h142-no/plustoros.jpg" height="60" width="80"></a></div>
  117. </div>
  118.  
  119. <div class="content">
  120. <div><a href="../channel/id/canal3.php" rel="prettyPhoto[iframe]" title="Ver Canal Plus Online"><img src="http://1.bp.blogspot.com/-9vT3RZFdh-k/UxTcoNmJ4sI/AAAAAAAABME/ouc-mbGfGpU/s1600/Canalplus.png" height="60" width="80"></a></div>
  121. </div>
  122.  
  123.        
  124. </div></div></div></div>
  125.  
  126. <script>
  127. //config
  128. //set default images view mode
  129. $defaultViewMode="none"; //full, normal, original
  130. $tsMargin=30; //first and last thumbnail margin (for better cursor interaction)
  131. $scrollEasing=600; //scroll easing amount (0 for no easing)
  132. $scrollEasingType="easeOutCirc"; //scroll easing type
  133. $thumbnailsContainerOpacity=100; //thumbnails area default opacity
  134. $thumbnailsContainerMouseOutOpacity=100; //thumbnails area opacity on mouse out
  135. $thumbnailsOpacity=100; //thumbnails default opacity
  136. $nextPrevBtnsInitState="show"; //next/previous image buttons initial state ("hide" or "show")
  137. $keyboardNavigation="on"; //enable/disable keyboard navigation ("on" or "off")
  138.  
  139. //cache vars
  140. $thumbnails_wrapper=$("#thumbnails_wrapper");
  141. $outer_container=$("#outer_container");
  142. $thumbScroller=$(".thumbScroller");
  143. $thumbScroller_container=$(".thumbScroller .container");
  144. $thumbScroller_content=$(".thumbScroller .content");
  145. $thumbScroller_thumb=$(".thumbScroller .thumb");
  146. $preloader=$("#preloader");
  147. $toolbar=$("#toolbar");
  148. $toolbar_a=$("#toolbar a");
  149. $bgimg=$("#bgimg");
  150. $img_title=$("#img_title");
  151. $nextImageBtn=$(".nextImageBtn");
  152. $prevImageBtn=$(".prevImageBtn");
  153.  
  154. $(window).load(function() {
  155.     $toolbar.data("imageViewMode",$defaultViewMode); //default view mode
  156.     if($defaultViewMode=="full"){
  157.         $toolbar_a.html("<img src='toolbar_n_icon.png' width='50' height='50'  />").attr("onClick", "ImageViewMode('normal');return false").attr("title", "Restore");
  158.     } else {
  159.         $toolbar_a.html("<img src='toolbar_fs_icon.png' width='50' height='50'  />").attr("onClick", "ImageViewMode('full');return false").attr("title", "Maximize");
  160.     }
  161.     ShowHideNextPrev($nextPrevBtnsInitState);
  162.     //thumbnail scroller
  163.     $thumbScroller_container.css("marginLeft",$tsMargin+"px"); //add margin
  164.     sliderLeft=$thumbScroller_container.position().left;
  165.     sliderWidth=$outer_container.width();
  166.     $thumbScroller.css("width",sliderWidth);
  167.     var totalContent=0;
  168.     fadeSpeed=200;
  169.    
  170.     var $the_outer_container=document.getElementById("outer_container");
  171.     var $placement=findPos($the_outer_container);
  172.    
  173.     $thumbScroller_content.each(function () {
  174.         var $this=$(this);
  175.         totalContent+=$this.innerWidth();
  176.         $thumbScroller_container.css("width",totalContent);
  177.         $this.children().children().children(".thumb").fadeTo(fadeSpeed, $thumbnailsOpacity);
  178.     });
  179.  
  180.     $thumbScroller.mousemove(function(e){
  181.         if($thumbScroller_container.width()>sliderWidth){
  182.             var mouseCoords=(e.pageX - $placement[1]);
  183.             var mousePercentX=mouseCoords/sliderWidth;
  184.             var destX=-((((totalContent+($tsMargin*2))-(sliderWidth))-sliderWidth)*(mousePercentX));
  185.             var thePosA=mouseCoords-destX;
  186.             var thePosB=destX-mouseCoords;
  187.             if(mouseCoords>destX){
  188.                 $thumbScroller_container.stop().animate({left: -thePosA}, $scrollEasing,$scrollEasingType); //with easing
  189.             } else if(mouseCoords<destX){
  190.                 $thumbScroller_container.stop().animate({left: thePosB}, $scrollEasing,$scrollEasingType); //with easing
  191.             } else {
  192.                 $thumbScroller_container.stop();  
  193.             }
  194.         }
  195.     });
  196.  
  197.     $thumbnails_wrapper.fadeTo(fadeSpeed, $thumbnailsContainerOpacity);
  198.     $thumbnails_wrapper.hover(
  199.         function(){ //mouse over
  200.             var $this=$(this);
  201.             $this.stop().fadeTo("slow", 1);
  202.         },
  203.         function(){ //mouse out
  204.             var $this=$(this);
  205.             $this.stop().fadeTo("slow", $thumbnailsContainerMouseOutOpacity);
  206.         }
  207.     );
  208.  
  209.     $thumbScroller_thumb.hover(
  210.         function(){ //mouse over
  211.             var $this=$(this);
  212.             $this.stop().fadeTo(fadeSpeed, 1);
  213.         },
  214.         function(){ //mouse out
  215.             var $this=$(this);
  216.             $this.stop().fadeTo(fadeSpeed, $thumbnailsOpacity);
  217.         }
  218.     );
  219.  
  220.     //on window resize scale image and reset thumbnail scroller
  221.     $(window).resize(function() {
  222.         FullScreenBackground("#bgimg",$bgimg.data("newImageW"),$bgimg.data("newImageH"));
  223.         $thumbScroller_container.stop().animate({left: sliderLeft}, 400,"easeOutCirc");
  224.         var newWidth=$outer_container.width();
  225.         $thumbScroller.css("width",newWidth);
  226.         sliderWidth=newWidth;
  227.         $placement=findPos($the_outer_container);
  228.     });
  229.  
  230.     //load 1st image
  231.     var the1stImg = new Image();
  232.     the1stImg.onload = CreateDelegate(the1stImg, theNewImg_onload);
  233.     the1stImg.src = $bgimg.attr("src");
  234.     $outer_container.data("nextImage",$(".content").first().next().find("a").attr("href"));
  235.     $outer_container.data("prevImage",$(".content").last().find("a").attr("href"));
  236. });
  237.  
  238. function BackgroundLoad($this,imageWidth,imageHeight,imgSrc){
  239.     $this.fadeOut("fast",function(){
  240.         $this.attr("src", "").attr("src", imgSrc); //change image source
  241.         FullScreenBackground($this,imageWidth,imageHeight); //scale background image
  242.         $preloader.fadeOut("fast",function(){$this.fadeIn("slow");});
  243.         var imageTitle=$img_title.data("imageTitle");
  244.         if(imageTitle){
  245.             $this.attr("alt", imageTitle).attr("title", imageTitle);
  246.             $img_title.fadeOut("fast",function(){
  247.                 $img_title.html(imageTitle).fadeIn();
  248.             });
  249.         } else {
  250.             $img_title.fadeOut("fast",function(){
  251.                 $img_title.html($this.attr("title")).fadeIn();
  252.             });
  253.         }
  254.     });
  255. }
  256.  
  257. //next/prev images keyboard arrows
  258. if($keyboardNavigation=="on"){
  259. $(document).keydown(function(ev) {
  260.     if(ev.keyCode == 39) { //right arrow
  261.         SwitchImage($outer_container.data("nextImage"));
  262.         var $this=$("#outer_container a[href='"+$outer_container.data("nextImage")+"']");
  263.         GetNextPrevImages($this);
  264.         GetImageTitle($this);
  265.         return false; // don't execute the default action (scrolling or whatever)
  266.     } else if(ev.keyCode == 37) { //left arrow
  267.         SwitchImage($outer_container.data("prevImage"));
  268.         var $this=$("#outer_container a[href='"+$outer_container.data("prevImage")+"']");
  269.         GetNextPrevImages($this);
  270.         GetImageTitle($this);
  271.         return false; // don't execute the default action (scrolling or whatever)
  272.     }
  273. });
  274. }
  275.  
  276. function ShowHideNextPrev(state){
  277.     if(state=="hide"){
  278.         $nextImageBtn.fadeOut();
  279.         $prevImageBtn.fadeOut();
  280.     } else {
  281.         $nextImageBtn.fadeIn();
  282.         $prevImageBtn.fadeIn();
  283.     }
  284. }
  285.  
  286. //function to find element Position
  287.     function findPos(obj) {
  288.         var curleft = curtop = 0;
  289.         if (obj.offsetParent) {
  290.             curleft = obj.offsetLeft
  291.             curtop = obj.offsetTop
  292.             while (obj = obj.offsetParent) {
  293.                 curleft += obj.offsetLeft
  294.                 curtop += obj.offsetTop
  295.             }
  296.         }
  297.         return [curtop, curleft];
  298.     }
  299. </script>
  300. </body>
  301. <style id='page-skin-1' type='text/css'>
  302.  
  303. #ads_link {
  304. background:red;
  305. position:absolute;
  306. right: 5px;
  307. top: -260px;
  308. z-index:99;
  309. }
  310. #ads_link a{
  311. color:white !important;
  312. }
  313. .ads_box{
  314. position:relative;margin:0 auto;width:300px;
  315. }
  316. body,td,th {
  317. font-family: Verdana, Geneva, sans-serif;
  318. font-size: 12px;
  319. }
  320. a:link {
  321. text-decoration: none;
  322. }
  323. a:visited {
  324. text-decoration: none;
  325. }
  326. a:hover {
  327. text-decoration: none;
  328. }
  329. a:active {
  330. text-decoration: none;
  331. }
  332. .ababab {
  333. color: #666;
  334. }
  335. body {
  336. background-color: #000000;
  337. margin-left: 0px;
  338. margin-top: -40px;
  339. margin-right: 50px;
  340. margin-bottom: 0px;
  341. }
  342. .ads-ar {
  343. position:absolute;
  344. left:-2px;
  345. top:0px;
  346. z-index:9999;
  347. }
  348. body {
  349. margin:0;
  350. font:$bodyfont;
  351. background:$bgcolor;
  352. color:$textcolor;
  353. }
  354. .feed-links {
  355. clear: both;
  356. line-height: 2.5em;
  357. }
  358. #blog-pager-newer-link {
  359. float: $startSide;
  360. }
  361. #blog-pager-older-link {
  362. float: $endSide;
  363. }
  364. #blog-pager {
  365. text-align: center;
  366. }
  367. .clear {
  368. clear: both;
  369. }
  370. .profile-img {
  371. float: $startSide;
  372. margin-top: 0;
  373. margin-$endSide: 5px;
  374. margin-bottom: 5px;
  375. margin-$startSide: 0;
  376. }
  377. body#layout #outer-wrapper {
  378. margin-top: 0px;
  379. margin-$endSide: 50px;
  380. margin-bottom: 0;
  381. margin-$startSide: 50px;
  382. }
  383. </style>
  384. </html>
Advertisement
Add Comment
Please, Sign In to add comment