Page 1 of 1

banner in HTML nugget

Posted: Wed Jan 05, 2005 10:31 pm
by al1us
hi, just got serendipity working. its the best! but i have a problem: a try to put banner code in a HTML nugget field and when i go to the main page - nothing appears there. no banner, nothing.. anybody knows how to fix it?
the source of the banner looks like this:
<p align="center"><script LANGUAGE="JavaScript"><!--
random = parseInt(Math.random()*10000)
banner = '<iframe src=\"http://www.linkexchange.ee/120x60/engine.php3?'
banner += 'id=b1004&pg=' + random + '&ie=1\" frameborder=0 width=120 height=60 marginwidth=0 marginheight=0 scrolling=no >'
banner += '<A href=\"http://www.linkexchange.ee/120x60/go.php3?'
banner += 'id=b1004&pg=' + random + '\"><IMG alt=\"ELE 120x60\" border=0 '
banner += 'width=120 height=60 src=\"http://www.linkexchange.ee/120x60/engine.php3?'
banner += 'id=b1004&pg=' + random + '\" border=0></A></iframe><br>'
banner += '<a href=\"http://www.linkexchange.ee/\"><font size=\"2\">ELE 120x60</font></a>'
document.write(banner)
// --></script> <NOSCRIPT><IFRAME src="http://www.linkexchange.ee/120x60/engin ... &pg=1&ie=1" frameborder="0" width="120" height="60" marginwidth="0" marginheight="0" scrolling="no"> <a
href="http://www.linkexchange.ee/120x60/go.ph ... pg=1"><img
alt="ELE 120x60" border="0" width="120" height="60"
src="http://www.linkexchange.ee/120x60/engin ... &pg=1"></a> </IFRAME><br>
<a href="http://www.linkexchange.ee/"><font size="2">ELE 120x60</font></a></NOSCRIPT></p>
tnx

Posted: Thu Jan 06, 2005 1:50 am
by Chris
I have encountered a similar problem as well. *Sometimes* the HTML Nugget does not display the output of Javascript. Seems to work for some scripts but not for others. Not really sure why ...

Posted: Thu Jan 06, 2005 9:27 am
by garvinhicking
You need to deactivate the Markup options for those nuggets as to not disturb JS. Look at the HTML Source of your blog and see how the html nugget is displayed and you should notice a difference between your input and this output...

Regards,
Garvin

Posted: Thu Jan 06, 2005 12:39 pm
by al1us
tnx!!!! everything is working great now!!!=)
i also wanted to ask if you need russian translation of your blog. it will be ready on sunday, so i could send you if you need..=)

Posted: Thu Jan 06, 2005 2:27 pm
by garvinhicking
We already have a russian translation in the 0.8 version of our development snapshot - have you looked at that one?

Regards,
Garvin

Posted: Thu Jan 06, 2005 7:43 pm
by al1us
no, not yet.. cool! i'll try it this weekend