dovidj
Junior Member
Posts: 3
Registered: 8/29/2006
Member Is Offline
|
| posted on 8/29/2006 at 09:55 AM |
|
|
incorporate style sheet into array format
Hi,
I'm working with Tigra menu. I create all the menus dynamically. I'm defining the background colors dynamically using the <DIV
style="background-color: etc..
I've commented out menu.css file.
The only problem I'm having is getting the mouseover background color to work.
Looking at the documenation it seems I have to create a css entry in the MENU_POS array for outer to define the class name for the mouseover, mouse
out etc. and use menu.css to define the style for the mouse over.
If this is the case then how do I define the array element for css
here is what I'm using:
var MENU_POS = new Array();
MENU_POS['height'] = [18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18];
MENU_POS['width'] = [120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120];
MENU_POS['align']='left';
MENU_POS['block_top'] = [135, 0, -160, -160];
MENU_POS['block_left'] = [0, 120, 120, 120];
MENU_POS['top'] = [20, 20, 20, 20];
MENU_POS['left'] = [0, 0, 0, 0];
MENU_POS['hide_delay'] = [500, 500, 500, 500];
MENU_POS['pixel_path'] = 'pixel.gif';
How do I define MENU_POS['css']
from
'css' : {
outer' : ['m0l1oout', 'm0l1oover'],
'inner' : ['m0l1iout', 'm0l1iover']
}
Thanks in advance
regards
David J.
|
|
|
tigra
Administrator
Posts: 1982
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 8/29/2006 at 11:00 AM |
|
|
you don't need to change/manipulate the format of the configuration files to generate them dynamically. Just copy the contents of the .js files into
<script> section and .css files into <style> section of the main document where you can print them out dynamically with your server side
script just the way you generate other client side text.
|
|
|
|