It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

opening smaller windows for movies.

opening smaller windows for movies.

Postby Ash on Mon Feb 13, 2006 8:03 pm

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?
User avatar
Ash
1000+ Club
 
Posts: 1020
Joined: Wed Aug 03, 2005 6:10 pm
Location: England

Postby lalalogic on Tue Feb 14, 2006 12:48 am

Hey there

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

Add

Code: Select all
<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: Select all
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.
bahbye devppl :]
lalalogic
100+ Club
 
Posts: 200
Joined: Tue Aug 16, 2005 4:02 am

Postby Ash on Tue Feb 14, 2006 9:01 am

ok I put this in
Code: Select all
<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: Select all
<EMBED src="BI_Intro_640x480.wmv" width="198" height="178" pluginspage="video.html">

Is that right?
User avatar
Ash
1000+ Club
 
Posts: 1020
Joined: Wed Aug 03, 2005 6:10 pm
Location: England

Postby lalalogic on Tue Feb 14, 2006 9:44 pm

you miss a </embed> tag at the end... you tried it?did it work?:p
bahbye devppl :]
lalalogic
100+ Club
 
Posts: 200
Joined: Tue Aug 16, 2005 4:02 am

Postby Ash on Tue Feb 14, 2006 10:22 pm

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

Code: Select all
<embed src="Videos/prologue_640x480_needs_audio.wmv" width="295" height="219" autostart="False" align="absmiddle"></embed>
User avatar
Ash
1000+ Club
 
Posts: 1020
Joined: Wed Aug 03, 2005 6:10 pm
Location: England

Postby lalalogic on Wed Feb 15, 2006 9:53 pm

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...
bahbye devppl :]
lalalogic
100+ Club
 
Posts: 200
Joined: Tue Aug 16, 2005 4:02 am

Postby Ash on Wed Feb 15, 2006 10:23 pm

So I will have to put the videos page inside the same folder as the video?
User avatar
Ash
1000+ Club
 
Posts: 1020
Joined: Wed Aug 03, 2005 6:10 pm
Location: England

Postby Ash on Wed Feb 15, 2006 11:33 pm

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.
User avatar
Ash
1000+ Club
 
Posts: 1020
Joined: Wed Aug 03, 2005 6:10 pm
Location: England

Postby lalalogic on Wed Feb 15, 2006 11:35 pm

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 :)
bahbye devppl :]
lalalogic
100+ Club
 
Posts: 200
Joined: Tue Aug 16, 2005 4:02 am

Postby lalalogic on Wed Feb 15, 2006 11:40 pm

I don't follow Ash.. Upload the pages somewhere or post the whole source code so we can help you
bahbye devppl :]
lalalogic
100+ Club
 
Posts: 200
Joined: Tue Aug 16, 2005 4:02 am

Next

Who is online

Users browsing this forum: No registered users and 7 guests