Click here to Skip to main content
15,881,559 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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?
Posted

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.
 
Share this answer
 
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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900