Page 1 of 1

help java or html

Posted: 02 Jun 2011, 16:00
by umar
I have two questions for the family:

(1) I need to know how to move a picture in html or java with (up, down,left,right).
(2) Hot make box game in html or java and with a click change the box color.

Any one could help me out here with this please :-?

Or I need a good javascript or html tutorial site or videos :(

Re: help java or html

Posted: 02 Jun 2011, 20:37
by Akasha
I can't help you with java but the good site to find out all there is about HTML/CSS/Java is :
http://w3schools.com/
They have vast knowledge base and tutorials about everything .
Hope it helps :)

Re: help java or html

Posted: 03 Jun 2011, 06:09
by umar
thanks for reply :)

but i already :) check this site help site and good site but i still not find my problem solution anywhere :confused:

Re: help java or html

Posted: 03 Jun 2011, 12:04
by Mahn
Why you shouldn't use w3schools.com > http://w3fools.com/

I believe you're talking about javascript, and not java. Java is to javascript like ham is to hamster - two very different things.

HTML likely will not achieve what you're wishing for. But JS and CSS may help you. Could you be more specific when you say you want to move a photo? Do you want it to move physically about the page as if it were floating? Do you want to be able to drag it around on the page to another fixed position?

I'll be more than willing to help, just need to understand what you envision.

Re: help java or html

Posted: 30 Jun 2011, 04:11
by akshay
Hey if the stuff you looking for is available on any website, check out its html source code.When i like something on a particular website, i just check out the source code, most of the times, its pretty self-explanatory, sometimes you have to dig a little-bit further.

As Mahn said you can not implement image moving-positioning by moving mouse-pointer by using HTML or CSS. Javascript can do that trick but I dont really know how it can do. Few months earlier i found this website http://www.javascriptbank.com. It is perfect website for JS related work(I guess... :angel: )

And java is 100 % capable of image movements using Japplets.(I just know it because JDK comes with some examples and you can modify them with your objectives.)

The "change-the-color-of-box" trick :

CSS has a function as following:

Code: Select all


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">

input.buttonblue{ background: #3F6580;border-right:1px solid #304C60;border-bottom:1px solid #304C60;border-left:1px solid #BACDD9;border-top:1px solid #BACDD9; font-weight:bold; color:#FFFFFF; font-size:1em; height:2em}

</style>
</head>

<body>
<input type="submit" name="Submit"border="0" class="buttonblue" onmouseover="this.style.color='#fbe249';" onmouseout="this.style.color='#FFF';"  value="I change my color"><!--on mouse hover the text changes color-->
</body>
</html>
hope that will help ! :)
just google along with the code and WWW will help you ;)
I will ask my friend about Japplets will be back soon...

Re: help java or html

Posted: 04 Jul 2011, 23:00
by johnyaar
If you fancy working in GUI (design) base, then I would recommend you to use Frontpage's 'layer' facility. That way you can move the required picture anywhere over the page. Just be sure you know that by recommending Frontpage I am not guaranteeing a quality website but just the feature you asked.....
Give it a try dude......... :thumbup:

Re: help java or html

Posted: 07 Jul 2011, 14:43
by umar
All of you thank you very much for reply on my topic my problem already solve now topic close :)