PDA

View Full Version : Dhtml Window



pspgamer33
03-26-2006, 02:00 AM
http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow.htm

for this script, is it possible for me to use multiple windows?
if so how?

Samsoske
03-26-2006, 02:28 AM
Maybe Just Repeat the code. Making it pop up 2 windows or how ever many times you specify the code.

Example:

<script>
if (ns6)
window.onload=new Function('loadwindow("http://www.firstsite.com",600,400)')
else
loadwindow("http://www.firstsite.com",600,400)
</script>

Then just repeat underneath....

<script>
if (ns6)
window.onload=new Function('loadwindow("http://www.secondsite.com",600,400)')
else
loadwindow("http://www.secondsite.com",600,400)
</script>

This should open 2 new windows...

pspgamer33
03-26-2006, 02:53 AM
no that does not work

jscheuer1
03-26-2006, 04:59 AM
Until this script is extensively modified, it is one DHTML window per page. You can however have multiple links on the page, each opening a different page in the one DHTML window when clicked. As it is now, onload, you are limited to one.