You are viewing our Forum Archives. To view or take place in current topics click here.
html help!!!!!!!!!!!!!!!!!!!!
Posted:

html help!!!!!!!!!!!!!!!!!!!!Posted:

orangutan123
  • New Member
Status: Offline
Joined: May 12, 201212Year Member
Posts: 11
Reputation Power: 0
Status: Offline
Joined: May 12, 201212Year Member
Posts: 11
Reputation Power: 0
does anyone know when you hover a picture with your your curser it changes the picture, is this possible with html.
#2. Posted:
Nic
  • Retired Staff
Status: Offline
Joined: Jun 08, 201014Year Member
Posts: 2,466
Reputation Power: 1070
Motto: I've been watching you all day.
Motto: I've been watching you all day.
Status: Offline
Joined: Jun 08, 201014Year Member
Posts: 2,466
Reputation Power: 1070
Motto: I've been watching you all day.
Not just HTML, you need a bit of CSS as well. It's easy to pull off so there's only a small amount of code for this. Take a look at the following website:
[ Register or Signin to view external links. ]

Also,
[ Register or Signin to view external links. ]
#3. Posted:
iyop45
  • Prospect
Status: Offline
Joined: Apr 15, 201113Year Member
Posts: 614
Reputation Power: 83
Status: Offline
Joined: Apr 15, 201113Year Member
Posts: 614
Reputation Power: 83
It is definately feasable through just html and is infact supported by all major browsers:

img src="example.png"
onmouseover="this.src='example2.png'"
onmouseout="this.src='example.png'"

of cource add "<" and ">" on the start and end. As I can't seem to reply with html code?
#4. Posted:
Z61
  • V5 Launch
Status: Offline
Joined: Apr 16, 201014Year Member
Posts: 4,309
Reputation Power: 179
Status: Offline
Joined: Apr 16, 201014Year Member
Posts: 4,309
Reputation Power: 179
iyop45 wrote It is definately feasable through just html and is infact supported by all major browsers:

img src="example.png"
onmouseover="this.src='example2.png'"
onmouseout="this.src='example.png'"

of cource add "<" and ">" on the start and end. As I can't seem to reply with html code?

I believe that is deprecated.
#5. Posted:
iyop45
  • Prospect
Status: Offline
Joined: Apr 15, 201113Year Member
Posts: 614
Reputation Power: 83
Status: Offline
Joined: Apr 15, 201113Year Member
Posts: 614
Reputation Power: 83
Unless "orangutan123" is specifically being judged on the clarity of his code, the way on which it's written doesn't matter.

It follows the same functions and is recognized by all major browsers ( go ahead correct me if I'm wrong ).
orangutan123 was looking for a method to perform a function through html- I provided the basis of such.
So why the critisism, its not bad practice -for a basic understanding- using this method.
#6. Posted:
Nic
  • Retired Staff
Status: Offline
Joined: Jun 08, 201014Year Member
Posts: 2,466
Reputation Power: 1070
Motto: I've been watching you all day.
Motto: I've been watching you all day.
Status: Offline
Joined: Jun 08, 201014Year Member
Posts: 2,466
Reputation Power: 1070
Motto: I've been watching you all day.
iyop45 wrote It is definately feasable through just html and is infact supported by all major browsers:

img src="example.png"
onmouseover="this.src='example2.png'"
onmouseout="this.src='example.png'"

of cource add "<" and ">" on the start and end. As I can't seem to reply with html code?

Technically, it is HTML and Javascript, so if a user has Javascript disabled the "onmouseover" and "onmouseout" events will not work.

But the method works though, no argument there :bigups:
#7. Posted:
Asynkro
  • Resident Elite
Status: Offline
Joined: Aug 27, 201113Year Member
Posts: 227
Reputation Power: 8
Status: Offline
Joined: Aug 27, 201113Year Member
Posts: 227
Reputation Power: 8
Could you not use the ':hover' pseudo tag?
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.