Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 Why does it link to "#" when I add a mouse over?

Note: You must be registered in order to post a reply.

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert Email Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
anima3 Posted - 26 Mar 2009 : 01:34:04
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 :)
3   L A T E S T    R E P L I E S    (Newest First)
T00N Posted - 26 Mar 2009 : 17:44:02
Yeah, that makes sense [2 :-/]
anima3 Posted - 26 Mar 2009 : 13:03:40
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.
s.dav Posted - 26 Mar 2009 : 08:39:43
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. ;-)

Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000