onclick AND onmouseover onmouseout |
onclick AND onmouseover onmouseout |
Caiterz |
Jun 20 2013, 09:09 PM
Post
#1
|
Group: Members Posts: 3 Joined: 20-June 13 Member No.: 19,328 |
<img src="website.png" width="80%" onmouseover="this.src='website2.png'" onmouseout="this.src='website.png'" onclick="this.src='website3.png'">
Any idea why this doesnt work? :'( |
pandy |
Jun 21 2013, 02:51 AM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Works for me. In what way doesn't it work for you? Maybe the URL to one of the images is incorrect.
|
Caiterz |
Jun 24 2013, 08:45 PM
Post
#3
|
Group: Members Posts: 3 Joined: 20-June 13 Member No.: 19,328 |
http://trickster.elementfx.com/myshopsite/
Check the live example! It works -SOMETIMES- I dont know WHY. <=/ File names are fine... |
pandy |
Jun 25 2013, 04:06 AM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Do you mean why you don't see the onclick image? I guess it's because there isn't time for the image to load before the browser goes to the next page.
|
Caiterz |
Jun 26 2013, 04:17 AM
Post
#5
|
Group: Members Posts: 3 Joined: 20-June 13 Member No.: 19,328 |
it loads as a broken image though... whereas it's not broken o_O
If i take the link away, it loads fine. Put link in, broken image. |
pandy |
Jun 26 2013, 04:41 AM
Post
#6
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Really? I don't see that. Then I'm stumped. The URL to the image is correct, so I don't know what could cause that. If it isn't that the loading of the image is interrupted by the href action. I don't know if that would cause a broken image icon in some browser.
|
Lo-Fi Version | Time is now: 26th April 2024 - 05:32 AM |