|
It is currently Mon Dec 01, 2008 5:51 pm
|
View unanswered posts | View active topics
|
Page 1 of 1
|
[ 15 posts ] |
|
| Author |
Message |
|
Ash
|
Post subject: opening smaller windows for movies. Posted: Mon Feb 13, 2006 9:03 pm |
|
 |
| 1000+ Club |
 |
Joined: Wed Aug 03, 2005 7:10 pm Posts: 1018 Location: England
|
|
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?
_________________
|
|
| Top |
|
 |
|
lalalogic
|
Post subject: Posted: Tue Feb 14, 2006 1:48 am |
|
 |
| 100+ Club |
Joined: Tue Aug 16, 2005 5:02 am Posts: 200
|
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.
_________________ bahbye devppl :]
|
|
| Top |
|
 |
|
Ash
|
Post subject: Posted: Tue Feb 14, 2006 10:01 am |
|
 |
| 1000+ Club |
 |
Joined: Wed Aug 03, 2005 7:10 pm Posts: 1018 Location: England
|
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?
_________________
|
|
| Top |
|
 |
|
lalalogic
|
Post subject: Posted: Tue Feb 14, 2006 10:44 pm |
|
 |
| 100+ Club |
Joined: Tue Aug 16, 2005 5:02 am Posts: 200
|
|
you miss a </embed> tag at the end... you tried it?did it work?:p
_________________ bahbye devppl :]
|
|
| Top |
|
 |
|
Ash
|
Post subject: Posted: Tue Feb 14, 2006 11:22 pm |
|
 |
| 1000+ Club |
 |
Joined: Wed Aug 03, 2005 7:10 pm Posts: 1018 Location: England
|
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>
_________________
|
|
| Top |
|
 |
|
lalalogic
|
Post subject: Posted: Wed Feb 15, 2006 10:53 pm |
|
 |
| 100+ Club |
Joined: Tue Aug 16, 2005 5:02 am Posts: 200
|
|
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 :]
|
|
| Top |
|
 |
|
Ash
|
Post subject: Posted: Wed Feb 15, 2006 11:23 pm |
|
 |
| 1000+ Club |
 |
Joined: Wed Aug 03, 2005 7:10 pm Posts: 1018 Location: England
|
|
So I will have to put the videos page inside the same folder as the video?
_________________
|
|
| Top |
|
 |
|
Ash
|
Post subject: Posted: Thu Feb 16, 2006 12:33 am |
|
 |
| 1000+ Club |
 |
Joined: Wed Aug 03, 2005 7:10 pm Posts: 1018 Location: England
|
|
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.
_________________
|
|
| Top |
|
 |
|
lalalogic
|
Post subject: Posted: Thu Feb 16, 2006 12:35 am |
|
 |
| 100+ Club |
Joined: Tue Aug 16, 2005 5:02 am Posts: 200
|
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 :]
|
|
| Top |
|
 |
|
lalalogic
|
Post subject: Posted: Thu Feb 16, 2006 12:40 am |
|
 |
| 100+ Club |
Joined: Tue Aug 16, 2005 5:02 am Posts: 200
|
|
I don't follow Ash.. Upload the pages somewhere or post the whole source code so we can help you
_________________ bahbye devppl :]
|
|
| Top |
|
 |
|
Ash
|
Post subject: Posted: Thu Feb 16, 2006 12:44 am |
|
 |
| 1000+ Club |
 |
Joined: Wed Aug 03, 2005 7:10 pm Posts: 1018 Location: England
|
I did that and it never worked so I took a screenshot to see if I have my files right.

_________________
|
|
| Top |
|
 |
|
Ash
|
Post subject: Posted: Thu Feb 16, 2006 1:16 am |
|
 |
| 1000+ Club |
 |
Joined: Wed Aug 03, 2005 7:10 pm Posts: 1018 Location: England
|
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.
_________________
|
|
| Top |
|
 |
|
Ash
|
Post subject: Posted: Fri Jun 23, 2006 12:14 pm |
|
 |
| 1000+ Club |
 |
Joined: Wed Aug 03, 2005 7:10 pm Posts: 1018 Location: England
|
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.
_________________
|
|
| Top |
|
 |
|
webmaster
|
Post subject: Posted: Fri Jun 23, 2006 12:44 pm |
|
 |
| Site Admin |
 |
Joined: Tue Aug 17, 2004 2:07 pm Posts: 2484 Location: Sweden
|
|
I can't understand what you are saying, a new window is popped up, but the page in it can't be shown?
|
|
| Top |
|
 |
|
Ash
|
Post subject: Posted: Fri Jun 23, 2006 2:13 pm |
|
 |
| 1000+ Club |
 |
Joined: Wed Aug 03, 2005 7:10 pm Posts: 1018 Location: England
|
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.

_________________
|
|
| Top |
|
 |
|
Page 1 of 1
|
[ 15 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 8 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|
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:
|
|
|