| View previous topic :: View next topic |
| Author |
Message |
Ash 1000+ Club

Joined: 03 Aug 2005 Posts: 1018 Location: England
|
Posted: Mon Feb 13, 2006 9:03 pm Post subject: opening smaller windows for movies. |
|
|
| 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 |
|
 |
|
|
lalalogic 100+ Club
Joined: 16 Aug 2005 Posts: 200
|
Posted: Tue Feb 14, 2006 1:48 am Post subject: Re: opening smaller windows for movies. |
|
|
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 |
|
 |
Ash 1000+ Club

Joined: 03 Aug 2005 Posts: 1018 Location: England
|
Posted: Tue Feb 14, 2006 10:01 am Post subject: Re: opening smaller windows for movies. |
|
|
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 |
|
 |
lalalogic 100+ Club
Joined: 16 Aug 2005 Posts: 200
|
Posted: Tue Feb 14, 2006 10:44 pm Post subject: Re: opening smaller windows for movies. |
|
|
| you miss a </embed> tag at the end... you tried it?did it work?:p |
|
| Back to top |
|
 |
Ash 1000+ Club

Joined: 03 Aug 2005 Posts: 1018 Location: England
|
Posted: Tue Feb 14, 2006 11:22 pm Post subject: Re: opening smaller windows for movies. |
|
|
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 |
|
 |
lalalogic 100+ Club
Joined: 16 Aug 2005 Posts: 200
|
Posted: Wed Feb 15, 2006 10:53 pm Post subject: Re: opening smaller windows for movies. |
|
|
| 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 |
|
 |
Ash 1000+ Club

Joined: 03 Aug 2005 Posts: 1018 Location: England
|
Posted: Wed Feb 15, 2006 11:23 pm Post subject: Re: opening smaller windows for movies. |
|
|
| So I will have to put the videos page inside the same folder as the video? |
|
| Back to top |
|
 |
Ash 1000+ Club

Joined: 03 Aug 2005 Posts: 1018 Location: England
|
Posted: Thu Feb 16, 2006 12:33 am Post subject: Re: opening smaller windows for movies. |
|
|
| 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 |
|
 |
lalalogic 100+ Club
Joined: 16 Aug 2005 Posts: 200
|
Posted: Thu Feb 16, 2006 12:35 am Post subject: Re: opening smaller windows for movies. |
|
|
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  |
|
| Back to top |
|
 |
lalalogic 100+ Club
Joined: 16 Aug 2005 Posts: 200
|
Posted: Thu Feb 16, 2006 12:40 am Post subject: Re: opening smaller windows for movies. |
|
|
| I don't follow Ash.. Upload the pages somewhere or post the whole source code so we can help you |
|
| Back to top |
|
 |
Ash 1000+ Club

Joined: 03 Aug 2005 Posts: 1018 Location: England
|
Posted: Thu Feb 16, 2006 12:44 am Post subject: Re: opening smaller windows for movies. |
|
|
I did that and it never worked so I took a screenshot to see if I have my files right.
 |
|
| Back to top |
|
 |
Ash 1000+ Club

Joined: 03 Aug 2005 Posts: 1018 Location: England
|
Posted: Thu Feb 16, 2006 1:16 am Post subject: Re: opening smaller windows for movies. |
|
|
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 |
|
 |
Ash 1000+ Club

Joined: 03 Aug 2005 Posts: 1018 Location: England
|
Posted: Fri Jun 23, 2006 12:14 pm Post subject: Re: opening smaller windows for movies. |
|
|
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 |
|
 |
webmaster Site Admin

Joined: 17 Aug 2004 Posts: 3647 Location: Sweden
|
Posted: Fri Jun 23, 2006 12:44 pm Post subject: Re: opening smaller windows for movies. |
|
|
| 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 |
|
 |
Ash 1000+ Club

Joined: 03 Aug 2005 Posts: 1018 Location: England
|
Posted: Fri Jun 23, 2006 2:13 pm Post subject: Re: opening smaller windows for movies. |
|
|
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 |
|
 |
|