Popup window with text in it



I want to have two links on a page, one a thumbnail picture and one an icon
to a plant description. I have a script that allows me to click on the
thumbnail and open a popup window with the full screen image. Now I want to
use that same script to be able to click on the icon and have a plant
description appear in the window. The catch is, I don't want the description
to be from a seperate page, i.e. I want the description to be part of the
href tag. Let me know if my question needs clarification.

What I have so far is...

In the head...

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin

function Popup(URL, SCROLL, WIDTH, HEIGHT) {
var winl= (screen.width - WIDTH) / 2;

winprops =
"left="+winl+",top=1,scrollbars="+SCROLL+",width="+(WIDTH+20)+",height="+(HEIGHT+10);

text = "<html><head><title>&copy; Woodland Gardens
Landscaping</title></head><body bgcolor=#E2ECE4";

text += "><center><img src='" + URL + "'>";

text += "</center></body></html>";

preview = window.open("", "preview", winprops);
preview.document.open();
preview.document.write(text);
preview.document.close();
}
// End -->
</script>


In the body...

<td width=290><img src="thunbergiiCrimson01.jpg"></td>
<td width=220 valign=top><i>Berberis thunbergii</i><br>Japanese barberry<p>
<div align=center><a href="javascript:Popup('thunbergii01.jpg','no', 269,
165)";><img src="thunbergii01.jpg" border=0 height=50></a>
</td>


.



Relevant Pages

  • Re: Saving Idea Spaces
    ... Of the three options you suggest--STB, icon in the SF, or an ST script, I think the latter would be more appropriate. ... Concerning your "Dialog Box Design Considerations" Idea Space, the following elements of your ideas have changed since you last saved the idea: ... I did respond, but again I was having news reader problems, so I'm not sure if the post is actually visible to everyone. ...
    (comp.lang.smalltalk.dolphin)
  • Re: Deploying shortcuts via group policy- issues
    ... policy that looks at the users desktop for the icon. ... Basically what the script does is if the EMRapplication icon does not exist- ... user already had an IE browser open then when they clicked on the ... But how do I deploy that option via Grou Policy? ...
    (microsoft.public.windows.group_policy)
  • Re: MMB - SIMPLE intro?
    ... I just tried one of the Video Tutorials from the web site ... (This is where the command line switches go) ... Then for the Interactions Icon ... Run Script. ...
    (rec.video.desktop)
  • Re: How to create hyperlink in the page already opened?
    ... No, an icon is not mandatory, you can add an entry in the Tools dropdown menu. ... I use Inno Setup as my installer. ... Creating button running a script ... var parentwin = external.menuArguments; ...
    (microsoft.public.frontpage.programming)
  • Re: MMB - SIMPLE intro?
    ... I just tried one of the Video Tutorials from the web site ... (This is where the command line switches go) ... Then for the Interactions Icon ... Run Script. ...
    (rec.video.desktop)