jimdavenport2001
12-05-2007, 09:22 AM
1) Script Title:
Modeless Window
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex8/modelesswin.htm
3) Describe problem:
Ok, here is the part I used
<script>
function modelesswin(url,mwidth,mheight){
if (document.all&&window.print) //if ie5
eval('window.showModelessDialog(url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px")')
else
eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
}
//configure URL and window dimensions (width/height)
modelesswin("http://www.davenporthall.com/_includes/musicplayer.htm",320,240)
</script>
My question is how can I keep the window in place when the user clcks on the next page in my site. I have tried 100's different scripts and none function like this one. I like this version because it was simple. I want to open a new window that contains a music playlist that people can listen to while browsing my site. But not keep reloading the playlist each time they navigate to a new page. Please keep it simple I'm very new to scripting but learning.
Thanks...
Modeless Window
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex8/modelesswin.htm
3) Describe problem:
Ok, here is the part I used
<script>
function modelesswin(url,mwidth,mheight){
if (document.all&&window.print) //if ie5
eval('window.showModelessDialog(url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px")')
else
eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
}
//configure URL and window dimensions (width/height)
modelesswin("http://www.davenporthall.com/_includes/musicplayer.htm",320,240)
</script>
My question is how can I keep the window in place when the user clcks on the next page in my site. I have tried 100's different scripts and none function like this one. I like this version because it was simple. I want to open a new window that contains a music playlist that people can listen to while browsing my site. But not keep reloading the playlist each time they navigate to a new page. Please keep it simple I'm very new to scripting but learning.
Thanks...