需要一个选项来返回之前的网页设计

发布于 2024-08-29 23:24:22 字数 174 浏览 3 评论 0原文

我正在为一位客户创建一个网站,他想要一个链接,人们可以单击该链接返回到以前的网站设计,并在每次返回该网站时转到该设计。

我该怎么做呢?

我是否需要创建一个 cookie?如果需要,我该怎么做?

感谢您的帮助,当我开始做这一部分时,我会再回到这个问题!

I'm creating a website for a client in which he wants a link that people can click on to go back to the previous website design and go to that design every time they go back to that website.

How would I go about doing this?

Would I need to create a cookie and if I do how do I do that?

Thanks for all your help, I'll come back to this question when I get to doing this part!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

心碎的声音 2024-09-05 23:24:22

新设计有多少不同?这只是一种外观方式,还是新设计的流程和功能存在显着差异?他们是否使用相同的数据库设置,或者新旧版本之间的情况是否发生了变化?他们是否应该能够使用任一网站来做同样的事情?例如,如果他们在新网站上创建一条记录,它是否应该显示在旧网站上?

如果变化很小,最简单的事情可能就是把旧网站当作自己的网站来运行。在新网站上放置一个大链接,上面写着“如果您想要旧网站,请访问 oldsite.example.com”。通常最好弄清楚如何通过社交工程让客户想要使用新网站,并告诉他们旧网站将在某个时候永久消失。

我非常不愿意用钩子来感染新系统来支持您想要摆脱的旧系统。

How much different is the new design? Is it just a manner of the look, or are there significant differences in the flow and features of the new design? Are they using the same database setup, or did things change between the old and new versions? Should they be able to use either site to do the same things? For instance, if they create a record on the new site, should it show up on the old site?

If there's minimal change, the easiest thing might be to just punt and run the old site as it's own website. Put a big link on the new site that says "If you want the old site, visit oldsite.example.com". It's usually nice to figure out how you can socially engineer the customers to want to use the new site instead, and also tell them that the old site will be disappearing permanently at some point.

I'd be very reluctant to infect a new system with hooks to support an old system you want to move away from.

蘑菇王子 2024-09-05 23:24:22

您可以考虑将旧应用程序放置在子域中,例如“old.mydomain.com”或类似的内容。这将允许您在单独的(IIS?)文件夹和单独的项目中维护应用程序。

如果您不想使用子域,则可以使用重写引擎来检查 cookie 设置(例如“UseOldSite=TRUE”),并在适当的情况下重写到旧应用程序。

使用此方法可能会遇到一些问题,包括在应用程序中使用绝对 URL 和路径以及共享会话或 Cookie 数据。

我注意到 GMail 提供了“以 HTML 格式查看”选项,最大限度地减少了 JavaScript 的使用。我认为这是为了与 JavaScript 支持很少或不足的旧版浏览器兼容,但该方法可能适用于您的情况。

You might consider placing the old app in a subdomain, like "old.mydomain.com" or something similar. This will allow you to maintain the applications in separate( IIS?) folders and separate projects.

If you don't want to use a subdomain, you could use a rewrite engine to check for a cookie setting such as "UseOldSite=TRUE" and rewrite to the old application where appropriate.

Some issues that you might encounter with this approach would be the use of absolute urls and paths within the application and sharing of session or cookie data.

I've noticed that GMail provides a "view in HTML" option which minimizes the use of JavaScript. I assume this is for compatibility with older browsers with minimal or insufficient JavaScript support, but the approach may be applicable to your situation.

机场等船 2024-09-05 23:24:22

一个好的选择(假设数据中没有结构变化)是使用备用样式表。

这是一篇关于在样式表之间切换的精彩帖子

当然,在FF中,你可以去:查看>>页面样式>其他样式表。

A good option ( assuming there are no structural changes in the data ) is to use Alternate Style Sheets.

This is a great post on switching between stylesheets.

Of course, in FF, you can go to: View > Page Style > Other Style Sheet.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文