🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Okay, gotta make a site update

Published August 16, 2007
Advertisement
I gotta fix thecodezone.com. Specifically the menus at the top.

First, a little history. My little top-menus used to be handled by a little Flash-applet. They were a blatant ripoff of the old Macromedia-style menus. If you wanna see what that looked like, check out Menu style #4 here.

It worked just fine, but it was limited to the number of menus that you could put on a single horizontal line. And I wanted my site to be as "flat" as possible, allowing you to the entire site from the top menu. I don't wanna make you drill down through a couple of layers of nested pages if you wanna play Confusebox and then read the blog.

So I went with a DHTML (read &#106avascript) version of the menus that you see on <A HREF="http://www.thecodezone.com">the Code Zone site</A> today.<br><br>And, unfortunately, that was just one bigass can of worms. First off, it turns out that Flash content renders in a window above the HTML content, which means that the &#106avascript menus would pull down behind the games (which is why the gamedev pull-down menus pull down behind those purple "play my games" buttons on the gamedev-hosted edition of my blog). The standard fix for that was to set your embed parameters to "opaque" and/or "transparent", which instructs the browser to render the content directly on the HTML window and not in its own window.<br><br>And that, while it looks good, releases all of the browser incompatibility demons, especially regarding input. Firefox absorbs all key-up events, so any games I wrote that use those stopped working. IE doesn't absorb the events but instead passes 'em to BOTH the applet and the browser, so if you push the down arrow to move the bulldozer down, the bulldozer moves down but also the browser scrolls itself. And the new Safari beta absorbs all mouse-up events, thus making anything that uses drag-n-drop (like ChessCards or BaffleBees or Countdown Dice) unplayable.<br><br>And now I've found that it also absorbs all mouse-wheel events, which hampers gameplay of my new game.<br><br>So here's my newest HTML Commandment. . .<br><br><blockquote>Thou Shalt Not use "transparent" or "opaque" for any Flash content that is interactive.</blockquote><br><br>I ended up doing a couple of kludgy things to work around that, like putting a bigass noninteractive banner above the Bulldozer and Duck Tiles games so the menu wouldn't pull over 'em, but the whole situation's now just become more trouble than it's worth.<br><br>So I'm gonna go back to rectangular Flash-based menubars on my site and kill off the &#106avascript ones. But now I need to figure out how to maximize the space up there. I don't wanna make the top bar any larger and shove the content down.<br><br>I do like the look, so I'll probably go with two rows of items under the bar. That should hopefully hit the balance between being able to get to the bulk of the site from one spot, not taking up too much vertical space, and NOT SCREWING UP ALL MY GAMES!<br><br><br><br><br>As for your homework, if you see any site menus that are compact and you particularly like, comment with the URL.<br><br><br><br><br><br>Oh, and <A HREF="<div class="ipsEmbeddedVideo"><div><iframe allowfullscreen="true" frameborder="0" height="344" width="459" src="https://www.youtube.com/embed/D76QM6sm_MY?feature=oembed"></iframe></div></div>">do overweight middle-aged men playing the Wii look like goobers</A> or is it just a cultural artifact that some things make you look like a goob?<div> </div>
Previous Entry I'm still here
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement