Pop-up Page

This is a discussion on "Pop-up Page" within the JavaScript Forum section. This forum, and the thread "Pop-up Page are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 15th, 2007, 13:29
New Member
Join Date: Aug 2007
Location: Northern Ireland
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Pop-up Page

Hi Guys,
Sorry if this has been posted here before, I dont have time to look as a website I am designing launches on Friday.

Anyway, I was wondering how you get a pop up page similar to if you click on Join the Show (middle right) here - http://www.q972.fm/q97/new/index.php

I know how to get a normal web-browser page to pop-up but my client wants a page similar to the example shown.

Any help would be greatly appreciated.
Chris
Reply With Quote

  #2 (permalink)  
Old Aug 15th, 2007, 13:32
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Pop-up Page

Here's a tip. When you see something you like on someone else's site, just View their source and see how they do it.

So ... viewing the source of said url ... you get this
Code: Select all
<a href="javascript:void(window.open('gallery/airshow2005/airshow2005.php','newwindow','height=460,width=550,resizable=no,status=no,scrollbars=yes'))"></a></div></td><script language=""JavaScript" type="text/JavaScript">
					
							function open97player(){
							var popurl="audio.php"
							winpops=window.open(popurl,"","width=446,height=456,status,")
							}
							
							function open97videoplayer(){
							var popurl="video.php"
							winpops=window.open(popurl,"","width=446,height=456,status,")
							}
							
							function goTabby(){
							var popurl="tabby/tabby.html"
							winpops=window.open(popurl,"","width=560,height=690,status,")
							}
							
							</script>
Reply With Quote
  #3 (permalink)  
Old Aug 15th, 2007, 13:41
New Member
Join Date: Aug 2007
Location: Northern Ireland
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Pop-up Page

Quote:
Originally Posted by karinne View Post
Here's a tip. When you see something you like on someone else's site, just View their source and see how they do it.

So ... viewing the source of said url ... you get this
Code: Select all
<a href="javascript:void(window.open('gallery/airshow2005/airshow2005.php','newwindow','height=460,width=550,resizable=no,status=no,scrollbars=yes'))"></a></div></td><script language=""JavaScript" type="text/JavaScript">
 
                            function open97player(){
                            var popurl="audio.php"
                            winpops=window.open(popurl,"","width=446,height=456,status,")
                            }
 
                            function open97videoplayer(){
                            var popurl="video.php"
                            winpops=window.open(popurl,"","width=446,height=456,status,")
                            }
 
                            function goTabby(){
                            var popurl="tabby/tabby.html"
                            winpops=window.open(popurl,"","width=560,height=690,status,")
                            }
 
                            </script>
I tried that but I couldn't find where to insert the text for the user to click on to open the page
Reply With Quote
  #4 (permalink)  
Old Aug 15th, 2007, 13:46
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Pop-up Page

well that's pretty much it there.

The important parts in bold
Code: Select all
<a href="javascript:void(window.open('gallery/airshow2005/airshow2005.php','newwindow','height=460,width=550,resizable=no,status=no,scrollbars=yes'))"></a></div></td>

<script language=""JavaScript" type="text/JavaScript">

							function open97player(){
							var popurl="audio.php"
							winpops=window.open(popurl,"","width=446,height=456,status,")
							}
							
							function open97videoplayer(){
							var popurl="video.php"
							winpops=window.open(popurl,"","width=446,height=456,status,")
							}
							
							function goTabby(){
							var popurl="tabby/tabby.html"
							winpops=window.open(popurl,"","width=560,height=690,status,")
							}
							
							</script>


The green section I would put, at the very least, in the <head> of your document.

The red part is the link to the file you want to load in the pop-up.
Reply With Quote
  #5 (permalink)  
Old Aug 15th, 2007, 13:52
New Member
Join Date: Aug 2007
Location: Northern Ireland
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Pop-up Page

http://www.bannsidersforever.com/CFCtv/test.htm

That is what I have done so far. Where do I insert the text in the code e.g. 'Click here to open the media centre' to open the page?

Sorry if I am a bit thick here
Reply With Quote
  #6 (permalink)  
Old Aug 15th, 2007, 14:02
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Pop-up Page

See the green below and you can remove the red

Code: Select all
<a href="javascript:void(window.open('CFCtv/media.htm','newwindow','height=460,width=550,resizable=no,status=no,scrollbars=yes'))">Click here to open the media centre</a></div></td>
Reply With Quote
  #7 (permalink)  
Old Aug 15th, 2007, 14:04
New Member
Join Date: Aug 2007
Location: Northern Ireland
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Pop-up Page

Quote:
Originally Posted by karinne View Post
See the green below and you can remove the red

Code: Select all
<a href="javascript:void(window.open('CFCtv/media.htm','newwindow','height=460,width=550,resizable=no,status=no,scrollbars=yes'))">Click here to open the media centre</a></div></td>
That worked a treat. Thanks very much.
Reply With Quote
  #8 (permalink)  
Old Aug 15th, 2007, 14:13
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Pop-up Page

No problem.
Reply With Quote
Reply

Tags
java

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best way to prevent access to page B except via page A? Donny Bahama PHP Forum 1 Apr 3rd, 2008 02:15
Green bar of colour at bottom of page gets bigger the more page is extended pixelgirl Web Page Design 1 Apr 1st, 2008 01:27
internal navigation, Linking from one page to a specific div in another page. Oak Web Page Design 5 Feb 8th, 2008 22:54
Linking an outside page back to previous framed page MJustison Starting Out 1 Oct 18th, 2007 17:49
A gap appears beween the Page Title and the Body Content of the page. sovereign6 Web Page Design 6 Dec 18th, 2006 19:14


All times are GMT. The time now is 23:55.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43