在任何网站上的所有页面上添加可点击对象的任何微不足道的方式?

时间:2022-11-16 07:45:58

Is there a way to add floating clickable object (button / image), that then opens a web-form (such as a feedback or survey form), to every page of a website, be it static HTML or dynamic website (using PHP, Python, Ruby or such technologies) ?

有没有办法添加浮动可点击对象(按钮/图像),然后打开网页表单(如反馈或调查表格),到网站的每个页面,无论是静态HTML还是动态网站(使用PHP, Python,Ruby还是这样的技术)?

Can it be done by just editing or adding an index.html, the main purpose being adding an invisible frame holding the javascript that then causes the floating clickable object, to be visible on every page -- either static HTML or dynamically generated, for as long as the viewer is on this website ?

可以通过编辑或添加index.html来完成,主要目的是添加一个不可见的框架,其中包含导致浮动可点击对象的javascript,在每个页面上都可见 - 静态HTML或动态生成,观众在这个网站上吗?

Graphically explained: 在任何网站上的所有页面上添加可点击对象的任何微不足道的方式? So, I want to be able to show the floating clickable object in page rendered by index_1.php, prods.php, clients.php, contact.php, without having to editing any of those.

图解说明:所以,我希望能够在index_1.php,prods.php,clients.php,contact.php呈现的页面中显示浮动可点击对象,而无需编辑任何这些对象。

If there are examples of such techniques, such as in any opensource project, a pointer would be very useful.

如果有这样的技术的例子,例如在任何开源项目中,指针将非常有用。

The reason for such a question is to see if the feedback form, can be added for / on behalf of non-programmer website owners, who got the site developed by 3rd party, who are no longer maintaining it. And, be able to add the form, with minimal effort.

这样一个问题的原因是看看反馈表是否可以代表非程序员网站所有者添加,他们是由第三方开发的网站,不再维护它。并且,能够以最小的努力添加表单。

1 个解决方案

#1


1  

No frames needed. You can put a JavaScript (or just plain HTML) in your site to create an absolute or fixed positioned element placed above all other elements.

不需要框架。您可以在站点中放置JavaScript(或只是纯HTML),以创建位于所有其他元素上方的绝对或固定定位元素。

I think you mean something like UserVoice, take a look at their widget: https://www.uservoice.com/widget/

我认为你的意思是像UserVoice,看看他们的小部件:https://www.uservoice.com/widget/

#1


1  

No frames needed. You can put a JavaScript (or just plain HTML) in your site to create an absolute or fixed positioned element placed above all other elements.

不需要框架。您可以在站点中放置JavaScript(或只是纯HTML),以创建位于所有其他元素上方的绝对或固定定位元素。

I think you mean something like UserVoice, take a look at their widget: https://www.uservoice.com/widget/

我认为你的意思是像UserVoice,看看他们的小部件:https://www.uservoice.com/widget/