[identity profile] ex-enia.livejournal.com posting in [community profile] useful_faq
Подскажите, плиз, как корректно вставить в журнал код....

Есть вот такой вот код...
 
<div style="width: 400px; padding: 20px; border: 1px solid #E0E0E0">
	<center>
	<span style="font-size: 9pt; font-family: Sans-Serif">
		<b>My latest images for sale at 
		<a href=http://www.shutterstock.com/?rid=250516>Shutterstock</a>:</b><br><br>
	</span> 
	<script language='javascript'>
		var shutterstock_table='';
	</script>
	<script src='http://www.shutterstock.com/mini_gallery.js?s=250516&t=l' language='javascript'>
	</script>
	<script language='javascript'>document.write(shutterstock_table);</script> 
	</center>
</div>
<p> 
<div style="width: 400px; padding: 20px; border: 1px solid #E0E0E0">
	<center>
	<span style="font-size: 9pt; font-family: Sans-Serif">
		<b>My most popular images for sale at 
		<a href=http://www.shutterstock.com/?rid=250516>Shutterstock</a>:</b><br><br>
	</span> 
	<script language='javascript'>var shutterstock_table='';</script>
	<script src='http://www.shutterstock.com/mini_gallery.js?s=250516&t=p' language='javascript'>
	</script>
	<script language='javascript'>document.write(shutterstock_table);</script>
	</center>
</div>

Вот так он выглядит в журнале, если просто вставить в ХТМЛ режиме...

а должно выглядеть вот так


В чем засада... и как сделать так, чтобы как надо было...
(ни черта в кодах не понимаю)...


Date: 2008-12-08 02:37 pm (UTC)
From: [identity profile] gudguy.livejournal.com
а чего вы добиваетесь?

Date: 2008-12-08 02:41 pm (UTC)
From: [identity profile] gudguy.livejournal.com
мне кажеться всё должно работать=)

Date: 2008-12-08 02:40 pm (UTC)
From: [identity profile] fergus-macdubh.livejournal.com
Как должно выглядеть не очень понятно.
Насколько я знаю в постах разрешены только html-теги, жабаскрипт запрещен. Так что этот код Вы вставить не сможете.

Date: 2008-12-08 02:41 pm (UTC)
From: [identity profile] gudguy.livejournal.com
в просмотре всё вроде работает=)

Date: 2008-12-08 03:43 pm (UTC)
From: [identity profile] n0mad-sexhex.livejournal.com


My latest images for sale at Shutterstock (http://www.shutterstock.com/?rid=250516):






My most popular images for sale at Shutterstock (http://www.shutterstock.com/?rid=250516):



Date: 2008-12-08 04:08 pm (UTC)
From: [identity profile] n0mad-sexhex.livejournal.com
ващет код вам прямиком в мыльницу должен был свалиться.
или вы на комменты не подписаны? :)



… енто не правда, енто больше, чем правда — а так оно и было на самом деле ©

Date: 2008-12-08 04:38 pm (UTC)
From: [identity profile] n0mad-sexhex.livejournal.com
неа ессно, хотите обновляться, обновляйтесь ручками. тут у нас голый хтмл, то бишь статика. Что собстно и позволяет ее впендюрить в ваш жж. как вам сказали уже выше, ни один сайт в здравом уме не даст внедрить в свою страницу и отгружать с постороннего сайта произвольный js, который затем будет выполняться на машинке клиента. Иначе мы б тут ни единого коммента не увидели бы — после первого же кривого юзерского скрипта в смысле :))

Date: 2008-12-08 05:53 pm (UTC)
From: [identity profile] n0mad-sexhex.livejournal.com
если желаете обновляться ручками, но туго с кодом, то скопипейстите это себе в блокнот, сохраните куды-нить, обзовите каким-нить bla-bla.html, и открывайте кады вам приспичит получить типа очередной актуальный хтмл-код со своими «обновленными» превьюшками (оттуда) для вставки (в блог):


<HTML><script>
var a='<textarea cols=100 rows=30><div style="width: 400px; padding: 20px; border: 1px solid #E0E0E0"><center><span style="font-size: 9pt; font-family: Sans-Serif"><b>My latest images for sale at <a href=http://www.shutterstock.com/?rid=250516>Shutterstock</a>:</b><br><br></span>';
var shutterstock_table='';
</script>
<script src='http://www.shutterstock.com/mini_gallery.js?s=250516&t=l'></script>
<script>
a += shutterstock_table;
a += '</center></div><p><div style="width: 400px; padding: 20px; border: 1px solid #E0E0E0"><center><span style="font-size: 9pt; font-family: Sans-Serif"><b>My most popular images for sale at <a href=http://www.shutterstock.com/?rid=250516>Shutterstock</a>:</b><br><br></span>';
var shutterstock_table='';
</script>
<script src='http://www.shutterstock.com/mini_gallery.js?s=250516&t=p'></script>
<script>a += shutterstock_table + '</center></div></textarea>';
document.write(a);</script>
</HTML>

Date: 2008-12-09 10:03 am (UTC)
From: [identity profile] n0mad-sexhex.livejournal.com
дык, не на чем. Если остались еще непонятки, то “фициальный” ответ тут (http://www.livejournal.com/support/faqbrowse.bml?faqid=14) ;)
ежели неудобно выгребать их галерею вслепую, то вот тот же скрипт с превьюшкой:

<HTML><script>var a='<div style="width: 400px; padding: 20px; border: 1px solid #E0E0E0"><center><span style="font-size: 9pt; font-family: Sans-Serif"><b>My latest images for sale at <a href=http://www.shutterstock.com/?rid=250516>Shutterstock</a>:</b><br><br></span>';
var shutterstock_table='';</script>
<script src='http://www.shutterstock.com/mini_gallery.js?s=250516&t=l'></script>
<script>a += shutterstock_table + '</center></div><p><div style="width: 400px; padding: 20px; border: 1px solid #E0E0E0"><center><span style="font-size: 9pt; font-family: Sans-Serif"><b>My most popular images for sale at <a href=http://www.shutterstock.com/?rid=250516>Shutterstock</a>:</b><br><br></span>';
shutterstock_table='';</script>
<script src='http://www.shutterstock.com/mini_gallery.js?s=250516&t=p'></script>
<script>a += shutterstock_table + '</center></div>';document.write('<h4>preview:</h4>' + a + '<h4>html code:</h4><textarea cols=100 rows=20>' + a.replace(/width=10>/ig,'width=10>&nbsp;') + '</textarea>');</script>
</HTML>

Date: 2008-12-08 03:54 pm (UTC)
From: [identity profile] kapuchin.livejournal.com
javascript в ЖЖ блокируется, а то что к нему не относится, работает.