XP
Thu May 10 11:55:03 CDT 2007
Hi Ayush,
If I wanted to call a VBScript that runs some code, how would I do that? I'm
presuming the following code line would need to be changed somehow so that
rather than firing an inline message box, it would call a script sub in the
script tags:
<SPAN onclick=msgbox("xxx") language=vbscript>Menu Item One</SPAN>
Thanks again!
"Ayush" <"ayushmaan.j[aatt]gmail.com" wrote:
> [XP]s message :
> > Hi Irfan,
> >
> > Here is the code; please help if you can and thanks:
> ....
>
> Try this:
>
> <HTML>
> <HEAD>
> <TITLE>Popup Custom Navigation Menu Sample</TITLE>
>
> <SCRIPT LANGUAGE="vbscript">
> Set oPopup = window.createPopup
> Function contextMenu
>
> lefter = window.event.offsetX+10
> topper = window.event.offsetY+10
> oPopup.document.body.innerHTML = oContextHTML.innerHTML
> oPopup.show lefter, topper, 200, 65, window.document.body
> window.event.returnValue=false
> End Function
>
> </SCRIPT>
>
> </HEAD>
> <BODY oncontextmenu="contextMenu">
> <h1>Creating Custom Context Menus with the Popup Object</h1>
> Right-click anywhere on the document to see a customized popup navigation
> menu.
>
> <DIV ID="oContextHTML" STYLE="display:none;">
> <DIV onmouseover=this.style.background="gold"
> onmouseout=this.style.background="#e4e4e4">
> <SPAN onclick=msgbox("xxx") language=vbscript>Menu Item One</SPAN>
> </DIV>
> <DIV onmouseover=this.style.background="gold"
> onmouseout=this.style.background="#e4e4e4">
> <SPAN onclick=msgbox("yyy") language="vbscript">Menu Item Two</SPAN>
> </DIV>
> </DIV>
>
> </BODY>
> </HTML>
>
> Good Luck, Ayush.
> --
> Windows XP:
http://www.microsoft.com/windows/using/windowsxp/default.mspx
>