Hi all,
I did make a script/css thing to replace the contextmenu on the website with
a new one: http://www.djwice.com/contextmenu.html
It works nice in MSIE, but on Netscape (and probable other browsers) it
stays on the same place (does not "open'' where the mouse is). And the links
do not work when you click on them.
If anyone has sugestions on how to improve it, please let me know.
Thanks,
Wouter 52 4746
DJ WIce wrote: Hi all,
I did make a script/css thing to replace the contextmenu on the website with a new one: http://www.djwice.com/contextmenu.html
It works nice in MSIE, but on Netscape (and probable other browsers) it stays on the same place (does not "open'' where the mouse is). And the links do not work when you click on them.
If anyone has sugestions on how to improve it, please let me know.
Suggestion: Trash it and stop screwing with my mouse.
--
Randy
: Suggestion: Trash it and stop screwing with my mouse.
Sugestion: look at what you see before complaining; click the option on the
bottom of the menu...
And now try to help me solve a problem that is not related with your mouse.
Help me make the code work; the stylesheet does not look equal in all
browsers. NN screws it up.
I just made it to test what's possible, you seem to love staying where you
are?
Wouter
"DJ WIce" <co*********@dj wice.com> wrote: I did make a script/css thing to replace the contextmenu on the website with a new one: http://www.djwice.com/contextmenu.html
It works nice in MSIE, but on Netscape (and probable other browsers) it stays on the same place (does not "open'' where the mouse is). And the links do not work when you click on them.
Which Netscape isn't it working in? It works fine in NN 7.1 and 6.23
(both WinXP).
The page doesn't even load in NN4.8 (hangs), but you weren't actually
expecting anything remotely fancy to work in that were you?
It doesn't work at all in Opera 7.23 (even when I set my preference to
allow JavaScript to access the right mouse click, which I normally
don't allow. Can any Opera users remember whether that's off or on by
default?)
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <st***@pugh.net > <http://steve.pugh.net/>
"DJ WIce" <co*********@dj wice.com> writes: : Suggestion: Trash it and stop screwing with my mouse.
Sugestion: look at what you see before complaining; click the option on the bottom of the menu...
Didn't see a thing. I use Opera :) Anyway, I did check in IE and
Mozilla ...
Looks nice, but I am also in the camp who things reimplementing the
browser interface is a bad idea. And why do you call it "more nice
looking"? I like the current menu, and it fits my theme.
And now try to help me solve a problem that is not related with your mouse. Help me make the code work; the stylesheet does not look equal in all browsers. NN screws it up.
As a bug report, "screws it up" is pretty useless. Which NN are we
talking about (I'm pretty sure it's not Netscape Navigator 4, because
it won't even load the page).
I don't see any serious difference between Mozilla and IE 6 (not one that
would fit "screws it up" at least).
It is optimistic to assume that two browsers show a page exactly
alike. For one thing, the font will probably be different, and IE is
known for its bad CSS implementation. So, if you have any particular
CSS problems, you need to say what it is (and it would be smarter to
ask in a CSS group ... which I only now notice that you do. When
you crosspost, remember to set the Followup-To header!!!)
The color you use for the background, lightgray, is not a standard
CSS color, and is not understood by IE
Neither allows me to pop the menu down again when it is up, except by
chosing an entry.
Don't use javascript :-URIs (like "javascript :win dow.print()"). Use
onclick attributes instead. <URL:http://jibbering.com/faq/#FAQ4_24>
/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
'Faith without judgement merely degrades the spirit divine.'
Hi Steve,
Since this is a posting in more that one newsgroup I did fix a bit op for
NN.
So the problem now with NN is stylesheet related. I hope you can help:
The buttons do have 2 problems:
1) in MSIE the
<a href="link" style="width:15 0px;border:1px solid white;"><img
src="image.gif" height="16"> text</a>
works. E.g. the link is 150 pixels in width and has a border around the 16
pixels
height of the image.
Netscape (7) says:
I ignor the width:150px and I do not care how heigh the image is;
I just draw it around the image and the link text but at the text height
(12px).
: Which Netscape isn't it working in? It works fine in NN 7.1 and 6.23
: (both WinXP).
Thanks for testing NN 6.23, I did test it on 7.0 only.
: The page doesn't even load in NN4.8 (hangs), but you weren't actually
: expecting anything remotely fancy to work in that were you?
I do not use layers probable that's the problem, right? NN4.8 does not
handle div tags?
: It doesn't work at all in Opera 7.23 (even when I set my preference to
: allow JavaScript to access the right mouse click, which I normally
: don't allow. Can any Opera users remember whether that's off or on by
: default?)
Hmm.. I assume Opera did not implement the oncontextmenu event.
I need to know how to test if it's implemented or not, then I can handle
those who do not with right-click events.
I need to separate these because Netscape 7 (and maybe lower) gives a
trigger to the click-event at the same time to the oncontextmenu event, MSIE
makes the choice only to trigger the rightclick event when both are active.
Thanks for your reply and testing!
Wouter
On Thu, 15 Jan 2004 23:20:07 +0100, DJ WIce <co*********@dj wice.com> wrote: Help me make the code work; the stylesheet does not look equal in all browsers. NN screws it up.
In Opera I get the default menu, thank goodness.
Don't know crap about scripting, but thought you'd appreciate a little
extra info.
"DJ WIce" <co*********@dj wice.com> wrote: The buttons do have 2 problems:
1) in MSIE the
<a href="link" style="width:15 0px;border:1px solid white;"><img src="image.gif " height="16"> text</a>
works. E.g. the link is 150 pixels in width and has a border around the 16 pixels height of the image.
Netscape (7) says: I ignor the width:150px and I do not care how heigh the image is; I just draw it around the image and the link text but at the text height (12px).
Netscape is applying your styles correctly, IE is not.
You can not set the width property for inline elements, and the height
of an inline element is determined by the line-height property, not by
any images that it may contain. This is already well documented, see
for example: http://www.hut.fi/u/hsivonen/standar...l#lineboxmodel
Adding display: block to the styles for the <a> elements would be a
first step. Other values may need to be tweaked as a consequence.
: The page doesn't even load in NN4.8 (hangs), but you weren't actually : expecting anything remotely fancy to work in that were you?
I do not use layers probable that's the problem, right? NN4.8 does not handle div tags?
NN4 handles div tags just fine. It just has a totally different
document object model and so you can't manipulate them, or anything
else for that matter, in the same way as more modern browsers.
: It doesn't work at all in Opera 7.23 (even when I set my preference to : allow JavaScript to access the right mouse click, which I normally : don't allow. Can any Opera users remember whether that's off or on by : default?)
Hmm.. I assume Opera did not implement the oncontextmenu event. I need to know how to test if it's implemented or not, then I can handle those who do not with right-click events.
Opera didn't throw up an error message, so I wouldn't bother changing
anything. Most Opera users are happy with the fact that their browser
is less open to interference like this. Leave them happy.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <st***@pugh.net > <http://steve.pugh.net/>
: ... which I only now notice that you do. When
: you crosspost, remember to set the Followup-To header!!!)
Oh, sorry, how do I do that?
I though putting all in one field would do the trick (it send at once).
I use MSOE 6.
The "screw up" of Netscape 7.0 is that I link a image and a text, give the
link a border and the border goes trough the image (see the refresh option).
Next to that it does not react on the "width" I set in the style of the
link.
I prefer to have the link 150px width.
: The color you use for the background, lightgray, is not a standard
: CSS color, and is not understood by IE
Oh? I though so, it shows me lightgray in IE6. So it's not one of the 216
colors..
I'll change it to a color code, thanks. #ccc is about the same.
: Neither allows me to pop the menu down again when it is up, except by
: chosing an entry.
It does when you click next to the menu if I'm correct.
Oh.. oeps.. did disable the mousedown to get it to work in NN 7..
Thanks fixed that with onlick event.
: Don't use javascript:-URIs (like "javascript:win dow.print()"). Use
: onclick attributes instead. <URL:http://jibbering.com/faq/#FAQ4_24>
Thanks!
What other html tag does support hover events?
So I can put it in the stylesheet:
tag:hover{..}
How funny; MSIE 6 does not support hover for span.. and NN 7.0 does..
Thanks you did help me a lot!
Wouter
DJ WIce wrote: I did make a script/css thing to replace the contextmenu on the website with a new one: http://www.djwice.com/contextmenu.html
If anyone has sugestions on how to improve it, please let me know.
You assume all your visitors are mouse users? The browser's inbuilt
context menus are accessible via keyboard. Yours is not.
BTW, yours is not really a context menu at all, since the menu items
don't change depending on the element (link vs image vs text). Why
would someone prefer using this when the browser context menus are so
much more functional? You are only going to annoy your visitors, you know.
--
To email a reply, remove (dash)un(dash). Mail sent to the un
address is considered spam and automatically deleted. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: DJ WIce |
last post by:
Hi all,
I did make a script/css thing to replace the contextmenu on the website with
a new one: http://www.djwice.com/contextmenu.html
It works nice in MSIE, but on Netscape (and probable other browsers) it
stays on the same place (does not "open'' where the mouse is). And the links
do not work when you click on them.
If anyone has sugestions on how to improve it, please let me know.
|
by: Brian Martel |
last post by:
I am trying to create a dynamic flyout submenu off of a contextmenu.
I can right click and get the base contextmenu ok.
On the Popup event I add MenuItem's to the collection of one of the items so
it has a flyout submenu when selected.
If I try and add more than 1 item to the submenu it only shows up the first
time.
This same code works fine if it is part of a MainMenu but not with a
ContextMenu.
Has anyone seen this before? Have you...
|
by: Derrick |
last post by:
I've been working on an application which has a NotifyIcon (system tray
icon), and a corresponding ContextMenu. I want to be able to update this
menu dynamically. However, when I make changes to the menu, it seems to
disappear. This only breaks when the context menu is tied to a NotifyIcon -
not to any other control.
Below is a C# file for a form which should illustrate this (at least it does
on my machine!). The same contextmenu is...
|
by: tmaster |
last post by:
When I try to dynamically add a second sub menu item to this ContextMenu
item, I get an error 'Specified argument was out of the range of valid
values'.
Private Sub mnuTopics_Show_Select(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles mnuTopics_Show.Select
Dim mShowMenuItem As MenuItem
mShowMenuItem = DirectCast(sender, MenuItem)
|
by: TryingLikeHeck |
last post by:
I have a usercontrol on which I've generated a context menu in designer.
The properties of the control lists for ContextMenu (none)
The menu shows up in the designer window and I can edit it
To assign my menu to the property in New I do
ContextMenu = RePopupMenu
To show it, on right mouse down I do
ContextMenu.Show(Me, New Drawing.Point(e.X, e.Y))
| |
by: asharda |
last post by:
Hi,
I am trying to create a context menu in my application. The context
menu takes menu otems from an XML file. In XAML the code is
<Grid.ContextMenu>
<ContextMenu Name="cm" StaysOpen="true" Width="Auto"
Height="Auto" ItemsSource="{Binding Mode=OneWay,
Source={StaticResource ListItemsDS}, XPath=/ListboxItems/ListboxItem/
ScreenName}" MenuItem.Click="add_Click">
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |