S
skim1114
I have this code in my popup window, which works perfectly except that
I need it to display a new title for every image.
Here the popup window code:
<HTML>
<HEAD>
<TITLE>DETAIL</TITLE>
<script language='javascript'>
var temp=self.location.href.split("?");
var picUrl = (temp.length>1)?temp[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-1);
self.focus();
};
</script>
</HEAD>
<BODY bgcolor="#FFFFFF" onload='fitPic();' topmargin="0"
marginheight="0" leftmargin="0" marginwidth="0">
<script language='javascript'>
document.write( "<img src='" +picUrl +"' border=0>" );
</script>
</BODY>
</HTML>
I know it's somewhere in the document.write part, but i'm not sure. So
if my image link is:
javascriptopupPic('images/large1/detail/6detail_03.jpg','new popup
title')
It will insert the image and place in the new title.
Thanks
I need it to display a new title for every image.
Here the popup window code:
<HTML>
<HEAD>
<TITLE>DETAIL</TITLE>
<script language='javascript'>
var temp=self.location.href.split("?");
var picUrl = (temp.length>1)?temp[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-1);
self.focus();
};
</script>
</HEAD>
<BODY bgcolor="#FFFFFF" onload='fitPic();' topmargin="0"
marginheight="0" leftmargin="0" marginwidth="0">
<script language='javascript'>
document.write( "<img src='" +picUrl +"' border=0>" );
</script>
</BODY>
</HTML>
I know it's somewhere in the document.write part, but i'm not sure. So
if my image link is:
javascriptopupPic('images/large1/detail/6detail_03.jpg','new popup
title')
It will insert the image and place in the new title.
Thanks