Hello guys:
I have two questions. I’m programming an online game with PHP and I need two things:
a) Let’s suppose that var x has value 3. Then, with clicking in a link, x should increment by 1 and it should be showed instead of 3.
Example (this represents the screen):
Value: 3
–after click–>
Value: 4
So, how would yo do it?
b) I need that when pointing in a link (so, onHover event?) the info in a frame is changed. So, if we have links a and b, when pointing at link a the text in the other frame should be ‘aaaaa’ and when pointing at b the text should be ‘bbbbb’ (but without reloading the frame).
As you see, I’m completely ignorant in Javascript. I hope you help me ?
Greetings from Girona, Spain.