Recent Questions Java B Tree Main CodeQ: I was trying to figure something out myself but after a lot of hours I decided I will contact you.
I don’t know why but the align of the text is not moving to the right side (because in Israel we write from right to left)
The sub-menu works great and all the text align to the right but from some reason the title is unmovable.
Please if you know any solution to that problem?
- you can set the following parameter:
var tXPAlign="right"; //align of expand-buttons of submenus titles
- write your top items:
Q: I still do not understand your answer about the simple java menu arrows, which work in preview, but not on the website. The html is correct.
A: You have
in your data js, so the arrows must be here
you arrows is here
You can use
or change paths here
var arrowImageMain=["ss.files/arrow_sub5.gif","ss.files/arrow_sub5.gif"]; --> menu/ss.files/arrow_sub5.gif
Q: I see that you have the demo of the menu working over a frame so that it displays over the lower frame, vertical top to bottom.
However I have played around with your demo and can't seem to replicate the same feature.
Could you please tell me what I have to set to make the easy dropdown menu float over the lower framed window?
A: To initialize the cross frame menu call dm_initFrame() function instead of standard dm_init() function within data.js file:
dm_initFrame(framesetID, mainFrameInd, subFrameInd, orientation);
framesetID - id attribute of the frameset;
mainFrameInd - index of the main frame (where the top-menu is placed), >=0;
subFrameInd - index of the subframe (where the submenus will be shown), >=0;
orientation - frame orientaion: 0 - top-to-bottom, 1 - left-to-right; 2 - bottom-to-top; 3 - right-to-left.
For example, for the following structure:
<frameset id="frmSet" rows="185,*">
<frame id="frame1" src="cross-frame-horizontal-1.htm">
<frame id="frame2" name="testlink.htm" scrolling="no">
the dm_initFrame() function call at the end of data.js file will look like:
dm_initFrame("frmSet", 0, 1, 0);
JS Code for a menu item (Ajax technology):
[' Introduction &<br>Search Terms',
'/TeachingLaw/Courses/LegalRsrchWriting/AmySloan/Room1/','','' ,'' ,'' ,'' ,''
Code as above is used to create a the following menu:
We are using <br> as the menu text is too long but the problem we are facing is the space between two line of web menu text.
Can you please let me know how we can reduce the space?
A: You can write your text in the following way:
["<div style='line-height: 10px'> Introduction &<br>Search Terms</div>",
"/TeachingLaw/Courses/LegalRsrchWriting/AmySloan/Room1/","","","","" ,"" ,""
['<div style="line-height: 10px"> Introduction &<br>Search Terms</div>', '/TeachingLaw/Courses/LegalRsrchWriting/AmySloan/Room1/','','' ,'' ,'' ,'' ,'','/TeachingLaw/DeluxeMenu/AmySloan/Room1.js',],