Forum Moderators: open
<script language="javascript" type="text/javascript">
<!--
function DisplayImage(picURL,picWidth,picHeight){
newWindow=window.open(picURL,'newWin','toolbar=no,width='+picWidth+',
height='+picHeight)
newWindow.document.write('<html><head><\/head><body background=
"'+picURL+'"><\/body><\/html>')
newWindow.resizeBy(picWidth-newWindow.document.body.clientWidth,
picHeight-newWindow.document.body.clientHeight)
newWindow.focus()
}
//-->
</script>
any replies/help are appreciated
Have you tried to replace
<body background="'+picURL+'"><\/body>
with something like
<body style="margin:0; padding:0"><object ...><param ...><embed ...><\/embed><\/object><\/body>
You will have to fill in the object and embed information with parameters for your video. Plenty of examples on the web.
see the page source code at <snip>
it's the link marked Test
Thanks again..
[edited by: engine at 8:47 am (utc) on June 28, 2004]
[edit reason] No urls, thanks. See TOS [webmasterworld.com] [/edit]
JavaScript and Java are two very different things. Java is a full blown programming language, which needs a separate interpreter to run. JavaScript is a nice and simple script language that can be embedded into web pages to add some interactivity to otherwise static html pages.
Anyway: the problem is most likely caused by line breaks inside the document.write-string. You can either remove all the line breaks and put the whole string on 1 line, or issue several document.writes:
newWindow.document.write('<html><head><title>title here</title><\/head>');
newWindow.document.write('<body style="margin:0; padding:0">');
newWindow.document.write('<object ...>');
[...]
That should work...
That should get you going!