Log in

View Full Version : :-/ Auto Popup Window



redice
10-12-2005, 06:22 PM
Hi Guys,

I want to make a popup window that will open up automatically when someone
visits my site or one of the other pages.

Could someone kindly give me the script for that.

Redice :)

Twey
10-12-2005, 07:47 PM
<!-- On page load: -->
<script type="text/javascript">
window.onload = function() { window.open("popup.htm"); }
</script>

<!-- On clicking a link: -->
<a href="www.othersite.com" onclick="window.open('popup.htm');">Click Here Now!</a>

mwinter
10-13-2005, 01:18 PM
I want to make a popup window that will open up automatically when someone visits my site or one of the other pages.You do realise that this sort of pop-up is exactly what blockers are designed to prevent, don't you?

If you need to present information to a user, a pop-up is no longer a reliable way to do that.

Mike

redice
10-13-2005, 04:58 PM
What would you suggest is the best way to present info?

Redice :)

Twey
10-13-2005, 07:10 PM
Actually, a blocker will (should?) not block a popup fired when the user clicks a link. This is standard behaviour, for usability reasons.

redice
10-13-2005, 07:47 PM
But i want to get a message across.
Most users dont tend to click on links. Whats the best way to get every
user going to the site to see the content

Redice

Twey
10-13-2005, 08:03 PM
Put it on the front page.

redice
10-13-2005, 08:16 PM
LOL.
How are those floating banners made. The ones that scroll into the middle
of the page and stop? Iv seen a few that look pretty nice with pics and all
and have a close button.

Redice

mwinter
10-13-2005, 10:15 PM
Actually, a blocker will (should?) not block a popup fired when the user clicks a link.It depends entirely upon the software and the user's preferences. Some blockers are all or nothing. Others allow more selective behaviour. Even then, it's up to the user to determine that behaviour.



How are those floating banners made.Positioned elements (usually div elements) controlled through a script. DD probably has one or two.

Mike