zoukankan      html  css  js  c++  java
  • [orginal] slide bar based on web , from ABC

    hi , today we go with slider,we try to explain the greneral three aspects mean 'css, js and HTML'

    slider consist of two main parts which are the backbone and  the slide part,

    tow parts  can be separated in to tow images ,

    here is the css code :

    Code

    from js point we jsut consider the returned value , in other hand the poisiton of the slide part can be controled by the object left  property if the slide bar  is horizintally otherwise the we consider the top property for the object that is becuase the slide bar will be vertically layouted, the tooltiptext for the  slide that is to show where it slided now.

    here the code for slide object:

    Code

    now we conside  how to  call these to headers(js & css)  to create full functionall silde bar 

    include the headers in your html file by

    <head>
    <link rel="stylesheet" type="text/css" href="Slider.css"/>
    <script language="javascript" type="text/javascript" src="Slider.js"></script>
    </head>

    now add the object where will slide be located

     <div id="slide2"></div>

    now go with js object for slider

      var s2=new Slider('slide2',50,10,200,300);
          s2.setType(
    'H');

    here is the slide object , In IE.

  • 相关阅读:
    C# 字段 属性 方法 三霸主齐上阵
    C# 项目之总结,浓缩才是精华
    C# 语法 重中之重
    岁月流逝,C#成为我们IT精英永恒不变的经典
    pv:快餐厅4类职员正确并发运行的程序——用pv实现有向图的前驱关系哦!
    pv错题:用pv操作实现旅客,汽车之间的同步关系——北航2018考研计算机!!!!!!!!我还很不熟练,奋斗吧少年!!!!!!
    windows 的 DMA
    pv打卡:生产者消费者问题扩展——>南航2002pv习题哦
    冷门的OS知识:中断——这个我多大熟练qwq!
    Unix混合索引结构_文件系统_文件的组织_文件的物理结构_多级索引文件——>相关的小计算题!!!!!!重点重点重点!!!!!!
  • 原文地址:https://www.cnblogs.com/ammar/p/1592965.html
Copyright © 2011-2022 走看看