PDA

View Full Version : Pop-it menu



Rman
04-17-2005, 11:47 AM
http://www.dynamicdrive.com/dynamicindex1/popit.htm

I wonder if anyone knows of a script similar to the pop-it menu at the link offered above that will allow for a link that opens 2 windows at once...such as is achieved with the code below?

<A HREF="1.htm" onClick="window.open('2.htm', 'newwindow', 'height=500,width=500, toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,directiories=no,status=no')")">Both</A>

Thanks,

Rman

jscheuer1
04-17-2005, 03:23 PM
With a little care taken to nest double quotes and single quotes in such a way as to not break the script, this script already can do that. Here is an example how:
linkset[0]='<a href="http://dynamicdrive.com">Dynamic Drive</a>'
linkset[0]+='<hr>' //Optional Separator
linkset[0]+='<a href="http://www.javascriptkit.com" onClick="window.open(\'http://www.google.com\', \'newwindow\', \'height=500,width=500, toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,directiories=no,status=no\')">JavaScript Kit &amp; Google</a>'
linkset[0]+='<a href="http://www.codingforums.com">Coding Forums</a>'
linkset[0]+='<a href="http://www.cssdrive.com">CSS Drive</a>'
linkset[0]+='<a href="http://freewarejava.com">Freewarejava</a>'