Answer the question
In order to leave comments, you need to log in
Show DIV if user moved mouse away from site?
Good afternoon colleagues!
How to implement a script that will call a function if the user has moved the mouse out of the site window borders.
I must say beforeunload is not suitable) Since this method works on actions when the user closes the page and it does not allow DIV to be called.
In general, you need to call a modal window (div content) like "Wait! Submit a request".
Answer the question
In order to leave comments, you need to log in
You can
A) raise the specified network on all machines as a secondary IP on existing network cards - in this case, the traffic will go bypassing the router, but the solution is inherently extensive
B) raise the secondary IP on the server (it is possible on the same network card) - if on all working machines and on 10.1.1.2 this server is specified as default-gateway, then it should work immediately; if not default, then you need to add routes on the machines towards the new network "through the server" and on 10.1.1.2 towards your workstations again through the server, but naturally through its 10.1.1.X address
If the router allows.
1 option vlan eth0.1
2 option virtual interface like eth0:1
for example 2 option I will analyze.
there is an eth0 network and routing in it is carried out within the 192.168.0.0/24 network
, add the eth0:1 virtual interface and assign the 10.1.1.0/24 network to it,
then these networks, even being in the same switch, will still find each other.
Draw a picture, chtoli, or describe the network topology in more detail.
If the linux server is your router, then on it, if not, then on the router.
Situation 1:
1. linux is your router,
2. it is plugged into a switch, into which all other computers, including your miracle device, are from another ip-network.
3. the switch is unmanaged, or everything is in the default vlan.
Decision 1:
1. write alias on debian'e on the interface looking to the LAN
2. resolve routing on it.
3. We do not touch anything on clients.
And so - telepaths on vacation.
I understand that you did not create a question in order to discuss whether this should be done at all, but I beg you, reconsider your approach. Any modal window that is not caused by a click of the user himself is regarded negatively. I would suggest just making a nice little "Submit Request" button if your site offers any services.
And shouting after the departing client "wait, leave a request"? Sadly.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question