一款波浪式滑动菜单特效.docVIP

  • 2
  • 0
  • 约7.01千字
  • 约 6页
  • 2017-02-12 发布于北京
  • 举报
一款个性的波浪式滑动菜单特效!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN /TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns=/1999/xhtml head meta http-equiv=Content-Type content=text/html; charset=gb2312 / title一款个性的波浪式滑动菜单特效 script type=text/javascript var $$ = function (id) { return string == typeof id ? document.getElementById(id) : id; }; function Event(e){ var oEvent = document.all ? window.event : e; if (document.all) { if(oEvent.type == mouseout) { oEvent.relatedTarget = oEvent.toElement; }else if(oEvent.type == mouseover) { oEvent.relatedTarget = oEvent.fromElement; } } return oEvent; }郑州整形医院 郑州展览公司 function addEventHandler(oTarget, sEventType, fnHandler) { if (oTarget.addEventListener) { oTarget.addEventListener(sEventType, fnHandler, false); } else if (oTarget.attachEvent) { oTarget.attachEvent(on + sEventType, fnHandler); } else { oTarget[on + sEventType] = fnHandler; } }; var Class = { create: function() { return function() { this.initialize.apply(this, arguments); } } } Object.extend = function(destination, source) { for (var property in source) { destination[property] = source[property]; } return destination; } var GlideView = Class.create(); GlideVtotype = { //容器对象 容器宽度 展示标签 展示宽度 initialize: function(obj, iWidth, sTag, iMaxWidth, options) { var oContainer = $$(obj), oThis=this, len = 0; this.SetOptions(options); this.Step = Math.abs(this.options.Step); this.Time = Math.abs(this.options.Time); this.Showtext = false;//是否显示说明文本 this._list = oContainer.getElementsByTagName(sTag); len = this._list.length; this._count = len; this._width = parseInt(iWidth / len); this._width_max = parseInt(iMaxWidth); this._width_min = parseInt((iWidth - this._width_max) / (len - 1)); this._timer = null; //有说明文本 if(this.options.TextTag this.options.TextHeight 0){ this.Showtext = true; this._text = oContainer.getElementsByTagName(this.options.TextTag); this._height_tex

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档