Forum Moderators: open

Message Too Old, No Replies

menuless window

         

duneglow

3:40 pm on Apr 8, 2008 (gmt 0)

10+ Year Member



i want to open a swf website file on a full menuless browser window sort of like a pop up window I know that this can be done with java script, but most scripts that do this that i've come across, require an onclick to make it happen I'd like this to happen as soon as the user enters the site.

this is a example of what I want. The home page says to click on "enter". thats exactly what I need but with out the onclick , how can I make this happen.?

thank you in advance

[edited by: tedster at 11:28 pm (utc) on April 8, 2008]

httpwebwitch

4:05 pm on Apr 8, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hey duneglow,

That effect is done by opening a new window using javascript, in an "onclick" event as you said.

You could take the same script and put it in the "onload" event of the <body> instead of the "onclick" event of a link. But be forewarned that most popup blockers will prevent that from happening.

Hence why so many all-flash sites have those splash pages - the popup blockers require user interaction before opening a new window.

[edited by: tedster at 11:28 pm (utc) on April 8, 2008]

duneglow

4:27 pm on Apr 8, 2008 (gmt 0)

10+ Year Member



I see, I didn't think about the popup blocker factor. thanks httpwebwitch, onclick will have to do.

:)

duneglow

4:33 pm on Apr 8, 2008 (gmt 0)

10+ Year Member



but just in case my client wants it anyways, can you show me an example code of an onload code to display a url in such manner?

httpwebwitch

4:52 pm on Apr 8, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member




<body onload="window.open('yourpage.html',null,'status=no,toolbar=no,menubar=no,location=no,fullscreen=yes')">

duneglow

5:07 pm on Apr 8, 2008 (gmt 0)

10+ Year Member



Very nice.

Thank you httpwebwitch. :)