Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

I want to open a new window to play a flash video.

Featured Replies

I have a flash movie id like to play in a new new window when a link is clicked.

 

I was using some javascript but it wasnt validating.

 

is there any way to do this?

 

I also lookded at lightwindow but that wasnt validating either as it was using params and caption attributes

 

Thanks for any help!

Why does it have to validate? Good, usable code is better than making a mess just so the W3C validator turns green instead of red. ;)

Popup window or normal window?

 

if pop-up maybe something like shadow box would be nicer

http://mjijackson.com/shadowbox/

 

Edit: put the correct link in :p

Dang Dizi, that shadowbox is pretty slick! I'm looking for a standards compliant modal window script for Rawkes and this fits the bill nicely! Now, I might try converting it to jQuery but I should really get on with Rawkes first… It looks like it already has a jQuery plugin! :D

Dang Dizi, that shadowbox is pretty slick! I'm looking for a standards compliant modal window script for Rawkes and this fits the bill nicely! Now, I might try converting it to jQuery but I should really get on with Rawkes first… It looks like it already has a jQuery plugin! :D

 

 

yup yup yup, it is so far the best of all those types of scripts that I have found...as it says it doesn't use work around to validate, it just validates :) So it is by far the best to my knowledge to archive the pop up window effect...and its pretty :)

  • Author

thanks a bunch! its is visually the same as lightwindow, not sure about backend, as that didnt validate!

 

will give shadowbox a go! fingers crossed!

 

Thanks Dizi

 

rachael: reason is the client unfortunately :(

  • Author

hmm, is there ayway to set the width & height of the box that opens? I am opening up a HTML file within the window as well.

You must explicitly tell Shadowbox the dimensions to use to display content other than images. This is done by adding a few parameters to the end of the rel attribute, separated by semi-colons. To specify a movie's height and width, use the height and width parameters. Note: These values must always be specified in pixels.

 

<a href="mymovie.swf" rel="shadowbox;height=140;width=120">My Movie</a>

 

I imagine the same can be said for opening HTML files :)

 

(That was stolen from the Shadowbox documentation btw)

  • Author

having some trouble getting it to work, it just loads up the file in a blank tab. hmm.

At least it opens!

 

Is the url of the file you're trying to open correct?

Can I have a look at the code/page you're using it on, Mark?

  • Author

hey guys.

 

i think there is an issue with it not working when the file has a .php extension.

 

I have a file index.html and it works when i want to open up a flv file, looks lovely.

 

But when I have the file i.e index.php it doesn't load the flv file. just sits there blank, but the images with shadow box still work. its only the flv.

 

the link is here

 

Only on that page, in the left menu, the bottom item. open close top up cover.

 

thanks

Why is it that everything that is said tyo be broken works fine for me...is there something wrong with my computer?

 

If you can't guess by that when I click on the car it pops up in the shadowbox :)

 

 

EDIT: ohh wait blonde moment swf...where is that?

  • Author

Rob.. this is ghey! i don't get that! for me the shadowbox opens up but the movie doesnt play.

 

works fine with a.html file extension just not a .php . pulling my hair out over this as i cant get the rest of the site done until this is sorted.

did you test the html version on your computer....while test the php version online? if so have you uploaded the swf to the right place?

  • Author

Hi Dizi, yeah i tested the php online.

 

its not even working regardless to the file extension now haha!

 

the link 'open/close top up cover' is linked to a file alien.flv in the folder 'gallery'.

 

it should be showing the alien.flv file.

 

the path is correct so it should be showing?

  • Author

I cannot believe i have spent the whole day on this when the problem has been right under my nose! i guess looking at the screen too much does have an effect!

 

I just took a 2 hour long bike ride, came back and seen the problem (rob helped, i just didn't read his post properly)

 

There needs to be flash player file (flvplayer.swf) in the root directory in order for the video to play.

 

Hands up, im an idiot, line up and punch me please!

 

Time to light the BBQ and sip on a San Miguel!

 

Thanks for the help

The bottom link in the list, it plays a video of an grey haired man opening the boot of the car and showing off the hinges...so what doesn't work about it?

  • Author

lol yeah it works! finally, all that for a dodgy video!

 

Why is it that everything that is said tyo be broken works fine for me...is there something wrong with my computer?

 

Im sure machine works fine! i wasnt playing with you tehe!

Interesting video actually, must have taken a while to hone that concept. I did a year of product design at University (and have a general interest in it) so things like that are cool :p

  • Author

exactly my thoughts, but when you have seen it in excess of 20 times and you cant get something to work you start to curse a lil lol!!!

 

He's a nice guy though!

yup yup yup, it is so far the best of all those types of scripts that I have found...as it says it doesn't use work around to validate, it just validates :) So it is by far the best to my knowledge to archive the pop up window effect...and its pretty :)

 

 

i love that script. very easy to implement, definitely one the best I've tried out there and it Validates!!! which is one of the main reason I use it.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.