We were annoyed at actinics handling of extended popups, so i knocked this up. Various code cobbled together from the intearweb. It makes a popup window auto resize, to the exact dims of an image passed into it. The code ignores the numbers passed to it by actinic. Clicking the image in the popup closes the window.
nice and clean.
Warning: produced in a factory where nuts are handled.
after you save this file, set it as the default popup code in your Design > Options > default extended info template.
/me tips hat
nice and clean.
Warning: produced in a factory where nuts are handled.
HTML Code:
<HTML> <HEAD> <Actinic:WINDOW WIDTH="NETQUOTEVAR:INFOIMAGEWIDTH" HEIGHT="NETQUOTEVAR:INFOIMAGEHEIGHT"/> <TITLE>NETQUOTEVAR:PAGETITLE</TITLE> <Actinic:BASEHREF VALUE="NETQUOTEVAR:BASEHREF"/> <script language='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 language='javascript'> document.write( "<A HREF=\"javascript:window.close();\"><IMG SRC=\"NETQUOTEVAR:INFOIMAGE\" WIDTH=NETQUOTEVAR:INFOIMAGEWIDTH HEIGHT=NETQUOTEVAR:INFOIMAGEHEIGHT border=\"0\"></a>" ); </script> </BODY> </HTML>
/me tips hat
Comment