I'm working on a card game with javascript and CSS but I am a complete newbie of both languages.

I wanna ask whether I can make all card images as buttons and have an "overlapping" effect which looks like this http://www.crazyeights-cardgame.com/

Attached is my source code but the images are not included.

Please give me some advice. Thank you:)

There's no reason why cards should not overlap like that. Each card needs to be relatively or absolutely positioned, then manipulate its left and top properties to control position. To animate card movements, you will find it easier to use jQuery rather than trying to write the animation yourself.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.