banner in HTML nugget

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
al1us

banner in HTML nugget

Post 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
Chris
Regular
Posts: 49
Joined: Thu Dec 09, 2004 1:02 am
Location: Sydney, Australia
Contact:

Post 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 ...
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
al1us

Post 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..=)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
al1us

Post by al1us »

no, not yet.. cool! i'll try it this weekend
Post Reply