Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Portfolio site Re: Portfolio site

#46948
lucadp
Member
Quote:
Do you know of a quick way I can test to see if JavaScript is disabled, and if so, to set the height of the submenu appropriately?

Just set the inline image height to 36px. Then use the classic "document.getElementsById" to set the height of the portfolio submenu to 0px. In this way, if JavaScript is disabled the height will be 36px, since it’s not loaded the function that sets it to 0px.
However in this way it’s going to be a strange menu, since the green bar is displayed even in the homepage and it’s not graphically connected to the portfolio button. Even now, if you click on portfolio the submenù is displayed, but the content remains the same of the home page. The spry effect is really cool, but IMHO it should appear in a separate main portfolio page, not above the content of the home page.

Sorry for my English, I’m Italian!
Take a look at my work too! http://www.buontalenti.it/prova