shima0912
شروع فعاليت
پست: 6
عضو شده در: 27 تیر 1390
امتياز: 58
|
عنوان: كد جاوااسكريپت floating menu |
|
|
این کد رو جایی از صفحه که قصد دارید منو داشته باشید قرار بدید و ببینید چه منوهای جالبی نمایش داده خواهد شد
کد: |
//--- Common
var isHorizontal=1;
var smColumns=1;
var smOrientation=0;
var smViewType=0;
var dmRTL=0;
var pressedItem=-2;
var itemCursor="default";
var itemTarget="_blank";
var statusString="link";
var blankImage="data-samples/images/blank.gif";
//--- Dimensions
var menuWidth="350px";
var menuHeight="";
var smWidth="";
var smHeight="";
//--- Positioning
var absolutePos=1;
var posX="50%";
var posY="160";
var topDX=-1;
var topDY=0;
var DX=-5;
var DY=0;
//--- Font
var fontStyle="normal 11px Tahoma";
var fontColor=["#FFFFFF","#FA1212"];
var fontDecoration=["none","none"];
var fontColorDisabled="#AAAAAA";
//--- Appearance
var menuBackColor="#FE0A0A";
var menuBackImage="";
var menuBackRepeat="repeat";
var menuBorderColor="";
var menuBorderWidth=0;
var menuBorderStyle="solid";
//--- Item Appearance
var itemBackColor=["#FE0A0A","#FFFFFF"];
var itemBackImage=["",""];
var itemBorderWidth=1;
var itemBorderColor=["#E4E1DE","#FFFFFF"];
var itemBorderStyle=["solid","solid"];
var itemSpacing=1;
var itemPadding="4";
var itemAlignTop="left";
var itemAlign="left";
var subMenuAlign="";
//--- Icons
var iconTopWidth=24;
var iconTopHeight=24;
var iconWidth=30;
var iconHeight=15;
var arrowWidth=11;
var arrowHeight=11;
var arrowImageMain=["arrow_main3.gif","arrow_main3.gif"];
var arrowImageSub=["arrow_sub5.gif","arrow_sub5.gif"];
//--- Separators
var separatorImage="";
var separatorWidth="100%";
var separatorHeight="3";
var separatorAlignment="left";
var separatorVImage="";
var separatorVWidth="3";
var separatorVHeight="100%";
//--- Floatable Menu
var floatable=1;
var floatIterations=6;
var floatableX=0;
var floatableY=1;
//--- Movable Menu
var movable=0;
var moveWidth=12;
var moveHeight=20;
var moveColor="#AA0000";
var moveImage="";
var moveCursor="move";
var smMovable=0;
var closeBtnW=13;
var closeBtnH=16;
var closeBtn="";
//--- Transitional Effects & Filters
var transparency="100";
var transition=3;
var transOptions="";
var transDuration=500;
var transDuration2=200;
var shadowLen=0;
var shadowColor="#B0B0B0";
var shadowTop=0;
//--- CSS Support (CSS-based Menu)
var cssStyle=0;
var cssSubmenu="";
var cssItem=["",""];
var cssItemText=["",""];
//--- Advanced
var dmObjectsCheck=0;
var saveNavigationPath=1;
var showByClick=0;
var noWrap=1;
var pathPrefix_img="data-samples/images/";
var pathPrefix_link="data-samples/";
var smShowPause=200;
var smHidePause=1000;
var smSmartScroll=1;
var topSmartScroll=0;
var smHideOnClick=1;
var dm_writeAll=0;
//--- AJAX-like Technology
var dmAJAX=0;
var dmAJAXCount=0;
//--- Dynamic Menu
var dynamic=0;
//--- Keystrokes Support
var keystrokes=1;
var dm_focus=1;
var dm_actKey=113;
var menuItems = [
["Home","testlink.htm"],
["Product Info",""],
["|Features","testlink.htm"],
["|Installation",""],
["||Description of Files","testlink.htm"],
["||How To Setup","testlink.htm"],
["|Parameters Info","testlink.htm"],
["|Dynamic Functions","testlink.htm"],
["|Supported Browsers",""],
["||Windows OS",""],
["|||Internet Explorer",""],
["|||Firefox",""],
["|||Mozilla",""],
["|||Opera",""],
["|||Netscape Navigator",""],
["||MAC OS",""],
["|||Firefox",""],
["|||Safari",""],
["|||Internet Explorer",""],
["||Unix/Linux OS",""],
["|||Firefox",""],
["|||Konqueror",""],
["Samples",""],
["|Sample 1","testlink.htm"],
["|Sample 2","testlink.htm"],
["|Sample 3","testlink.htm"],
["|Sample 4","testlink.htm"],
["|Sample 5","testlink.htm"],
["|Sample 6","testlink.htm"],
["Purchase","testlink.htm"],
["Contact Us","testlink.htm"],
];
dm_init(); |
|
|