Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Old 03-05-2007, 12:26 AM Popup Window help
Extreme Talker

Posts: 189
Trades: 0
here is the javascript code

Code:
<script language="JavaScript">

var newWindow = null;

function closeWin(){
    if (newWindow != null){
        if(!newWindow.closed)
            newWindow.close();
    }
}

function popUpWin(url, type, strWidth, strHeight){
    
    closeWin();
    
    if (type == "fullScreen"){
        strWidth = screen.availWidth - 10;
        strHeight = screen.availHeight - 160;
    }
    
    var tools="";
    if (type == "standard" || type == "fullScreen") tools = "resizable,toolbar=yes,location=yes,scrollbars=yes,menubar=yes,width="+strWidth+",height="+strHeight+",top=0,left=0";
    if (type == "console") tools = "resizable,toolbar=no,location=no,scrollbars=no,width="+strWidth+",height="+strHeight+",left=0,top=0";
    newWindow = window.open(url, 'newWin', tools);
    newWindow.focus();
}
</script>
and here is the link you can use to use that code

HTML Code:
<a href="http://notmine.com" target="popUpWin" onclick="popUpWin(this.href,'console',400,600);return false;">Trial</a>
can someone edit the code so it has the scrollbar (the one on the side of the page) so people can scroll down.
simster is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-05-2007, 02:22 AM Re: Popup Window help
pitbull82's Avatar
Super Talker

Posts: 147
Name: Marcin Nabiałek
Location: Poland, Częstochowa
Trades: 0
You should simple change scrollbars=no into scrollbars=yes - you will enable both scrollbars - there's no possibility (as far as I am concerned) to enable only one of them.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
pitbull82 is offline
Reply With Quote
View Public Profile Visit pitbull82's homepage!
 
Old 03-05-2007, 09:59 AM Re: Popup Window help
Junior Talker

Posts: 2
Trades: 0
Absolutely what he said is correct just change it scrollbars=yes
you can get it immediately...
Got it ?
Regards,
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
joshua77 is offline
Reply With Quote
View Public Profile
 
Old 03-05-2007, 10:18 PM Re: Popup Window help
Extreme Talker

Posts: 189
Trades: 0
yes i have done it
simster is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Popup Window help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21157 seconds with 12 queries