Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


opening smaller windows for movies.



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> HTML Forum
View previous topic :: View next topic  
Author Message
Ash
1000+ Club


Joined: 03 Aug 2005
Posts: 1018
Location: England

PostPosted: Mon Feb 13, 2006 9:03 pm    Post subject: opening smaller windows for movies. Reply with quote

I want to add links to a page I have that when clicked it open's a page that is not the size of the window before it how do I do it?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
lalalogic
100+ Club


Joined: 16 Aug 2005
Posts: 200

PostPosted: Tue Feb 14, 2006 1:48 am    Post subject: Re: opening smaller windows for movies. Reply with quote

Hey there

There's a way to do it with javascript..

Add

Code:

<SCRIPT language=JavaScript>
<!--
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</SCRIPT>


between the <head></head> tags and this in your <a> tags

Code:
onclick="MM_openBrWindow('url','','resizable=no,width=x,height=y')"
href="#"


where x is the width of your smaller page, y the height and url the page of your link.
Back to top
View user's profile Send private message
Ash
1000+ Club


Joined: 03 Aug 2005
Posts: 1018
Location: England

PostPosted: Tue Feb 14, 2006 10:01 am    Post subject: Re: opening smaller windows for movies. Reply with quote

ok I put this in
Code:

<a onclick="MM_openBrWindow('url','','resizable=no,width=640,height=480')"
href="video.html" target="_blank">Watch game trailer movie.</a> <br />


then when I click the link it opens a small page that don't open the movie and opens a normal page that has it on.

I tried embedding it in withis code:
Code:

<EMBED src="BI_Intro_640x480.wmv" width="198" height="178" pluginspage="video.html">

Is that right?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
lalalogic
100+ Club


Joined: 16 Aug 2005
Posts: 200

PostPosted: Tue Feb 14, 2006 10:44 pm    Post subject: Re: opening smaller windows for movies. Reply with quote

you miss a </embed> tag at the end... you tried it?did it work?:p
Back to top
View user's profile Send private message
Ash
1000+ Club


Joined: 03 Aug 2005
Posts: 1018
Location: England

PostPosted: Tue Feb 14, 2006 11:22 pm    Post subject: Re: opening smaller windows for movies. Reply with quote

Tried that and it still never worked do I have to have the video hosted somewhere?

Code:

<embed src="Videos/prologue_640x480_needs_audio.wmv" width="295" height="219" autostart="False" align="absmiddle"></embed>
Back to top
View user's profile Send private message Send e-mail MSN Messenger
lalalogic
100+ Club


Joined: 16 Aug 2005
Posts: 200

PostPosted: Wed Feb 15, 2006 10:53 pm    Post subject: Re: opening smaller windows for movies. Reply with quote

If the page is hosted the video has to be hosted... If you're working offline then tha video has to be in a "Videos" subfolder of the folder that contains the page of the video...
Back to top
View user's profile Send private message
Ash
1000+ Club


Joined: 03 Aug 2005
Posts: 1018
Location: England

PostPosted: Wed Feb 15, 2006 11:23 pm    Post subject: Re: opening smaller windows for movies. Reply with quote

So I will have to put the videos page inside the same folder as the video?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Ash
1000+ Club


Joined: 03 Aug 2005
Posts: 1018
Location: England

PostPosted: Thu Feb 16, 2006 12:33 am    Post subject: Re: opening smaller windows for movies. Reply with quote

I also got a message saying that dreamweaver can't play .WMV's like that. Also it still opens the bigger page and the movie is on that instead of the small one.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
lalalogic
100+ Club


Joined: 16 Aug 2005
Posts: 200

PostPosted: Thu Feb 16, 2006 12:35 am    Post subject: Re: opening smaller windows for movies. Reply with quote

src="Videos/prologue_640x480_needs_audio.wmv"

Nop, the page of the video is in a folder which has a subfolder named Videos that contains the video...

Or else write src="prologue_640x480_needs_audio.wmv" and put them in the same folder Smile
Back to top
View user's profile Send private message
lalalogic
100+ Club


Joined: 16 Aug 2005
Posts: 200

PostPosted: Thu Feb 16, 2006 12:40 am    Post subject: Re: opening smaller windows for movies. Reply with quote

I don't follow Ash.. Upload the pages somewhere or post the whole source code so we can help you
Back to top
View user's profile Send private message
Ash
1000+ Club


Joined: 03 Aug 2005
Posts: 1018
Location: England

PostPosted: Thu Feb 16, 2006 12:44 am    Post subject: Re: opening smaller windows for movies. Reply with quote

I did that and it never worked so I took a screenshot to see if I have my files right.

Back to top
View user's profile Send private message Send e-mail MSN Messenger
Ash
1000+ Club


Joined: 03 Aug 2005
Posts: 1018
Location: England

PostPosted: Thu Feb 16, 2006 1:16 am    Post subject: Re: opening smaller windows for movies. Reply with quote

Sorry for the no images it's a temp account and thats also why I neved uploaded the movie plus I could not due to space.

Page You have to click prologue.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Ash
1000+ Club


Joined: 03 Aug 2005
Posts: 1018
Location: England

PostPosted: Fri Jun 23, 2006 12:14 pm    Post subject: Re: opening smaller windows for movies. Reply with quote

This time it opens a new window that firefox cannot find the page even tho it is there and it also makes the webpage behind it turns into the page that I wanted to open in the small window so it does not work. This is the code I have.

Code:
<a href="application.html" onclick="MM_openBrWindow('application.html','','resizable=no,width=500,height=500')">application</a>

I doubt it's right but if it's not can you tell me where I go wrong.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
webmaster
Site Admin


Joined: 17 Aug 2004
Posts: 3647
Location: Sweden

PostPosted: Fri Jun 23, 2006 12:44 pm    Post subject: Re: opening smaller windows for movies. Reply with quote

I can't understand what you are saying, a new window is popped up, but the page in it can't be shown?
Back to top
View user's profile Send private message Visit poster's website
Ash
1000+ Club


Joined: 03 Aug 2005
Posts: 1018
Location: England

PostPosted: Fri Jun 23, 2006 2:13 pm    Post subject: Re: opening smaller windows for movies. Reply with quote

The new window that opens cannot be found by firefox and the webpage that had the link you clicked to open the new window changes to the file that should be the small window.

This is what it does.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> HTML Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap