Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

69 users online



Need a little help with this scipt

Need a little help with this scipt

Currently viewing this thread: 1 (0 members and 1 guests)


wookiee2cu

wookiee2cu

Neverside Newbie
Status: Offline!

Need a little help with this scipt

Hey all, I came across this free script for centering pop up's and it works great but I want to disable the ability to resize the popup. here is the script:

Code:

<script language="javascript">

/*
Auto center window script- Eric King (http://redrival.com/eak/index.shtml)
Permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

</script>

and here is the code in the body for the pop up:

Code:

<a href="slideshowweb.html" class="style1" onclick="NewWindow(this.href,'slideshowsmall','320','240','no');return false">Dial-up</a>

Any ideas? I have tried removing " ,resizable' " from the script but then that causes the pop up to be a full page. I'm not very good with scripts and I know it's got to be something easy. I tried tracking down the creator of the script but any links I found go to some insurance website. Thanks in advance for any suggestions you may have!

Waldir

Waldir

God's Son
Status: Offline!
Code:

<script language="javascript">

/*
Auto center window script- Eric King (http://redrival.com/eak/index.shtml)
Permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable='+null+''
win = window.open(mypage,myname,settings)
}

</script>

___________________

"The secret to creativity is knowing how to hide your sources." -- Albert Einstein

wookiee2cu

wookiee2cu

Neverside Newbie
Status: Offline!

Thanks Waldir! At first I thought that was quote marks after the +null+ which didn't work then I realized it was two single marks. Thanks again!!

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.017 seconds.