|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
I send e-mails to existing clients, and I wanted an HTML business card to automatically pop up, with a print button, so clients can have a hard copy business card should they want it. I'm using an HTML signature file in Outlook set up with three columns (left column is photo and navigation, middle column is the email message, right column is my news updates). From this signature file, I use (or try to use) JavaScript to call the business card pop-up. I set the pop-up to automatically close after one minute, so if the clients ignore it, it quietly goes away. I've got everything coded, and it works when I load it into Internet Explorer, but it won't work from Outlook, no matter what my security settings are. javascript: <SCRIPT LANGUAGE="JavaScript"> <!-- hide the script openWin = window.open("http://mypages.prodigy.net/myname/myPopUp.htm","childWindow","top=0,left=0,width=470,height=350,location=no,scrollbars=no,menub ars=no,toolbars=no,resizable=no"); openWin.focus(); setTimeout('openWin.close()',60000) // --> </SCRIPT> And I've put the following into the <BODY> tag: onLoad="openWin()" Can anyone help me? Thanks in advance! Darren DGBrothers@prodigy.net [This message has been edited by DGBrothers (edited 12-06-99).] [This message has been edited by DGBrothers (edited 12-06-99).] |
|
#2
|
|||
|
|||
|
Well in your onLoad event you are calling for a function named openWin(). YOu dont have a function defined in your script. Put this around your script:
<script> function popup(){ your popup coding goes here } </script> And then put this on your body tag: onLoad="popup()" Spookster |
|
#3
|
|||
|
|||
|
Sorry, Spookster.
I tried that, and not only didn't it work in Outlook, it wouldn't work in IE5 either. Maybe I'm doing something wrong. Here's what I've got in my signature file (about the top 1/3 of it, anyway): <HTML> <!---------- Begin Head --------------------> <HEAD> <BASE href=http://pages.prodigy.net/dgbrothers/index.htm> <META content="Darren G. Brothers" name=GENERATOR> <!---------- Begin Title -------------------> <TITLE>Darren Brothers - Your Residential Real Estate Consultant</TITLE> <!---------- End Title ---------------------> <SCRIPT LANGUAGE="JavaScript"> <!-- hide the script openWin = window.open("http://pages.prodigy.net/dgbrothers/PopUp.htm","childWindow","top=25,left=25,width=470,height=350,location=no,scrollbars=no,men ubars=no,toolbars=no,resizable=no"); openWin.focus(); setTimeout('openWin.close()',60000) // --> </SCRIPT> </HEAD> <!---------- End Head ----------------------> <!---------- Begin Body --------------------> <BODY aLink=#808080 bgColor=#ffffff link=#000000 vLink=#3062c3> <!---------- Begin Wrong Format Notify -----> <!--<PRE> ********************************************* ********************************************* ** NOTICE: If you can read this paragraph, ** ** we are sending you email with the wrong ** ** format. We apologize for the ** ** inconvenience. To ensure that we get ** ** it right, please forward this email to: ** ** ** ** DGBrothers@prodigy.net ** ** ** ** In the subject line of the message, ** ** please put "WRONG FORMAT". You don't ** ** have to put anything in the body of the ** ** message. With your help, we will make ** ** your email the best possible! ** ********************************************* ********************************************* </PRE>--> <!---------- End Wrong Format Notify--------> |
|
#4
|
|||
|
|||
|
Try this:
<SCRIPT LANGUAGE="JavaScript"> <!-- hide the script function winPopup() { window.open("http://pages.prodigy.net/dgbrothers/PopUp.htm","childWindow","top=25,left=25,width=470,height=350,location=no,scrollbars=no,men ubars=no,toolbars=no,resizable=no"); } // --> </SCRIPT> </HEAD> <!---------- End Head ----------------------> <!---------- Begin Body --------------------> <BODY aLink=#808080 bgColor=#ffffff link=#000000 vLink=#3062c3 onLoad="winPopup();"> There you go! Peter |
|
#5
|
|||
|
|||
|
Nope, sorry.
I cut and pasted the code exactly as you had it in your example. Again, as in Spooksters example, not only did it not work in Outlook, it stopped working when I previewed it in IE5. Anybody got any ideas on how to make a popup HTML window in Outlook 98? Can I somehow modify a dialog box to include HTML code and graphics? |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Opening pop-up from Outlook... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|