Basic & Simple HTML-CSS Menu show/hide SubMenu

This is my tutorial in making basic & simple HTML/CSS Menu that shows & hide SubMenus on Mouse Over. There are many other tutorials out there that maybe be better but quite complicated and heavy for beginners.

here it goes:

Create a style tag for your menu, dont forget the html/head/body tags – remember to put your stylesheet inside head tag.

<style>
.menu{}

</style>

Leave it without any parameters/option for now (later do as u wanted ๐Ÿ™‚

next, addย  the menu list

.menu li{}

if you want horizontal menu use float:left on list tags <li> else the default appearance will be vertical menu. then add your other style of your liking such as width, height, background-color/images, etc. (later recommended)

.menu li{ float:left}

next will be your submenu, hide it using display:none (or visibility: hidden for CSS3)

.menu ul{display:none}

Remember your main menu is at <li> tags and it holds your submenus at <ul> tags

<li>menu

<ul>submenu</ul>
<ul>submenu2</ul>

</li>

Now here comes the magic that will reveal the submenu when the mouse is located over the menu (hovering they say)

add the following to your style

.menu li:hover ul{display: block;}

then again, add your other style of your liking such as width, height, background-color/images, etc.

see it live atย  http://artpologabriel.com/wp-content/uploads/2012/06/1.html

test it – submenu will be in – now u see now u don’t – state ๐Ÿ™‚

 

Final code:

 

<html>
<head>

<style>
.menu{
float:left;
}
.menu li{
float:left;
display: block;
width: 200px;
height; 50px;
}
.menu ul{
display: none;
}
.menu li:hover ul{
display: block;
background-color: blue;
}
</style>
</head>
<body>

<div>
<li>home
<ul>home 1</ul>
<ul>home 2</ul>
</li>
<li>about
<ul>bout</ul>
<ul>bout2</ul>
</li>
<li>contact
<ul>contact1</ul>
<ul>contact2</ul>
</li>
</div>
</body>
</html>

 

 

Multi-user application – Demo Game – RC Wars

Here is the update of my earlier post Multi-user application using Unity3d now web based ๐Ÿ™‚

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Updates:

Title: RC Wars (Remote control car wars hehe)

Controls:
WASD = move
Space = shoot
E = reset position (when your player got stuck up-side-down)

Game Objects:
Hummer = Player
Range Rover = Enemies (tons of non stop spawning enemies – will limit on next update)

Map:
Forest / Terrain – tons of trees and land obstacles

Features:
Shoot the enemies with unlimited bullets
Enemy now shots back player

Bugs: (will be fixed on next update)
Players starts on one exact location
Super unlimited enemy

How to play:

> Download and install this webplayer for windowsย ย ย  webplayer for mac
> Load the game click here – its around 1.5MB (yes its only that small for a very nice looking 3d game level design)
> Once loaded, select for either “Master Server”(recommended) or “IP Direct Connection” (option only in case u can’t use master server)
> On Master Server – click “Start Server” then wait for other computers/players within your Local Area Network (LAN) to see a server is running (refresh/retest connection) and join in when they see a new button with an IP address (of the server) – then click “Network” and voila – gameON!!!

> On IP Direct Connection – click “Start Server” – then give your IP address to other players on the LAN. – other players will type-in the servers IP then click connect – and voila – gameON!!!

Next features:
> Player life meter
> Player re-spawn
> Score board
> Chat
> Sound FX

Whats surprising is.. this entire 3d application only took me less than 3 weeks (2-3 hours a day) to work with while at my very busy working scheduleย  of course with a little help from my colleagues ๐Ÿ™‚

Multi-user application using Unity3d

I been doing 3d interactive for almost 7 years now and yes, its been really hard to create one. You have to do 3d modeling, rigging, animation, export to compliant format properly, then the hardest thing of all – the coding to make it interactive or a game, then compile for web or offline based application.

Recently, i explored Unity3d and it gives me more power – rapid development – because in less time iย  finished my application than other software I used before. Well, unity3d is a game engine – and not a 3d modeling app &ย  you still have to know Object Oriented Programming (C++/Javascript/Java/Python/As3 or Boo hehehe).ย  But unity3d has a GUI (like blender3d which is also one of the best software for free) that makes it quite easier than only imagining the 3d scene & objects using a text editors IDE alone.

In just 1-2 weeks i have deployed a simple multi-player 3d game. Yes, its not yet done, but the functionality is almost done. Building a network application really takes heck of time and efforts but with unity3d i can say that “i finally found the one” hehe. Back then it takes months for the same thing/output.

Well, please try my unfinished but working multiplayer 3d game created using unity3d.

Instruction, download and play – see “network.exe” run it –ย  click start server, copy the zipped fileย  to another computer with the same network, then type-in the IP address (replace the 192.168.10.1 with the server’s IP address) – then voila – you will see each other’s player (a box that will move & shoot usingย  WASD & Space keys). By the way there will be lots of gray cube (enemies with programmed Artificial Intelligence & rigidbody/physics) that will chase your player – enemies can be shoot but wont die for now hehehe

try it now – download here!

Free Mobile Applications – Coming Soon!!!

My team artsdigitalmedia.com is now venturing into mobile apps such as multiplayer 3d games for iphone, ipad, android & other mobile devices. The best thing about this venture is, this mobile apps will be FREE for download (as in free beer). Featuring the pilipino cultures / traditional games such as takip-silim, patintero, sungka, luksong-tinik, luksong baka, habulan-pulis, langit-lupa atbp. ๐Ÿ™‚

We only hoping our fellow kabababayan will support our venture by simply downloading the apps and using it regularly. I think that’s not too much to ask, and its LIBRE so there should be nothing to be hesitate about using our mobile apps ๐Ÿ™‚

Please regularly visit this website for the updates! Godbless ๐Ÿ™‚

Do you want to be seen on a 3d game?

Want to be seen on a 3d game? Want to get more publicity? Send your photos & include a resume to contact(a)artpologabriel.com

Your photos must be with the ff attributes;
1. Head front view – exactly at the very front of your face, eye leveled camera view.
2. Head left view – must be at almost 90 degrees from the front.
3. Full body shot – front and left view. (wearing fitted dress, to get the contour of your body for 3d reference)

All photos must be clear with fair lighting like an ID picture, Jpeg/Png file format, atleast 300 DPI resolution.

Note: for those who have long hair, please tie it up, face up to your ears must be seen clearly, then send another set of photo with hair untied.

Sample photos for your references:

 

Make sure on the almost perfect front camera position

Pose this way, but not necessary nude.

We will create a gallery of 3d model character output & surprise you with your 3d poses, outfits & renderings like photos below ๐Ÿ™‚ –

 

Oh not yet done, we will apply bone (armature /rigged / biped ) to the 3d models, then apply motion capture data for animations, then compile the 3d model for interactive use, then export / convert the the format to make the 3d file usable in 3d games –

WHOAHHHH TONS OF WORK FOR A FREE – 3D GAME ๐Ÿ™‚ WELL ENJOY NAMAN PO ANG TEAM DOING GOOD DEEDS AND VENTURES ๐Ÿ™‚

 

 

 

Preview: 3rd person game – 3d character in flash environment

Me and my team (artsdigitalmedia.com) are now into mobile apps/games development (play using Ipad, Iphone, Ios, & Anroid Phones/Tablets). This is our sample of a 3rd person 3d game, basically its on initial development stage (there are lots of things to be fixed and work with, well its a heck but its fun doing crappy things on gamedev)..

You may use keyboard keys: W, E, A, S, D and space to interact (walk/animate). though this may load sometime its actually a 3MB data download time, around 2-3 minutes loading on slow internet connection.

Thanks for visiting my blog.

Augmented Reality

Augmented Reality inside Flash (so called FLAR) – this is the technology behind NINTENDO WII. The tech makes the camera analyze the real world or the things it sees, and produces what is programmed with it. And with this sample we will show 3d objects once the camera see the marker (photo below).

Make sure you have working web camera attached to use this interface. Print the photo (marker) below and show it at the web camera. You will see 3d objects will pop out (laptops) and this 3d objects will follow the coordinates of the photo (marker) ๐Ÿ™‚ COOL.. try swaying the photo marker using ur hands ๐Ÿ™‚

NOTE: 3D OBJECTS MAY TAKE SOMETIME TO LOAD, SO PLEASE WAIT A WHILE ๐Ÿ™‚

Created by Team Artsdigitalmedia.com (me & dexter jay bago)

Personal project: e-car

Been researching… and its about time! For a e-car (podcar)

The design will be based on the photos on the left. I will be designing my very own personal electronic car. Will purchase a 3kW~7kW brushes DC motor which is the best engine that fits for this project. The body will be metal wire frame with fiberglass exterior.

Gasoline price is really getting into my nerve, that’s why its best to have a fuel efficient vehicle nowadays.

I will be posting each development stage of this project, you may want to learn something, so visit my website regularly ๐Ÿ™‚

 

 

CLSU Virtual Tour – Main Gate (daytime edition)

Moving forward… The CLSU webteam with the help of team artsdigitalmedia.com [headed by artpologabriel & dexter jay bago] created the virtual tour for Central Luzon State University, this is just the beginning of their task to completely capture the entire CLSU campus in 3d interactive interface. Upon winning the ESIHAS Best Website last year, the CLSU web team is even more eager to provide further and better web services and interface. The virtual tour interface is hosted at 3dxploration.com server which is designed for 3d interactive features and server load.

Again, we are hoping that everyone from CLSU supports the CLSU website and its interfaces.

This virtual tour technology actually cost Php 200,000.00 ++ (see http://www.aarkid.com/about/pricing/) if will be outsourced to service providers, but due to the skill of CLSU Web Team with the help from Team ARTSDIGITALMEDIA.COM they made it almost FREE of cost.