The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> onclick AND onmouseover onmouseout
Caiterz
post 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? :'(
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Caiterz
post 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...
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Caiterz
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 26th April 2024 - 05:32 AM