Customizing SMF > SMF Coding Discussion

Need Assistance Pasting a code for Chatango shoutbox.

(1/4) > >>

♦PulsiveForums♦:
Hey Everyone! :)

i'm just wondering where do i paste this code:


--- Code: ---<script id="sid0010000005186244493">(function() {function async_load(){s.id="cid0010000005186244493";s.src='http://st.chatango.com/js/gz/emb.js';s.style.cssText="width:250px;height:360px;";s.async=true;s.text='{"handle":"EssenceGamerzz","styles":{"a":"000000","b":88,"c":"FFFFFF","d":"FFFFCC","e":"000000","f":50,"g":"FFFFFF","j":"FFFFFF","l":"999999","q":"999999","r":100,"s":1,"aa":1}}';var ss = document.getElementsByTagName('script');for (var i=0, l=ss.length; i < l; i++){if (ss[i].id=='sid0010000005186244493'){ss[i].id +='_';ss[i].parentNode.insertBefore(s, ss[i]);break;}}}var s=document.createElement('script');if (s.async==undefined){if (window.addEventListener) {addEventListener('load',async_load,false);}else if (window.attachEvent) {attachEvent('onload',async_load);}}else {async_load();}})();</script>
--- End code ---

Its a Chatango Shoutbox,i wan't it to appear only on my homepage though,on the right panel under my "Latest Posts" and "Latest Topics" Blocks,if you can help me reply whenever you can No rush at all!

Thanks :)

Website: Here :)

K@:
As you're using the "PortaMx" portal, why not just create an HTML block and put that code into it?

Orangine:
I'm not sure if you can put JS into a html block

Sorck:

--- Quote from: Orangine on August 06, 2012, 08:58:15 AM ---I'm not sure if you can put JS into a html block

--- End quote ---
Given that JS in script tags is valid HTML I don't see why it wouldn't work.

Orangine:
because most likely, there is some sanitation/parsing involved before the block is displayed. or at least there should be

Navigation

[0] Message Index

[#] Next page

Go to full version