Forum Moderators: open

Message Too Old, No Replies

JS Popup with Opera Attributes

         

ControlZ

7:15 pm on Mar 16, 2004 (gmt 0)

10+ Year Member



I am attempting to find a way to modify an existing JavaScript in order to control parameters in Opera.

The current parameters I have set work fine in IE, but Opera adds a scrollbar and the window width is not quite correct. Anyone know of a way to modify the script for Opera or know of an existing JS already set to take in consideration people who browse with Opera?

Below is my current script which does not work well in Opera 7.0

<script language="JavaScript">
<!--

<!--
function ProductWindow() { return (false) }

function Opener2004() { javascript:window.open('logo-pop.html','ImageWindow','height=300,width=400,scrollbars=notoolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,')};

// -->

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>

Rambo Tribble

3:56 am on Mar 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You're missing a comma between scrollbars=no and toolbar=no. I believe, however, that in my tests with Opera it added a toolbar if content approached the window limits, regardless of the scrollbars=no specification. It's been a while, so I don't really remember. Anyway, try the comma first, then increase the window size.

ControlZ

5:23 am on Mar 17, 2004 (gmt 0)

10+ Year Member



Rambo, you suggestion to play around with the new window size was the solution. The missing comma did not have any effect on Opera. Within 10 mins I got the new pop-up window to format nicely in both IE and Opera. I am afriad to look at Mac or Mozilla! :)

I guess I was looking for a difficult solution to an easy problem to solve.

Thanks bro!