#1 (permalink)  
Old 02-21-2008, 08:11 PM
Registered User
 
Join Date: Feb 2008
Posts: 1
new video window

I am updating a few things on my site and I am adding video. I was wondering how I ccan make my videos to popup into an individual window, that fits tight around the video; instead of embedding it on my site or linking it to youtube. They have it on the smashing pumpkins website. smashingpumpkins.com/videos

thank you.
Reply With Quote

  #2 (permalink)  
Old 02-22-2008, 07:06 AM
Leprakawn's Avatar
Moderator
 
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,124
Send a message via AIM to Leprakawn Send a message via Yahoo to Leprakawn
Craig:

First, thanks for posting an original question!

There are several ways of doing this, and here are two methods I have used:

[head]<script>
function open_window1(url) {
mywin = window.open(url,"*window title*",'toolbar=0,location=0,directories=0,status =yes,menubar=0,scrollbars=1,resizable=0,width=270, height=600,top=30,left=5');
}
</script>[/head]

Code:
<a href="javascript:open_window('http://www.page.php'">
OR

[link]<a href="javascript:windowHandle=window.open('http://www.page.php','*window_title*','top=*some #*,left=*some #*,width=*some #*,height=*some #*,scrollbars=no');windowHandle.focus()">[/link]

The benefit of the first example is that all of your secondary windows will open in the same secondary window, and they will all have the same size. The benefit of the second code is that you can change your secondary window size; however, in order to make sure that happens, you will need to give each window a separate name. (Meaning that you will have multiple secondary windows... unless you do it like the photos page here, which is under Services.)

Hope this helps!!
__________________
Like my spiffy, unique signature?
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ

Last edited by Leprakawn; 02-22-2008 at 07:09 AM.
Reply With Quote
  #3 (permalink)  
Old 02-22-2008, 11:57 AM
Leprakawn's Avatar
Moderator
 
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,124
Send a message via AIM to Leprakawn Send a message via Yahoo to Leprakawn
BTW, here is some more info about these examples: Using the window.open method
__________________
Like my spiffy, unique signature?
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ

Last edited by Leprakawn; 02-23-2008 at 05:00 AM.
Reply With Quote
  #4 (permalink)  
Old 03-22-2008, 11:44 PM
zoul's Avatar
Moderator
 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 70
Send a message via AIM to zoul
unless I'm a month late ... the smashingpumpkins website uses a 'lightbox' style popup, which is just a DIV that is centered on the page and 'floats' above everything ... it's not a 'real' popup.

There are various Javascript libraries out there that do this, one is Lightbox (Hence the 'lightbox style' comment) and another is ThickBox ...


Each of those sites links out to other libraries which are similar in nature.

Both are themable or skinnable.

-- David
__________________
-- David Higgins
http://www.fragmentedcode.com
http://www.zoulcreations.com
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Window Targeting Leprakawn Programming and Scripting 12 03-04-2008 09:54 AM
Video Formats curtiss Off-Topic 0 07-03-2007 08:32 AM
Can I set a new window size in an email link? Smiling Ogre Programming and Scripting 3 05-02-2007 07:09 PM
Email information window? ehbowen Programming and Scripting 2 03-17-2007 08:38 AM
Posting Video sincerly_juicy Programming and Scripting 1 07-04-2006 12:09 PM


All times are GMT -5. The time now is 07:26 PM.

 
Bitrix
Clicky Web Analytics
CloudContacts
Maxtango


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter