/    Sign up×
Community /Pin to ProfileBookmark

Security Dialog Box appears in Javascript

hi all.

I ve some problem with my javascript which is used to present menus at the homepage. I have a dropdown menu also, wherein, whenever I rollover t mouse on dropdown menus, a security dialog box appears(this page works on https), and it doesnot appear until u refresh the page again.

I have 2 menu scripts. In menu1.js, I call a fn which is in menu_main.js

The call in menu1.js, goes like this

[COLOR=DarkRed][B]startSubmenu(“menu_pre_b7″,”menu_pre_menu”,83);submenuItem(“Help”,loc+”pre_help.htm”,”_self”,”menu_pre_plain”);submenuItem(“Search”,loc+”GetPage1Action.do?command=getPage1″,”_self”,”menu_pre_plain”);submenuItem(“DJVU Plugin”,loc+”pre_lizardtech_djvu.htm”,”_self”,”menu_pre_plain”);endSubmenu(“menu_pre_b7”); [/B] [/COLOR]

and the menu_main.js has the function for startSubMenu as

[COLOR=DarkRed][B]function startSubmenu(name,style,sw){var depth=name.split(“_”).length+1000;if(NS4)return;if(sw>0)menuw=sw;d.write(“<div id=””+name+”” style=”z-index:999;border-color:#000000;border-style:solid;border-width:”+bd+”px 0px “+bd+”px 0px;background-color:#ffffff;position:absolute;left:0px;top:0px;visibility:hidden;z-index:”+depth+”;width:”+(menuw+(NS7?bd*2:0))+”px”>”);}[/B][/COLOR]

I hope the problem is with the startSubMenu function. Can someone help me on this?

to post a comment

0Be the first to comment 😎



Help @ayunus 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 10.3,
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: @ddiebold17,
tipped: article
amount: 1000 SATS,

tipper: @Mqlinka19,
tipped: live stream
amount: 4900 SATS,

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