PDA

View Full Version : javascript help


kvk007
9-1-02, 04:07 AM
Well i created popUp code from javascript, and i don't know how to make scroll bar in it, or re-size it. any help?


function pop_up_side(x, y, w, h, website)
{
var pop = ",left=" + x + ",top=" + y + ",width=" + w + ",height=" + h;
popup = window.open (website, "MenuPopup", pop);
}


thanks in advance guys.

BerksWebGuy
9-1-02, 12:10 PM
You can try something like this:

<SCRIPT language="javascript">
<!-- hide javascript

var winOpts = 'RESIZEABLE=yes,STATUS=NO,TOOLBAR=NO,LOCATION=NO,D IRECTORIES=NO,COPYHISTORY=NO,MENU=NO,SCROLLBARS=YE S,TOP=20,LEFT=20,WIDTH=375,HEIGHT=390';
function popUp(pPage) {
popUpWin = window.open(pPage,'popWin',winOpts);
}

// done hiding -->


And then:

<a href="javascript:popUp('/popup.html')"></a>


Good Luck :D

kvk007
9-2-02, 01:57 PM
thanks, but I tried it on my script, and it does not work! I actually also tried setting "1" instead of yes, but it doesn't work either!

I declared the new variable, and added it to the function too.

BerksWebGuy
9-2-02, 02:27 PM
Check out this page...

http://javascript.internet.com/generators/popup-window.html