I haven’t been through your JS yet, figured id offer an option. If you are
just displaying an image, could you not just get the height and width of the
image and use that for the height and width of the popup call?

I use imagecr3 to do just that on occasion. That, of course will only work
if you only want to display an image and don’t mind the margins.

I'll take a look at your js in a bit if you don’t want to do that.

..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com


-----Original Message-----
From: dave [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 22, 2005 8:47 PM
To: CF-Talk
Subject: js popup ? damn that ie!!!!!

trying to utalize a self sizing popup window, see it here:
http://65.36.226.10/content/reelspecs.cfm on available colors.
works everywhere but ie of course

code is:
head section:
<!-- popup script -->
<script type="text/javascript">
   function PopupPic(sPicURL) {
     window.open( "popup.cfm?"+sPicURL, "",
     "resizable=1,HEIGHT=200,WIDTH=200");
   }
</script> 

link:
javascript:PopupPic('#request.homepage#/images/reelcolors/canyon/CanyonBigGa
me_Front_Black.jpg')" >

popup page:
 <script type="text/javascript">
   var arrTemp=self.location.href.split("?");
   var picUrl = (arrTemp.length>0)?arrTemp[1]:"";
   var NS = (navigator.appName=="Netscape")?true:false;

     function FitPic() {
       iWidth = (NS)?window.innerWidth:document.body.clientWidth;
       iHeight = (NS)?window.innerHeight:document.body.clientHeight;
       iWidth = document.images[0].width - iWidth;
       iHeight = document.images[0].height - iHeight;
       window.resizeBy(iWidth, iHeight);
       self.focus();
     };
 </script>
</head>
<body bgcolor="#000000" onload='FitPic();' topmargin="0"  
marginheight="0" leftmargin="0" marginwidth="0">
 <script type="text/javascript">
 document.write( "<img src='" + picUrl + "' border=0>" );
 </script>

Is it possible to work in ie or should i just get made, piss and moan,
scream, kick things and flip bill the bird?

~Dave the disruptor~
good sites - make money getting rid of ie :)
http://explorerdestroyer.com/
http://www.killbillsbrowser.com/ 





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:225041
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to