Ver Mensaje Individual
  #1 (permalink)  
Antiguo 02/01/2008, 13:51
Avatar de JOCKERYN
JOCKERYN
 
Fecha de Ingreso: diciembre-2006
Ubicación: guatemala
Mensajes: 113
Antigüedad: 18 años
Puntos: 1
Mensaje tomar variables php desde un js

que tal? necesito saber como se pueden tomar variables de php en un archivo JS. tengo este codigo
Código:
var itemStylesNames=["Top Item",];
var menuStylesNames=["Top Menu",];
// -- End of Deluxe Tuner Style Names

//--- Common
var isHorizontal=0;
var smColumns=1;
var smOrientation=0;
var smViewType=0;
var dmRTL=0;
var pressedItem=-2;
var itemCursor="default";
var itemTarget="_self";
var statusString="link";
var blankImage="deluxe-menu.files/blank.gif";
var pathPrefix_img="";
var pathPrefix_link="";

//--- Dimensions
var menuWidth="";
var menuHeight="21px";
var smWidth="";
var smHeight="";

//--- Positioning
var absolutePos=0;
var posX="10px";
var posY="10px";
var topDX=0;
var topDY=1;
var DX=-5;
var DY=0;

//--- Font
var fontStyle="normal 11px Trebuchet MS, Tahoma";
var fontColor=["#000000","#000000"];
var fontDecoration=["none","none"];
var fontColorDisabled="#AAAAAA";

//--- Appearance
var menuBackColor="#FFFFFF";
var menuBackImage="";
var menuBackRepeat="repeat";
var menuBorderColor="#B9B9B9";
var menuBorderWidth=1;
var menuBorderStyle="solid";

//--- Item Appearance
var itemBackColor=["#FFFFFF","#A7D7FE"];
var itemBackImage=["",""];
var itemBorderWidth=0;
var itemBorderColor=["#FCEEB0","#4C99AB"];
var itemBorderStyle=["solid","solid"];
var itemSpacing=1;
var itemPadding="2px 5px 2px 10px";
var itemAlignTop="left";
var itemAlign="left";
var subMenuAlign="right";

//--- Icons
var iconTopWidth=16;
var iconTopHeight=16;
var iconWidth=16;
var iconHeight=16;
var arrowWidth=7;
var arrowHeight=7;
var arrowImageMain=["deluxe-menu.files/arrv_white.gif",""];
var arrowImageSub=["deluxe-menu.files/arr_black.gif","deluxe-menu.files/arr_white.gif"];

//--- Separators
var separatorImage="";
var separatorWidth="100%";
var separatorHeight="3px";
var separatorAlignment="left";
var separatorVImage="";
var separatorVWidth="3px";
var separatorVHeight="100%";
var separatorPadding="0px";

//--- Floatable Menu
var floatable=0;
var floatIterations=6;
var floatableX=1;
var floatableY=1;

//--- Movable Menu
var movable=0;
var moveWidth=12;
var moveHeight=20;
var moveColor="#DECA9A";
var moveImage="";
var moveCursor="move";
var smMovable=0;
var closeBtnW=15;
var closeBtnH=15;
var closeBtn="";

//--- Transitional Effects & Filters
var transparency="85";
var transition=38;
var transOptions="";
var transDuration=350;
var transDuration2=200;
var shadowLen=3;
var shadowColor="#B1B1B1";
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 smShowPause=200;
var smHidePause=1000;
var smSmartScroll=1;
var topSmartScroll=0;
var smHideOnClick=1;
var dm_writeAll=1;


var dmAJAX=0;
var dmAJAXCount=0;

var dynamic=0;

//--- Keystrokes Support
var keystrokes=0;
var dm_focus=1;
var dm_actKey=113;

var itemStyles = [
    ["itemWidth=92px","fontStyle=normal 11px Tahoma","fontColor=#000000,#000000","itemBackImage=deluxe-menu.files/btn_white.gif,deluxe-menu.files/btn_white_blue.gif"],
];
var menuStyles = [
    ["menuBackColor=transparent","menuBorderWidth=0","itemSpacing=1","itemPadding=0px 5px 0px 5px"],
];

 var menuItems = [
                 
                
    ["Home","testlink.html", "", "", "", "", "0", "0", "", ],
    ["Product Info","", "", "", "", "", "0", "", "", ],
        ["|Features","testlink.html", "", "", "", "", "", "", "", ],
        ["|Installation","", "", "", "", "", "", "", "", ],
            ["||Description of Files","testlink.html", "", "", "", "", "", "", "", ],
            ["||How To Setup","testlink.html", "", "", "", "", "", "", "", ],
        ["|Parameters Info","testlink.html", "", "", "", "", "", "", "", ],
        ["|Dynamic Functions","testlink.html", "", "", "", "", "", "", "", ],
        ["|Supported Browsers","", "", "", "", "", "", "", "", ],
            ["||Windows OS","", "", "", "", "", "", "", "", ],
    ["Samples","", "", "", "", "", "0", "", "", ],
        ["|Sample 1","testlink.html", "", "", "", "", "", "", "", ],
        ["|Sample 2 is Disabled","testlink.html", "", "", "", "_", "", "", "", ],
    ["Purchase","", "", "", "", "_blank", "0", "", "", ],
    ["Contact Us","testlink.htm", "", "", "", "", "0", "", "", ],
];

dm_init();
pero en el area de las opciones del menu que esta marcada en rojo, quisiera poner opciones extraidas dese una base de datos en lugar de las que ya estan. es por eso que quiero saber como se mescla php con esto? alguien podria ayudarme? gracias de antemano Dios los bendiga.
__________________
El poder del saber esta en el poder preguntar.
yo

Última edición por JOCKERYN; 02/01/2008 a las 13:57