Hello.
I have a gallery type site that uses the following function
to display an image and some previous/next links. It is called
with <a href=”javascript?isplayImage(2,10)”>.The function is
inside scripts.js.
function DisplayPicture(nr,max)
{
document.open();
document.writeln(‘<html><head><style type=”text/css”>’);
document.writeln(‘<!–body,html{scrollbar-base-color : #756060 ;}–></style>’);
document.writeln(‘<SCRIPT language=”JavaScript” SRC=”scripts.js”><‘+’/’+’SCRIPT>’);
document.writeln(‘</head><body background=”files/background.jpg”>’);
document.writeln(‘<table width=”450″ border=”0″>’);
document.writeln(‘<tr>’);
document.writeln(‘<td width=”33%”><div align=”center”>’);
if(nr==0)
{
j=max;
}
else
{
j=nr-1;
}
document.writeln(‘<a href = “javascript:DisplayPicture(‘+j+’,’+max+’)”>Pagina anterioare</a> </div></td>’);
document.writeln(‘<td width=”33%”><div align=”center”>’);
document.writeln(‘<em>’+nr+'</em></div></td>’);
document.writeln(‘<td width=”33%”><div align=”center”>’);
if(nr==max)
{
j=0;
}
else
{
j=nr+1;
}
document.writeln(‘<a href = “javascript:DisplayPicture(‘+j+’,’+max+’)”>Pagina urmatoare</a> </div></td>’);
document.writeln(‘</tr><tr>’);
document.writeln(‘<td colspan=”3″ align=”center”><img src=”manual_reparatzii/pag_’+nr+’.jpg” width=”800″ border=”0″></td>’);
document.writeln(‘</tr><tr>’);
document.writeln(‘<td colspan=”3″ align=”center”><a href=manual_reparatzii.htm>Cuprins manual</a></td>’);
document.writeln(‘</tr>’);
document.writeln(‘</table></body></html>’);
document.close();
}
It works fine on Opera/mozilla or running from my harddrive. But it hangs up
when pushing the link in IE.
The problem seems to be with the
document.writeln(‘<SCRIPT language=”JavaScript” SRC=”scripts.js”><‘+’/’+’SCRIPT>’);
If I remove it it works but then there’s no way of getting to the other images.
Perhaps is some security stuff that I need to disable ?
You can have a look at wartburg1000.as.ro.
Thanks.