Jump to content

Put image in this code


Fire Dragon

Recommended Posts

I find phong game code what can use freely in websites,and I wanted little change it's graphics,before I put it into my website.However,I really don't know anything about CSS(I think start it's learning after JS)so I need litle help modifying this code.Well,in game,ball is black square,and I want replace it to gif image.How it happens?Here is code:

#ball {	position: absolute;	top: 160px;	left: 210px;	width: 7px;	height: 7px;	clip: rect(0px 7px 7px 0px);	background-color: #555;	z-index: 2;	display: none;}

I made quick look to w3schools' tutorial,but I didn't find anything.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...