Problem:
After clicking on a link a new window shall open and play an embedded wmv-file.
So far okey, but this embedded video is to be automatically resized to a larger size than it actually is (e.g. to 200%). It works with IE, but FF only enlarges the player size and not the video size itself, so that I end up with the small original size video screen in a large media player. Anybody know how to solve that?
Had some problems myself with running mpg file in FF with IE running fine. My research found that FF seems to like running these babies using javascript rather than embedding in html. I used the the code below to get it running in both browsers. Haven't played much with the size but you might want to try putting your code into javascript using the format below. If that doesn't work, you could try tweaking the code below with the size you need.
The following code (in independent js file) works in MSIE and Mozilla/Firefox using a popup:
from html launching popup:
inside <head> tag--
<script language="JavaScript" type="text/javascript" src="js/yourJSFileName.js"></script>
inside <body> tag--
<a href="#" onclick="window.focus()">View Movie Clip</a>
from popup html:
<script language="JavaScript" type="text/javascript">insertMovie();</script>
code in yourJSFileName.js file:
function focus(){
window.open("sdMovie1Popup.html", "popupFields", "toolbar=0, location=0, status=0, menubar=0, scrollbars=0, resizable=1, width=610, height=430");
}
Unfortunately, using JavaScript doesn't fix the problem in Firefox in which the video does not resize to the player. I'm also trying to find the solution to that problem.
And window.focus() brings the current window to the front. The function should be named something else, such as focusVideo.
The duplication of some options is for cross-browser compatibility. I believe Firefox uses the embed while IE uses the object.
For original Christian music, chat, online church, counseling, and webmaster resources, visit:
http://livingsounds.org
Bookmarks