如何创建我们在google页面上看到的气泡,要求您将Google设置为主页?

时间:2022-06-05 06:37:38

I want to suggest visitors to my website to set my website as their homepage. I wanted to show a popup but found it too intrusive for the visitor to see a giant popup every time they came to the website.

我想建议访问我网站的访问者将我的网站设置为他们的主页。我想展示一个弹出窗口,但发现每次访问网站时访问者看到一个巨大的弹出窗口太过于干扰。

I wanted to replicate the "make google your homepage" button that you see on the top right corner of the google page when you don't have google as your homepage, it seemed very non intrusive.

我想复制你在google页面右上角看到的“make google your homepage”按钮,当你没有谷歌作为你的主页时,它似乎非常具有侵入性。

如何创建我们在google页面上看到的气泡,要求您将Google设置为主页?

I am not able to figure out how I should build it. Can any one tell me what its called?

我无法弄清楚我应该如何构建它。谁能告诉我它叫什么?

Can anyone help me?

谁能帮我?

1 个解决方案

#1


1  

I don't think this is possible in most of the browsers, mostly because of a security concern. If in fact this was possible, then everyone would do this automatically to make you visit their website.

我不认为这在大多数浏览器中是可行的,主要是因为安全问题。如果事实上这是可能的,那么每个人都会自动执行此操作以使您访问他们的网站。

Maybe you just can tell people how to set their homepage using the browser custom settings to set your website as their homepage. Maybe you should create a popup based on cookies with a message and links to the browser instructions on how to set your website as a homepage.

也许你可以告诉人们如何使用浏览器自定义设置设置他们的主页,将您的网站设置为他们的主页。也许您应该创建一个基于带有消息的cookie的弹出窗口,并链接到浏览器有关如何将您的网站设置为主页的说明。

For this I think you can refer to these links:

为此我想你可以参考这些链接:

Popup cookie once per browser session

每个浏览器会话一次弹出cookie

Setting a cookie to only show popup once

将cookie设置为仅显示弹出一次

Display A Popup Only Once Per User

每个用户仅显示一次弹出窗口

Making my javaScript popup to appear only once

使我的javaScript弹出窗口只出现一次

#1


1  

I don't think this is possible in most of the browsers, mostly because of a security concern. If in fact this was possible, then everyone would do this automatically to make you visit their website.

我不认为这在大多数浏览器中是可行的,主要是因为安全问题。如果事实上这是可能的,那么每个人都会自动执行此操作以使您访问他们的网站。

Maybe you just can tell people how to set their homepage using the browser custom settings to set your website as their homepage. Maybe you should create a popup based on cookies with a message and links to the browser instructions on how to set your website as a homepage.

也许你可以告诉人们如何使用浏览器自定义设置设置他们的主页,将您的网站设置为他们的主页。也许您应该创建一个基于带有消息的cookie的弹出窗口,并链接到浏览器有关如何将您的网站设置为主页的说明。

For this I think you can refer to these links:

为此我想你可以参考这些链接:

Popup cookie once per browser session

每个浏览器会话一次弹出cookie

Setting a cookie to only show popup once

将cookie设置为仅显示弹出一次

Display A Popup Only Once Per User

每个用户仅显示一次弹出窗口

Making my javaScript popup to appear only once

使我的javaScript弹出窗口只出现一次