简体   繁体   English

如何根据启动页面上的选择加载自定义样式表?

[英]How do I load a custom stylesheet based on the selection on a splash page?

When my visitors arrive at my site, they'll be greeted by a splash page with a sort of "theme selection." 当我的访问者到达我的网站时,他们会受到一个带有某种“主题选择”的启动页面的欢迎。 When they select the theme, they'll be redirected to the actual site, which would load the appropriate external stylesheet based on their selection. 当他们选择主题时,他们将被重定向到实际网站,这将根据他们的选择加载适当的外部样式表。 To do so, I'd like to avoid using radio buttons; 为此,我想避免使用单选按钮; instead, just a clickable link. 相反,只是一个可点击的链接。

on clicked link send a flag concatenated with URL and on the landing page select the stylesheet according to the flag recieved. 在点击链接上发送一个与URL连接的标记,并在登录页面上根据收到的标记选择样式表。 and if needed later, save it in session or coockies for latter calls as well. 如果需要以后,也可以将它保存在会话或coockies中以用于后面的调用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM