help java or html

A Place For Programmers Of All Levels To Discuss Programming & Web Building.

Moderator: Community Moderator

Locked
User avatar
umar
Trusted Uploader
Trusted Uploader
Posts: 910
Joined: 09 Nov 2010, 09:25
Location: Pakistan
Has thanked: 4 times

help java or html

Post 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 :(
User avatar
Akasha
Global Moderator
Global Moderator
Posts: 7730
Joined: 23 Nov 2010, 18:43
Status: The Fifth Element
Has thanked: 97 times
Been thanked: 17 times
Contact:

Re: help java or html

Post 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 :)
User avatar
umar
Trusted Uploader
Trusted Uploader
Posts: 910
Joined: 09 Nov 2010, 09:25
Location: Pakistan
Has thanked: 4 times

Re: help java or html

Post 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:
User avatar
Mahn
Corporal
Corporal
Posts: 31
Joined: 15 Apr 2011, 15:46
Location: States
Been thanked: 1 time

Re: help java or html

Post 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.
akshay
Soldier First Class
Soldier First Class
Posts: 19
Joined: 03 Oct 2009, 09:26
Has thanked: 1 time
Been thanked: 1 time

Re: help java or html

Post 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...
User avatar
johnyaar
Corporal
Corporal
Posts: 47
Joined: 27 Nov 2009, 08:43
Location: Cat-Man-Doo
Been thanked: 1 time
Contact:

Re: help java or html

Post 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:
Have Faith.......
User avatar
umar
Trusted Uploader
Trusted Uploader
Posts: 910
Joined: 09 Nov 2010, 09:25
Location: Pakistan
Has thanked: 4 times

Re: help java or html

Post by umar »

All of you thank you very much for reply on my topic my problem already solve now topic close :)
Locked

Return to “Programming/Web Building Chat & Support”