PDA

Click to See Complete Forum and Search --> : Launching new fixed sized window in IE


jasonchan
05-30-2007, 07:32 PM
I am having trouble trying to launch a videoclip in IE. I placed the video on a separate html file and trying to use javascript to launch this page with a fixed size. It works in Firefox but not in IE 6. What could possibly be the issue here?


<script type="text/javascript" language="javascript">
<!--
function makenew()
{window.open("testwindow.html","blank","toolbar=no,width=340,height=270")}
-->
</script>

<p><a href="#" onClick="makenew()">click</a></p>




fyi, didnt mean to double post...

chrispyking
05-31-2007, 02:50 PM
I use this for New windows, works in FF and IE

In the Header

<script>
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left ='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}
//-->
</script>


Within the Page


<a href="Destination.html" onclick="NewWindow(this.href,'name','520','620','no');retur n false"><img src="Thunmbnail Image" width="125" height="150" border="0" alt="If you want any/></a>

jasonchan
06-01-2007, 04:51 AM
Hmmm it's a lot more code than i expected... ill give this a try tho.

thanks again chrispyking

chrispyking
06-01-2007, 09:50 AM
Your welcome.

Not saying there isn't something smaller, but it does work..:)