Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 9th, 2003, 10:20 AM
Authorized User
 
Join Date: Aug 2003
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts
Default Hey, JavaScript guru

I know this is an ASP Database forum but I get a lot of JavaScripts from here. So, can anyone tell me how to close a popup - that I've opened with a mouseover - by doing a mouseout? The following does not work. I want to open Duration Rules when user hovers over image then close it when user moves away. The window.close closes the window with the image on it. How do I make it close the popup?

<SCRIPT language="JavaScript">
<!--
function openDurationRules() {
    open("DurationRules.htm","DurationRules","resize=o ff,titlebar=true,toolbar=no,width=550,height=240")
}

function closeDurationRules() {
    window.close("DurationRules")
}

//-->
</SCRIPT>

<img onMouseOver="openDurationRules()" onMouseOut="closeDurationRules()" src="../Images/DurRules.jpg">
 
Old September 9th, 2003, 11:01 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

<SCRIPT language="JavaScript">
<!--
var m_window;
function openDurationRules() {
    m_window = window.open("DurationRules.htm","DurationRules","r esize=off,titlebar=true,toolbar=no,width=550,heigh t=240")
}

function closeDurationRules() {
    m_window.close();
}

//-->
</SCRIPT>

Peter
 
Old September 11th, 2003, 08:35 AM
Authorized User
 
Join Date: Aug 2003
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yep, that's what I need. Thanks man.





Similar Threads
Thread Thread Starter Forum Replies Last Post
beginner needs guru - hit counter question badgolfer Classic ASP Basics 1 November 20th, 2003 09:51 AM
SQL syntax for my query - guru needed badgolfer Access 2 September 20th, 2003 01:52 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.