[thelist] Basic JavaScript Help?

Vincent Birebent vincent.birebent at laposte.net
Wed Sep 26 06:21:25 CDT 2001


What about ? :

<head>
<stuff>
<script language="JavaScript">
<!--
function openWin1(foo) {
   n =
open('help'+foo+'.htm','_blank','width=450,height=450,menubar=no,scrollable=yes,res
izable=yes');
}
// -->
</script>
</head>

and then

<body>
A brief <a href="javascript:openWin1('1')" onMouseOver="window.status='An
explanation of the terms'; return true">explanation</a>
A brief <a href="javascript:openWin1('2')" onMouseOver="window.status='An
explanation of the terms'; return true">explanation</a>
</body>

At 12:12 26/09/2001 +0100, you wrote:
>My brain is definitely not in gear this morning (nothing to do with this
>migraine, of course...): I often use a bit of script to open a small pop-up
>on click as follows:
>
><head>
><stuff>
><script language="JavaScript">
><!--
>function openWin1() {
>   n =
>open('help.htm','_blank','width=450,height=450,menubar=no,scrollable=yes,res
>izable=yes');
>}
>// -->
></script>
></head>
>
>and then
>
><body>
>A brief <a href="javascript:openWin1()" onMouseOver="window.status='An
>explanation of the terms'; return true">explanation</a>
></body>
>
>On the page I'm working on now, I will probably need a whole series of these
>pop-ups but I'm failing to work out how to modify the script and link to
>open up help2.htm, help3.htm, etc.  The only way I can see at the moment is
>to have separate functions (function openWin2(2), function openWin2()) etc.
>
>Any pointers very gratefully received.
>
>_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
>Richard. H. Morris, Web Designers Limited
>~~ http://www.web-designers.co.uk ~~
>"I'd rather have a full bottle in front of me
>           than a full frontal lobotomy"
>_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
>
>
>
>---------------------------------------
>For unsubscribe and other options, including
>the Tip Harvester and archive of TheList go to:
>http://lists.evolt.org Workers of the Web, evolt !





More information about the thelist mailing list