SitePoint Sponsor

User Tag List

Results 1 to 16 of 16
  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2002
    Location
    BOSTON
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    javascript styling

    hey forumers!
    cheers on this friday afternoon!

    i am at the end of my web application, and now that my functionality works, i have decided to touch things up some. This effort has taken me to an end where i must start the task of styling some context menus i have that are generated from javascript OO programming. Each onContextMenu click, on any given node, or the document for that matter, shows an object that is shown by overwriting the default context display,..
    the object (contextMenu) has several members such as, contextMenu.item, nodeType, and so on. Each item is an array of the possible context menu commmands. And the whole thing works great, but i have no experience making these items and the contextMenu look good, so all of my menus display, but have big horrible font and what not. I was hoping somebody could start me in the right direction for research or possibly give me an example of a way to make the item objects have a certain font, or display with a specific border width.
    That kind of thing.
    Any input is appreciated.
    Thanks a bunch.
    tim
    PEACE

  2. #2
    What? Maelstrom's Avatar
    Join Date
    Oct 2001
    Location
    Whistler BC originally from Guelph Ontario
    Posts
    2,175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am going to ask that this get moved to the right forum. Since this is a design question I will get it moved to where the designers hang out. You will get much better answers there than from a bunch of codes
    Maelstrom Personal - Apparition Visions
    Development - PhP || Mysql || Zend || Devshed
    Unix - FreeBSD || FreeBsdForums || Man Pages
    They made me a sitepoint Mentor - Feel free to PM me or Email me and I will see if I can help.

  3. #3
    We like music. weirdbeardmt's Avatar
    Join Date
    May 2001
    Location
    Channel Islands Girth: Footlong
    Posts
    5,882
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well you have just confused the hell out of me Maely -- which forum do you want this in!? Javascript or MM&GD?

    Personally i don't know... probs MM&GD...up to PCMOVER I guess...
    I swear to drunk I'm not God.
    Matt's debating is not a crime
    Hint: Don't buy a stupid dwarf Clicky

  4. #4
    What? Maelstrom's Avatar
    Join Date
    Oct 2001
    Location
    Whistler BC originally from Guelph Ontario
    Posts
    2,175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Its a design question. ...he is asking about fonts and borders etc......sorry bout that...drinking coffee right now.
    Maelstrom Personal - Apparition Visions
    Development - PhP || Mysql || Zend || Devshed
    Unix - FreeBSD || FreeBsdForums || Man Pages
    They made me a sitepoint Mentor - Feel free to PM me or Email me and I will see if I can help.

  5. #5
    SitePoint Enthusiast
    Join Date
    Feb 2002
    Location
    BOSTON
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeah,
    i guess it is kind of a design question
    i was up in the air because i didn't know how it was going to be done

    i figured it out tho,
    i just set the styles on the div attribute and since there is only one other element that has the div tag, i just set the styles there locally,
    i don't think it is exactly what i want, but hey:
    it works!
    any better ideas would be greatly appreciated!
    tim
    PEACE

  6. #6
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    just use style, this is a css question more than anything

    It would help if you gave some code, or the attributes which will be modified as no one knows whats being altered.
    Last edited by Andrew-J2000; May 3, 2002 at 18:08.

  7. #7
    What? Maelstrom's Avatar
    Join Date
    Oct 2001
    Location
    Whistler BC originally from Guelph Ontario
    Posts
    2,175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by Andrew-J2000
    just use style, this is a css question more than anything

    It would help if you gave some code, or the attributes which will be modified as no one knows whats being altered.
    Yeah I thought he was using graphics for some of the fonts...I didn't think he was talking about css within the javascript.

    Sorry Weird I jumped the gun
    Maelstrom Personal - Apparition Visions
    Development - PhP || Mysql || Zend || Devshed
    Unix - FreeBSD || FreeBsdForums || Man Pages
    They made me a sitepoint Mentor - Feel free to PM me or Email me and I will see if I can help.

  8. #8
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Heres an example of a context menu

    http://msdn.microsoft.com/workshop/s...ontextmenu.htm

    imo, personalised context menu's don't look very professional

  9. #9
    SitePoint Enthusiast
    Join Date
    Feb 2002
    Location
    BOSTON
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeah, sweet
    that is basicly what i was looking for, a direct way to edit the context menu style attributes
    thanks
    right on with the tip as well,
    my company tends to use this one microsoftish font for most web applications, and since it is going to be in the context of web application text editor i thought i should include it
    i definitely have little experience in the stage styling web apps
    i have done a lot of development, but none dealing with a window where i had to custom make so much of the editing component functionality
    (matched up to a soap service)
    if this whole deal of verdana over the app is a bad one just let me know, i am all about tips
    thanks a bunch for the link
    PEACE

  10. #10
    What? Maelstrom's Avatar
    Join Date
    Oct 2001
    Location
    Whistler BC originally from Guelph Ontario
    Posts
    2,175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by Andrew-J2000
    Heres an example of a context menu

    http://msdn.microsoft.com/workshop/s...ontextmenu.htm

    imo, personalised context menu's don't look very professional
    You and your IE only event handlers...Sheesh
    Maelstrom Personal - Apparition Visions
    Development - PhP || Mysql || Zend || Devshed
    Unix - FreeBSD || FreeBsdForums || Man Pages
    They made me a sitepoint Mentor - Feel free to PM me or Email me and I will see if I can help.

  11. #11
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by Maelstrom


    You and your IE only event handlers...Sheesh
    hehe sry, i just can't stand cross browsability, and i use ie 6, so i design for ie 6:P.

    Originally posted by PCMOVER


    hey forumers!
    cheers on this friday afternoon!

    i am at the end of my web application, and now that my functionality works, i have decided to touch things up some. This effort has taken me to an end where i must start the task of styling some context menus i have that are generated from javascript OO programming. Each onContextMenu click, on any given node, or the document for that matter, shows an object that is shown by overwriting the default context display,..
    the object (contextMenu) has several members such as, contextMenu.item, nodeType, and so on. Each item is an array of the possible context menu commmands. And the whole thing works great, but i have no experience making these items and the contextMenu look good, so all of my menus display, but have big horrible font and what not. I was hoping somebody could start me in the right direction for research or possibly give me an example of a way to make the item objects have a certain font, or display with a specific border width.
    That kind of thing.
    Any input is appreciated.
    Thanks a bunch.
    tim
    he did ask for it see

  12. #12
    What? Maelstrom's Avatar
    Join Date
    Oct 2001
    Location
    Whistler BC originally from Guelph Ontario
    Posts
    2,175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by Andrew-J2000


    he did ask for it see
    Yeah I didn't read that...its funny. I program for an intranet which uses IE eclusively and I still refuse to use ie specific tags. I don't want to put any fuel on the browser wars. I love the fact that everything is going standardized
    Maelstrom Personal - Apparition Visions
    Development - PhP || Mysql || Zend || Devshed
    Unix - FreeBSD || FreeBsdForums || Man Pages
    They made me a sitepoint Mentor - Feel free to PM me or Email me and I will see if I can help.

  13. #13
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I luv the way everything runs "eclusively" for ie.

    Althought I have started learning xml/xsl already. So what event handlers do you use for them? As I thought i read that only ie6 is compliant to xsl fully, and i never saw anything about other browsers.

  14. #14
    What? Maelstrom's Avatar
    Join Date
    Oct 2001
    Location
    Whistler BC originally from Guelph Ontario
    Posts
    2,175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't do xml,xsl. I am in the middle of too many other large projects to jump into a new 'language'. I will at some point learn xml but for now I am working through Unix (os/programming language all in its own) some contracts I am working on and beginning c++ ...Xml might come in a year or so...
    Maelstrom Personal - Apparition Visions
    Development - PhP || Mysql || Zend || Devshed
    Unix - FreeBSD || FreeBsdForums || Man Pages
    They made me a sitepoint Mentor - Feel free to PM me or Email me and I will see if I can help.

  15. #15
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i dont know why but all my learning progress gets bundled together. It seems as tho once another programming language ties in and i see benifits i can't resist:P

  16. #16
    What? Maelstrom's Avatar
    Join Date
    Oct 2001
    Location
    Whistler BC originally from Guelph Ontario
    Posts
    2,175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have never been able to do that. I find learn one thing at a time. They integrate well eventually...the only thing I was able to learn in combination was sql. It ties perfectly with other languages

    Xml just doesn't tie in to any software in an 'important' enough way for me to try learning it right now.
    Maelstrom Personal - Apparition Visions
    Development - PhP || Mysql || Zend || Devshed
    Unix - FreeBSD || FreeBsdForums || Man Pages
    They made me a sitepoint Mentor - Feel free to PM me or Email me and I will see if I can help.


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
  •