Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
combine onClick / onMouseover (and css hover)
Old 08-03-2010, 04:00 AM combine onClick / onMouseover (and css hover)
Novice Talker

Posts: 8
Trades: 0
Hi everyone,

I have been trying to find a solution for this for a while now, but can't seem to get far with google. I hope this is in the right forum?

I'm trying to combine the following on one image:

- CSS hover effect -> border change from transparent to yellow
- OnMouseover -> image swap (change logo on bottom with project name)
- OnClick -> make a layer visible.

It seems that the Onclick and OnMouseover effect are not working together. At the moment, only the OnClick and CSS hover are working. The OnMouseOver and OnMouseOut are ingnored.

Below a link to the site. I've tried it with just two of the images now (4th in the middle row and 3rd in the top row)

http://www.mbarch.nl/test3/

Code:
    <td><img src="http://www.webmaster-talk.com/images/thumbnails/068_01.gif" width="180" height="115" border="0" class="bordered" onMouseOver="MM_swapImage('title_none','','images/titles/title_068.gif',1)" onMouseOut="MM_swapImgRestore()"  onclick="MM_showHideLayers('Layer068','','show')" style="cursor:pointer"></a></td>

Last edited by Anja; 08-03-2010 at 05:03 AM..
Anja is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-03-2010, 08:28 AM Re: combine onClick / onMouseover (and css hover)
Novice Talker

Posts: 8
Trades: 0
Hmm...I just added a Href to the image, and for some reason, it's working now?!

thanks
Anja is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to combine onClick / onMouseover (and css hover)
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09888 seconds with 12 queries