/    Sign up×
Community /Pin to ProfileBookmark

i have a menu activated onClick…

i have a menu that is opened upon onClick….
but some times, when i click it again to close the menu….it highlights the word located within the td that activates the menu…..
[URL=http://www.angelfire.com/yt3/eratech/index.html]here it is[/URL]

if theres a way to get rid of this, please tell me

thanx

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@cacalexJul 22.2003 — var objMenu,objxoffset,objyoffset

function mousedown()

{

objMenu = event.srcElement.document.all

X=event.clientX;

Y=event.clientY;

}

function mousemove()

{

if (objMenu)

{

event.returnValue = false

}

}

function DblClick()

{

{

objMenu = event.document.all.srcElement

X=event.clientX;

Y=event.clientY;

}

if (objMenu)

{

event.returnValue = false
}

}

document.onmousedown = mousedown;

document.onmousemove = mousemove;

document.onDblClick = DblClick;

document.onmouseup = new Function("objMenu = null")

document.onselectstart = mousedown;



If you call this script AFTER your menu is expand, it will not make text selection possible...

I'm not saying that it will then make the SECOND click working...

Only unselectable text...
Copy linkTweet thisAlerts:
@xataku_nakusuteauthorJul 22.2003 — thanx and all for the code....but where would you put it?

(my sites using mostly html....cuz im not too great in js..)
Copy linkTweet thisAlerts:
@cacalexJul 22.2003 — best thing to do will be to put the code in a JS file, an then call it from th place where the "click action" will take place...
×

Success!

Help @xataku_nakusute spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...