/    Sign up×
Community /Pin to ProfileBookmark

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.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@w311authorApr 22.2006 — up up up ?
Copy linkTweet thisAlerts:
@Master_ShakeApr 23.2006 — [CODE]document.writeln('<SCRIPT language="JavaScript" SRC="scripts.js"><'+'[COLOR=Red][/COLOR]/'+'SCRIPT>');[/CODE]

Try this

Master Shake
×

Success!

Help @w311 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.22,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...