PDA

View Full Version : Question for all the web code monkeys!


Mark1
28th of April 2010 (Wed), 13:11
I am building a temp web site for a friend who "wants something by the weekend". A real site is in the works. So we are only putting up a small gallery till the real one is done. The gallery he chose is a full screen one where you click "next", then the next image loads full screen...etc...etc.

What I need is links to the code for pop overs. He would like a pop up screen to be over the first image that is the welcome stuff automatically on arrival. Close that window and you are immediately on the first image.

I know pop up blockers will not like this. But it will only be up for about a week...(the time when nobody will come buy anyway)

Any thoughts.

egordon99
29th of April 2010 (Thu), 08:21
http://www.google.com/search?hl=en&rls=com.microsoft:*&ei=s4fZS5TcI8L48AaixNRZ&sa=X&oi=spellfullpage&resnum=0&ct=result&cd=2&ved=0CAYQvwUoAQ&q=javascript+onmouseover&spell=1

It's been a little while since I've coded Javascript (I mainly do PHP/backend stuff now) but one of those links should help.

Mark1
29th of April 2010 (Thu), 09:35
Thanks, but, im not looking for mouse over. Basically I want the pace to load automatically, like a pop up ad. But instead of an ad it will be a welcome page...close it and the first image of image of the gallery is already loaded to view.

Really I want 2 pages to load at once. the 'welcome" and "image one" of the gallery. I have seen it done, I just cant find the code to make it work.

egordon99
29th of April 2010 (Thu), 09:37
I think there's an onload() event or something so you can specify "stuff" to happen when the main page is loaded. One of the "stuff" can be open a new window.

Can you find a site that does this and "borrow" their code?

MaxxuM
29th of April 2010 (Thu), 12:54
Thanks, but, im not looking for mouse over. Basically I want the pace to load automatically, like a pop up ad. But instead of an ad it will be a welcome page...close it and the first image of image of the gallery is already loaded to view.

Really I want 2 pages to load at once. the 'welcome" and "image one" of the gallery. I have seen it done, I just cant find the code to make it work.

Can you show us a site where this is done? I'm not getting what exactly you're wanting to do.

dsd17
29th of April 2010 (Thu), 14:45
<body onload="popup()">

The above code calls the function from the Javascript file or if you have it embedded in the webpages. The below code is what you need to open the page in the popup, this can be pasted into an external file which contains all the javascript or embedded.

function popup() {
window.open("popuppage.html","Homepage","resizable=no,status=yes,scrollbars=yes,width=260,h eight=500");}

Mark1
29th of April 2010 (Thu), 18:46
Thanks Ill try that, but I found exactly what I am loking for. I didnt think it really existed, and didnt know exactly how to word the request. but I was looking for this... http://wowpopup.com/ The "note" is exactly what I want.

Thanks All for the help!