Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Office XP Cmd Bars in Web Pages...

Office XP Cmd Bars in Web Pages...

Scheduled Pinned Locked Moved The Lounge
comquestioncode-review
8 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nikhil Dabas
    wrote on last edited by
    #1

    Hi all, Some time ago I was very interested in DHTML and played around with the DHTML features in MSIE. I created a little component-based package to add Office XP style command bars (sort of) to a web page. Here's a screenshot. Now the trouble is: I no longer have time to keep up development of this, but I think many people would like to use this stuff. I am willing to give all the sources to somebody who can read them, understand them, improve them, document them and post an article on CodeProject. Anybody interested? My only condition is that you must write an article for CodeProject. "A surprise to be sure, but a welcome one." - Senator Palpatine

    C J N 3 Replies Last reply
    0
    • N Nikhil Dabas

      Hi all, Some time ago I was very interested in DHTML and played around with the DHTML features in MSIE. I created a little component-based package to add Office XP style command bars (sort of) to a web page. Here's a screenshot. Now the trouble is: I no longer have time to keep up development of this, but I think many people would like to use this stuff. I am willing to give all the sources to somebody who can read them, understand them, improve them, document them and post an article on CodeProject. Anybody interested? My only condition is that you must write an article for CodeProject. "A surprise to be sure, but a welcome one." - Senator Palpatine

      C Offline
      C Offline
      Chris Maunder
      wrote on last edited by
      #2

      I am interested! I've just been looking over options for improving layout and navigation and was thinking of doing exactly what you have done. I would *love* to have the code on CodeProject and if noone else has time to write something up (someone, please?) I'll get it sorted out. BTW - have you checked out www.microsoft.com/sql - they have the drop shadow for menus worked out - but you'll laugh when you see how they did it! cheers, Chris Maunder (CodeProject)

      N M 2 Replies Last reply
      0
      • N Nikhil Dabas

        Hi all, Some time ago I was very interested in DHTML and played around with the DHTML features in MSIE. I created a little component-based package to add Office XP style command bars (sort of) to a web page. Here's a screenshot. Now the trouble is: I no longer have time to keep up development of this, but I think many people would like to use this stuff. I am willing to give all the sources to somebody who can read them, understand them, improve them, document them and post an article on CodeProject. Anybody interested? My only condition is that you must write an article for CodeProject. "A surprise to be sure, but a welcome one." - Senator Palpatine

        J Offline
        J Offline
        Jason Gerard
        wrote on last edited by
        #3

        A co-worker and I might be interested in this. I will talk to him tomorrow and let you know. Just depends on our free time. Jason Gerard, Master of Kung Foo

        1 Reply Last reply
        0
        • N Nikhil Dabas

          Hi all, Some time ago I was very interested in DHTML and played around with the DHTML features in MSIE. I created a little component-based package to add Office XP style command bars (sort of) to a web page. Here's a screenshot. Now the trouble is: I no longer have time to keep up development of this, but I think many people would like to use this stuff. I am willing to give all the sources to somebody who can read them, understand them, improve them, document them and post an article on CodeProject. Anybody interested? My only condition is that you must write an article for CodeProject. "A surprise to be sure, but a welcome one." - Senator Palpatine

          N Offline
          N Offline
          Nikhil Dabas
          wrote on last edited by
          #4

          I've put up a zip file with all the sources - download it here. The stuff only works properly with IE 5.5 or better. Great thanks to anyone who would write an article and document the code. "A surprise to be sure, but a welcome one." - Senator Palpatine

          1 Reply Last reply
          0
          • C Chris Maunder

            I am interested! I've just been looking over options for improving layout and navigation and was thinking of doing exactly what you have done. I would *love* to have the code on CodeProject and if noone else has time to write something up (someone, please?) I'll get it sorted out. BTW - have you checked out www.microsoft.com/sql - they have the drop shadow for menus worked out - but you'll laugh when you see how they did it! cheers, Chris Maunder (CodeProject)

            N Offline
            N Offline
            Nikhil Dabas
            wrote on last edited by
            #5

            You can download the sources now - see my post below. I saw what MS did on their site - but I found that far too inelegant and stupid to add to my package. So I added a shadow anyway, but it doesn't look all that nice. The MS technique looks more of a workaround than anything else. "A surprise to be sure, but a welcome one." - Senator Palpatine

            1 Reply Last reply
            0
            • C Chris Maunder

              I am interested! I've just been looking over options for improving layout and navigation and was thinking of doing exactly what you have done. I would *love* to have the code on CodeProject and if noone else has time to write something up (someone, please?) I'll get it sorted out. BTW - have you checked out www.microsoft.com/sql - they have the drop shadow for menus worked out - but you'll laugh when you see how they did it! cheers, Chris Maunder (CodeProject)

              M Offline
              M Offline
              Michael Dunn
              wrote on last edited by
              #6

              they have the drop shadow for menus worked out - but you'll laugh when you see how they did it! How exactly did they do it? --Mike-- http://home.inreach.com/mdunn/ "Make sure that if you are using a blow torch that you don't set anything on fire."   -- Chris Maunder

              N 1 Reply Last reply
              0
              • M Michael Dunn

                they have the drop shadow for menus worked out - but you'll laugh when you see how they did it! How exactly did they do it? --Mike-- http://home.inreach.com/mdunn/ "Make sure that if you are using a blow torch that you don't set anything on fire."   -- Chris Maunder

                N Offline
                N Offline
                Nikhil Dabas
                wrote on last edited by
                #7

                They made four DIVs with increasing opacity and decreasing offset from the 'shadowed' DIV. All the DIVs have the same size, so they look like a shadow. Here's a part of the code they used: (from http://www.microsoft.com/library/flyoutmenu/default.htc) makeRectangularDropShadow(menuToShow, MENU_SHADOW_COLOR, 4) // ... function makeRectangularDropShadow(el, color, size) { var i; for (i=size; i>0; i--) { var rect = document.createElement('div'); var rs = rect.style rs.position = 'absolute'; rs.left = (el.style.posLeft + i) + 'px'; rs.top = (el.style.posTop + i) + 'px'; rs.width = el.offsetWidth + 'px'; rs.height = el.offsetHeight + 'px'; rs.zIndex = el.style.zIndex - i; rs.backgroundColor = color; var opacity = 1 - i / (i + 1); rs.filter = 'alpha(opacity=' + (100 * opacity) + ')'; el.insertAdjacentElement('afterEnd', rect); global.fo_shadows[global.fo_shadows.length] = rect; } } "A surprise to be sure, but a welcome one." - Senator Palpatine

                X 1 Reply Last reply
                0
                • N Nikhil Dabas

                  They made four DIVs with increasing opacity and decreasing offset from the 'shadowed' DIV. All the DIVs have the same size, so they look like a shadow. Here's a part of the code they used: (from http://www.microsoft.com/library/flyoutmenu/default.htc) makeRectangularDropShadow(menuToShow, MENU_SHADOW_COLOR, 4) // ... function makeRectangularDropShadow(el, color, size) { var i; for (i=size; i>0; i--) { var rect = document.createElement('div'); var rs = rect.style rs.position = 'absolute'; rs.left = (el.style.posLeft + i) + 'px'; rs.top = (el.style.posTop + i) + 'px'; rs.width = el.offsetWidth + 'px'; rs.height = el.offsetHeight + 'px'; rs.zIndex = el.style.zIndex - i; rs.backgroundColor = color; var opacity = 1 - i / (i + 1); rs.filter = 'alpha(opacity=' + (100 * opacity) + ')'; el.insertAdjacentElement('afterEnd', rect); global.fo_shadows[global.fo_shadows.length] = rect; } } "A surprise to be sure, but a welcome one." - Senator Palpatine

                  X Offline
                  X Offline
                  Xian
                  wrote on last edited by
                  #8

                  If it works, it works! ---- Xian

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups