Hello dear friends ,
I Saw that there are html experts in this site ,
So i need an HTML code for popup window Code…
I Need features like : 1) There will be an popup window on page load 2) The popup window will appear only once for one visitor in 24 hours. 3) I will point a domain name so the pop up window will show my website in Popup window…
I’ve moved your post to the JavaScript forum, because you cannot do what you want with HTML alone.
Have you made a start on this yourself? If so, please show the code you have so far. You will find people willing to help you with it, but you’re unlikely to find anybody to do it for you.
There are plenty of popup tutorials on the web, as well as a large array of libraries and plugins for other view-related libraries. As @TechnoBear said, if you have a specific problem please post your code here, and/or set up a fiddle or the like! :-)
This can be done by storing the last date of execution to the local storage and an ordinary if condition.
I think you basically have two options here: either use an iframe, or load the content sending an XMLHttpRequest to that page. The advantage of the former is that it is isolated from the containing page and the styles and scripts won’t interfere with each other. Reversely, the advantage of the latter is that you have more control over the exact content, behaviour and appearance – such as displaying only a certain element instead of the whole thing including header, footer etc.
Again, as for matters of detail please post your code-so-far. If you need it reaaally urgent, I might suggest something I usually wouldn’t w/o further specifics and say pull jQuery and jQueryUI. ;-) Then just use a dialog and load the content.
@TechnoBear i have already added the pop up code on my website.
But i want the popup window comes only once in 24 hours for each visitor.
So the visitor will also not get annoyed. …
I Have copied that code and putted it on my website , but i got complaints by my visitors to remove the popup window as it is loading everytime when the page loads.
Thats why i need an code :- Popup window will only comes once in 24 hours for EACH VISITOR. Thanks In advance.