Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 Why does it link to "#" when I add a mouse over?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

anima3
Expert

Canada
96 Posts

Posted - 26 Mar 2009 :  01:34:04  Show Profile  Visit anima3's Homepage  Reply with Quote
I want an image to change when you place your cursor on it; however when I add the mouse over function, the image automatically links to "#" and I can't "unlink" it. Super annoying :( Why does it do that, and is there a way to counteract it? The page I'm building happens to be quite long, and when you click on the image it jumps back to the top - not so practical for the unsuspecting visitor.

Thank you in advance :)

s.dav
Site Admin

Italy
3364 Posts

Posted - 26 Mar 2009 :  08:39:43  Show Profile  Visit s.dav's Homepage  Reply with Quote
When you add an event to an image the rigth way to translate this action to html is to enclose the image tag into an anchor tag so it is compatible with all browsers.
In order to manage the event you have to add an attribute like "onclick", "onmouseover", etc... to the anchor tag but if you don't set its "href" property the W3C validator doesn't validate your page and in some browsers the anchor tag doesn't work.

There is a lot of research into the code generated by D.H.E. ;-)

Regards, Davide
Go to Top of Page

anima3
Expert

Canada
96 Posts

Posted - 26 Mar 2009 :  13:03:40  Show Profile  Visit anima3's Homepage  Reply with Quote
Oooooooooooh.
Alrighty then :) makes sense!
Anyway, I put a little code in to keep the cursor default so people won't even know they can click on the images.
Go to Top of Page

T00N
Super User

573 Posts

Posted - 26 Mar 2009 :  17:44:02  Show Profile  Visit T00N's Homepage  Reply with Quote
Yeah, that makes sense [2 :-/]
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000