在访问图象时在背景中打开网站 [英] Open website in background while visiting image

查看:62
本文介绍了在访问图象时在背景中打开网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在访问图片的同时在后台打开网站。



即我们输入http://websiteloadinginthebackground.freeptp.com/images/free.jpg在浏览器中,图像应该弹出,网站应该在后台加载。就像早期的谷歌图片布局一样。



有没有办法这样做?

I want to open website in background while visiting image.

i.e. let's say I enter http://websiteloadinginthebackground.freeptp.com/images/free.jpg in browser then image should come as pop up and website should be loaded in background. Just like earlier google images layout.

Is there any way to do so?

推荐答案

是的,对于弹出窗口,您可以使用 jQuery 对话框 [ ^ ]。



你必须在<$ c $中初始化这个弹出窗口C>的document.ready()。所有其他页面内容将在后台正常加载。
Yeah, for the popup, you can use jQuery Dialogs[^].

You have to initialize this popup in document.ready(). All other page contents would load normally in background.


您不能只使用javascript执行此操作,需要一些后端知识。

1.处理使用apache重写模块或其他方法的url:

url将更改为:

http://websiteloadinginthebackground.freeptp.com/?popup=images/free .jpg

这将确保背景是网站首页(或其他页面取决于你构建的网址)

2.然后在首页,弹出一个图像图层使用html + javascript
You can't do this only with javascript, some backend knowledge is required.
1. deal with the url with apache rewrite module or some other method:
url will be changed to something like:
http://websiteloadinginthebackground.freeptp.com/?popup=images/free.jpg
This will ensure the background is the website frontpage(or other page which depend on the url you constructed)
2. Then in the frontpage, pop up an image layer with html+javascript


这篇关于在访问图象时在背景中打开网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆