Results 1 to 7 of 7

Thread: making right to left

  1. #1
    Join Date
    Jun 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default making right to left

    1) Script Title:
    SuckerTree Vertical Menu
    SuckerTree Horizontal Menu

    2) Script URL (on DD):
    http://www.dynamicdrive.com/style/cs...enu-vertical/#
    http://www.dynamicdrive.com/style/cs...u-horizontal/#



    3) Describe problem:

    How can I make it right to left for asian languages ?

  2. #2
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    How can I make it right to left for asian languages ?
    I'm sorry, but what do you mean by "right to left"? The whole menu, the text-alignment, the characters. . . ?
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  3. #3
    Join Date
    Jun 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I only want move the Vertical menu to right of page and so all sub menues should open from left side of menu

    Horizontal menu is not important now

  4. #4
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    Took me a while to figure out where they are lining it up at, but here it is:
    head section (leave your CSS and replace Javascript with this:
    Code:
    <script type="text/javascript">
    
    //SuckerTree Vertical Menu 1.1 (Nov 8th, 06)
    //By Dynamic Drive: http://www.dynamicdrive.com/style/
    
    var menuids=["suckertree1"] //Enter id(s) of SuckerTree UL menus, separated by commas
    
    function buildsubmenus(){
    for (var i=0; i<menuids.length; i++){
      var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
        for (var t=0; t<ultags.length; t++){
        
    
    ultags[t].parentNode.getElementsByTagName("a")[0].className="subfolderstyle"
    		if (ultags[t].parentNode.parentNode.id==menuids[i]) //if this 
    
    is a first level submenu
    			
    
    ultags[t].style.left=ultags[t].parentNode.offsetWidth-330+"px" //dynamically 
    
    position first level submenus to be width of main menu item
    		else //else if this is a sub level submenu (ul)
    		  
    
    ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth-340
    
    +"px" //position menu to the right of menu item that activated it
        ultags[t].parentNode.onmouseover=function(){
        this.getElementsByTagName("ul")[0].style.display="block"
        }
        ultags[t].parentNode.onmouseout=function(){
        this.getElementsByTagName("ul")[0].style.display="none"
        }
        }
    		for (var t=ultags.length-1; t>-1; t--){ //loop through all 
    
    sub menus again, and use "display:none" to hide menus (to prevent possible 
    
    page scrollbars
    		ultags[t].style.visibility="visible"
    		ultags[t].style.display="none"
    		}
      }
    }
    
    if (window.addEventListener)
    window.addEventListener("load", buildsubmenus, false)
    else if (window.attachEvent)
    window.attachEvent("onload", buildsubmenus)
    </script>
    body is the same.

    Hope this helps.
    Last edited by Jas; 06-29-2007 at 07:29 PM. Reason: Edit code
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  5. #5
    Join Date
    Jun 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thank you very much

    now I need another help

    I want add my information from my database I worte a code by PHP but have problem can you help me ?

  6. #6
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    Post your code and some more detail and I'll see what I can do
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  7. #7
    Join Date
    Jun 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Code:
    
    
    So it can not show submenues because have some problem

    What is the problem in creating dynamic li and ul in my code ?
    Last edited by bakhanbeigi; 07-08-2007 at 09:16 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •